first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,191 @@
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.HrmDeputationApplicationHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDDptnApplQVO;
public class HrmATDDptnApplBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmEmpDeputAppHdrMetaInfo((HrmATDDptnApplQVO)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.getHrmEmpDeputAppHeaderInfo((HrmATDDptnApplQVO)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 updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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((HrmDeputationApplicationHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmDeputationApplicationHdrBean oHrmDeputationApplicationHdrBean = (HrmDeputationApplicationHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmDeputationApplicationHdrBean.equals(null)) {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") || oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
} else if (oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("A")) {
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
} else if (oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("P")) {
arylstEnableList.add("butApprove");
arylstEnableList.add("butReject");
arylstDisableList.add("butSubmit");
} else if (oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
arylstDisableList.add("butSubmit");
} else if (oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("N")) {
arylstEnableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstEnableList.add("butEmployeeNo");
if (EnrgiseUtil.checkString(oHrmDeputationApplicationHdrBean.getDeputType()))
if (oHrmDeputationApplicationHdrBean.getDeputType().equalsIgnoreCase("W")) {
arylstDisableList.add("postCode");
arylstDisableList.add("postName");
arylstDisableList.add("orgName");
arylstEnableList.add("butPostName");
} else if (oHrmDeputationApplicationHdrBean.getDeputType().equalsIgnoreCase("F")) {
arylstDisableList.add("postCode");
arylstEnableList.add("postName");
arylstEnableList.add("orgName");
arylstDisableList.add("butPostName");
} else if (oHrmDeputationApplicationHdrBean.getDeputType().equalsIgnoreCase("O")) {
arylstDisableList.add("postCode");
arylstEnableList.add("postName");
arylstEnableList.add("orgName");
arylstDisableList.add("butPostName");
}
if (EnrgiseUtil.checkString(oHrmDeputationApplicationHdrBean.getAdvtNo()))
if (oHrmDeputationApplicationHdrBean.getAdvtNo().equalsIgnoreCase("null")) {
arylstDisableList.add("advtDate");
arylstDisableList.add("butAdvtDate");
} else if (!oHrmDeputationApplicationHdrBean.getAdvtNo().equalsIgnoreCase("null")) {
arylstEnableList.add("advtDate");
arylstEnableList.add("butAdvtDate");
}
} else if (EnrgiseUtil.checkString(oHrmDeputationApplicationHdrBean.getDeputStatus())) {
if (oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("P") || oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("A") || oHrmDeputationApplicationHdrBean.getDeputStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("applnNo");
arylstDisableList.add("applnDate");
arylstDisableList.add("deputType");
arylstDisableList.add("butEmployeeNo");
arylstDisableList.add("employeeNo");
arylstDisableList.add("empName");
arylstDisableList.add("deputStatus");
arylstDisableList.add("butApplnNo");
arylstDisableList.add("butApplnDate");
arylstDisableList.add("butApplnDate");
arylstDisableList.add("advtNo");
arylstDisableList.add("advtDate");
arylstDisableList.add("orgName");
arylstDisableList.add("postCode");
arylstDisableList.add("postName");
arylstDisableList.add("reason");
arylstDisableList.add("butPostName");
arylstDisableList.add("butAdvtDate");
arylstDisableList.add("butAdvtNo");
} else {
if (EnrgiseUtil.checkString(oHrmDeputationApplicationHdrBean.getDeputType()))
if (oHrmDeputationApplicationHdrBean.getDeputType().equalsIgnoreCase("W")) {
arylstDisableList.add("postCode");
arylstDisableList.add("postName");
arylstDisableList.add("orgName");
arylstEnableList.add("butPostName");
} else if (oHrmDeputationApplicationHdrBean.getDeputType().equalsIgnoreCase("F")) {
arylstDisableList.add("postCode");
arylstEnableList.add("postName");
arylstEnableList.add("orgName");
arylstDisableList.add("butPostName");
} else if (oHrmDeputationApplicationHdrBean.getDeputType().equalsIgnoreCase("O")) {
arylstDisableList.add("postCode");
arylstEnableList.add("postName");
arylstEnableList.add("orgName");
arylstDisableList.add("butPostName");
}
if (EnrgiseUtil.checkString(oHrmDeputationApplicationHdrBean.getAdvtNo()))
if (oHrmDeputationApplicationHdrBean.getAdvtNo().equalsIgnoreCase("null")) {
arylstDisableList.add("advtDate");
arylstDisableList.add("butAdvtDate");
} else if (!oHrmDeputationApplicationHdrBean.getAdvtNo().equalsIgnoreCase("null")) {
arylstEnableList.add("advtDate");
arylstEnableList.add("butAdvtDate");
}
}
}
}
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 {}
}

View File

@@ -0,0 +1,138 @@
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.HrmATDDeputChrgRptHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDDptnChrgRptQVO;
public class HrmATDDptnChrgRptBD extends HrmBaseBD {
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmDeputChargeRepHdrMetaInfo((HrmATDDptnChrgRptQVO)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.getHrmDeputChargeRepHeaderInfo((HrmATDDptnChrgRptQVO)oQueryVO, lStartPosition, lLastPosition, this.oUserInfo);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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((HrmATDDeputChrgRptHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmATDDeputChrgRptHdrBean oHrmATDDeputChrgRptHdrBean = (HrmATDDeputChrgRptHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmATDDeputChrgRptHdrBean.equals(null)) {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") || oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
} else if (oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("A")) {
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
} else if (oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("P")) {
arylstEnableList.add("butApprove");
arylstEnableList.add("butReject");
arylstDisableList.add("butSubmit");
} else if (oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
arylstDisableList.add("butSubmit");
} else if (oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("N")) {
arylstEnableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
if (EnrgiseUtil.checkString(oHrmATDDeputChrgRptHdrBean.getChargeType()))
arylstDisableList.add("butChargeCode");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
if (EnrgiseUtil.checkString(oHrmATDDeputChrgRptHdrBean.getChargeType())) {
arylstEnableList.add("butChargeCode");
} else {
arylstDisableList.add("butChargeCode");
}
} else if (EnrgiseUtil.checkString(oHrmATDDeputChrgRptHdrBean.getChargeStatus())) {
System.out.println(oHrmATDDeputChrgRptHdrBean.getChargeStatus());
if (oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("P") || oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("A") || oHrmATDDeputChrgRptHdrBean.getChargeStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("dptOrderNo");
arylstDisableList.add("chargeCode");
arylstDisableList.add("chargeType");
arylstDisableList.add("butChargeCode");
arylstDisableList.add("noonFlag");
arylstDisableList.add("butHandOverDate");
arylstDisableList.add("butDptOrderNo");
arylstDisableList.add("remarks");
} else {
arylstDisableList.add("butChargeCode");
}
}
}
oThisPageVO.setOHeaderBean((BaseHeaderBean)oHrmATDDeputChrgRptHdrBean);
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {}
}

View File

@@ -0,0 +1,104 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmATDDeputOrderSngEmpHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDDptnOrderSingleEmpQVO;
public class HrmATDDptnOrderForSingleEmpBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmDeputOrderSngEmpHdrMetaInfo((HrmATDDptnOrderSingleEmpQVO)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.getHrmDeputOrderSngEmpHeaderInfo((HrmATDDptnOrderSingleEmpQVO)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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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((HrmATDDeputOrderSngEmpHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmATDDeputOrderSngEmpHdrBean oHrmATDDeputOrderSngEmpHdrBean = (HrmATDDeputOrderSngEmpHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmATDDeputOrderSngEmpHdrBean.equals(null));
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {}
}

View File

@@ -0,0 +1,172 @@
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.HrmTransferApplicationHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDTransApplQVO;
public class HrmATDTransApplBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmEmpTransAppHeaderMetaInfo((HrmATDTransApplQVO)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.getHrmEmpTransAppHeader((HrmATDTransApplQVO)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 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 {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.saveHrmTransAppl((HrmTransferApplicationHdrBean)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 arylstEnabledList = new ArrayList();
ArrayList arylstDisabledList = new ArrayList();
HrmTransferApplicationHdrBean oHrmTransferApplicationHdrBean = (HrmTransferApplicationHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisabledList.add("butToDesignation");
arylstDisabledList.add("butToWorkGroup");
arylstEnabledList.add("butEmployeeNo");
}
if (!oHrmTransferApplicationHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstEnabledList.add("ofcNoteNo");
arylstEnabledList.add("butOfcNoteNo");
arylstEnabledList.add("ofcNoteDate");
arylstEnabledList.add("butOfcNoteDate");
arylstEnabledList.add("butEmployeeNo");
arylstEnabledList.add("butToDesignation");
arylstEnabledList.add("butToWorkGroup");
if (EnrgiseUtil.checkString(oHrmTransferApplicationHdrBean.getApplnType()))
if (oHrmTransferApplicationHdrBean.getApplnType().equalsIgnoreCase("S")) {
oHrmTransferApplicationHdrBean.setSite1("");
oHrmTransferApplicationHdrBean.setSite2("");
oHrmTransferApplicationHdrBean.setSite3("");
oHrmTransferApplicationHdrBean.setSiteCode1("");
oHrmTransferApplicationHdrBean.setSiteCode2("");
oHrmTransferApplicationHdrBean.setSiteCode3("");
arylstDisabledList.add("siteCode1");
arylstDisabledList.add("siteCode2");
arylstDisabledList.add("siteCode3");
arylstDisabledList.add("site1");
arylstDisabledList.add("site2");
arylstDisabledList.add("site3");
arylstDisabledList.add("butSite1");
arylstDisabledList.add("butSite2");
arylstDisabledList.add("butSite3");
} else if (oHrmTransferApplicationHdrBean.getApplnType().equalsIgnoreCase("L")) {
arylstEnabledList.add("siteCode1");
arylstEnabledList.add("siteCode2");
arylstEnabledList.add("siteCode3");
arylstEnabledList.add("site1");
arylstEnabledList.add("site2");
arylstEnabledList.add("site3");
arylstEnabledList.add("butSite1");
arylstEnabledList.add("butSite2");
arylstEnabledList.add("butSite3");
}
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstEnabledList.add("ofcNoteNo");
arylstEnabledList.add("butOfcNoteNo");
arylstEnabledList.add("ofcNoteDate");
arylstEnabledList.add("butOfcNoteDate");
arylstEnabledList.add("butEmployeeNo");
arylstEnabledList.add("butToDesignation");
arylstEnabledList.add("butToWorkGroup");
if (EnrgiseUtil.checkString(oHrmTransferApplicationHdrBean.getApplnType()))
if (oHrmTransferApplicationHdrBean.getApplnType().equalsIgnoreCase("S")) {
oHrmTransferApplicationHdrBean.setSite1("");
oHrmTransferApplicationHdrBean.setSite2("");
oHrmTransferApplicationHdrBean.setSite3("");
oHrmTransferApplicationHdrBean.setSiteCode1("");
oHrmTransferApplicationHdrBean.setSiteCode2("");
oHrmTransferApplicationHdrBean.setSiteCode3("");
arylstDisabledList.add("siteCode1");
arylstDisabledList.add("siteCode2");
arylstDisabledList.add("siteCode3");
arylstDisabledList.add("site1");
arylstDisabledList.add("site2");
arylstDisabledList.add("site3");
arylstDisabledList.add("butSite1");
arylstDisabledList.add("butSite2");
arylstDisabledList.add("butSite3");
} else if (oHrmTransferApplicationHdrBean.getApplnType().equalsIgnoreCase("L")) {
arylstEnabledList.add("siteCode1");
arylstEnabledList.add("siteCode2");
arylstEnabledList.add("siteCode3");
arylstEnabledList.add("site1");
arylstEnabledList.add("site2");
arylstEnabledList.add("site3");
arylstEnabledList.add("butSite1");
arylstEnabledList.add("butSite2");
arylstEnabledList.add("butSite3");
}
}
oThisPageVO.setOHeaderBean((BaseHeaderBean)oHrmTransferApplicationHdrBean);
oHashMap.put("D", arylstDisabledList);
oHashMap.put("E", arylstEnabledList);
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 {}
}

View File

@@ -0,0 +1,143 @@
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.HrmChargeReportHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDTransChrgRptQVO;
public class HrmATDTransChrgRptBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmChargeRepHeaderMetaInfo((HrmATDTransChrgRptQVO)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.getHrmChargeRepHeader((HrmATDTransChrgRptQVO)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 updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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((HrmChargeReportHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmChargeReportHdrBean oHrmChargeReportHdrBean = (HrmChargeReportHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getChargeType())) {
arylstEnableList.add("butTrnOrderNo");
} else {
arylstDisableList.add("butTrnOrderNo");
}
arylstDisableList.add("butEmployee");
if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getTrnOrderNoId())) {
arylstEnableList.add("butExecute");
} else {
arylstDisableList.add("butExecute");
}
}
if (!oHrmChargeReportHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getChargeType())) {
arylstEnableList.add("butTrnOrderNo");
} else {
arylstDisableList.add("butTrnOrderNo");
}
arylstEnableList.add("butEmployee");
if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getChargeType()))
arylstDisableList.add("butChargeCode");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getChargeType())) {
arylstEnableList.add("butTrnOrderNo");
} else {
arylstDisableList.add("butTrnOrderNo");
}
arylstDisableList.add("butEmployee");
if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getChargeType())) {
arylstEnableList.add("butChargeCode");
} else {
arylstDisableList.add("butChargeCode");
}
} else if (EnrgiseUtil.checkString(oHrmChargeReportHdrBean.getChargeStatus())) {
if (oHrmChargeReportHdrBean.getChargeStatus().equalsIgnoreCase("P") || oHrmChargeReportHdrBean.getChargeStatus().equalsIgnoreCase("A") || oHrmChargeReportHdrBean.getChargeStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("trnOrderNo");
arylstDisableList.add("butTrnOrderNo");
arylstDisableList.add("chargeCode");
arylstDisableList.add("butChargeCode");
arylstDisableList.add("chargeType");
arylstDisableList.add("butHandOverDate");
arylstDisableList.add("noonFlag");
arylstDisableList.add("remarks");
arylstDisableList.add("butEmployee");
} else {
arylstDisableList.add("butChargeCode");
}
}
oThisPageVO.setOHeaderBean((BaseHeaderBean)oHrmChargeReportHdrBean);
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {}
}

View File

@@ -0,0 +1,152 @@
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.HrmEmpTransCnclApplHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDTransCnclApplQVO;
public class HrmATDTransCnclApplBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmEmpTransCnclHeaderMetaInfo((HrmATDTransCnclApplQVO)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.getHrmEmpTransCnclHeader((HrmATDTransCnclApplQVO)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 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 {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.saveHrmTransCnclAppl((HrmEmpTransCnclApplHdrBean)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();
HrmEmpTransCnclApplHdrBean oHrmEmpTransCnclApplHdrBean = (HrmEmpTransCnclApplHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstEnableList.add("butEmpNo");
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
}
if (!oHrmEmpTransCnclApplHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstEnableList.add("butEmpNo");
arylstEnableList.add("ofcNoteNo");
arylstDisableList.add("butOfcNoteNo");
arylstDisableList.add("ofcNoteDate");
arylstEnableList.add("butOfcNoteDate");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
if (EnrgiseUtil.checkString(oHrmEmpTransCnclApplHdrBean.getDeferredStatus())) {
System.out.println(oHrmEmpTransCnclApplHdrBean.getDeferredStatus());
if (oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("P") || oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("A") || oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("empNo");
arylstDisableList.add("empName");
arylstDisableList.add("butEmpNo");
arylstDisableList.add("butApplnNo");
arylstDisableList.add("butApplnDate");
arylstDisableList.add("applnNo");
arylstDisableList.add("applnDate");
arylstDisableList.add("generatedBy");
arylstDisableList.add("ofcNoteNo");
arylstDisableList.add("butOfcNoteNo");
arylstDisableList.add("ofcNoteDate");
arylstDisableList.add("butOfcNoteDate");
arylstDisableList.add("butApplnDate");
arylstDisableList.add("cancelDeferFlag");
arylstDisableList.add("defermentPeriod");
arylstDisableList.add("deferredDate");
arylstDisableList.add("butDeferredDate");
arylstDisableList.add("reason");
} else {
arylstDisableList.add("ofcNoteNo");
arylstDisableList.add("butOfcNoteNo");
arylstDisableList.add("ofcNoteDate");
arylstEnableList.add("butOfcNoteDate");
}
if (oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("A")) {
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
} else if (oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("P")) {
arylstDisableList.add("butSubmit");
arylstEnableList.add("butApprove");
arylstEnableList.add("butReject");
} else if (oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("R")) {
arylstDisableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
} else if (oHrmEmpTransCnclApplHdrBean.getDeferredStatus().equalsIgnoreCase("N")) {
arylstEnableList.add("butSubmit");
arylstDisableList.add("butApprove");
arylstDisableList.add("butReject");
}
}
}
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 {}
}

View File

@@ -0,0 +1,115 @@
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.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.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 {}
}

View File

@@ -0,0 +1,131 @@
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.HrmATDTransOrderForSingleEmpBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmATDTransSingleEmpQVO;
public class HrmATDTransOrderForSingleEmpBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmTransSingleEmpRecordMetaInfo((HrmATDTransSingleEmpQVO)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.getHrmTransSingleEmpHeaderInfo((HrmATDTransSingleEmpQVO)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 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 {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.saveData((HrmATDTransOrderForSingleEmpBean)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 new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmATDTransOrderForSingleEmpBean oHrmATDTransOrderForSingleEmpBean = (HrmATDTransOrderForSingleEmpBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
arylstDisableList.add("butApproverNo");
if (!oHrmATDTransOrderForSingleEmpBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstEnableList.add("butApproverNo");
if (EnrgiseUtil.checkString(oHrmATDTransOrderForSingleEmpBean.getOrderType()))
if (oHrmATDTransOrderForSingleEmpBean.getOrderType().equalsIgnoreCase("S")) {
arylstDisableList.add("butToSite");
} else if (oHrmATDTransOrderForSingleEmpBean.getOrderType().equalsIgnoreCase("L")) {
arylstEnableList.add("butToSite");
}
if (!EnrgiseUtil.checkString(oHrmATDTransOrderForSingleEmpBean.getToSiteID())) {
arylstDisableList.add("butReportingEmpId");
} else {
arylstEnableList.add("butReportingEmpId");
}
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
if (!EnrgiseUtil.checkString(oHrmATDTransOrderForSingleEmpBean.getToSiteID())) {
arylstDisableList.add("butReportingEmpId");
} else {
arylstEnableList.add("butReportingEmpId");
}
arylstEnableList.add("butApproverNo");
if (EnrgiseUtil.checkString(oHrmATDTransOrderForSingleEmpBean.getOrderType()))
if (oHrmATDTransOrderForSingleEmpBean.getOrderType().equalsIgnoreCase("S")) {
arylstDisableList.add("butToSite");
} else if (oHrmATDTransOrderForSingleEmpBean.getOrderType().equalsIgnoreCase("L")) {
arylstEnableList.add("butToSite");
}
}
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 {
String sHeaderPrimaryKey = null;
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butCancelTransfer"))
sHeaderPrimaryKey = oFacade.cancelTransfer((HrmATDTransOrderForSingleEmpBean)oBaseHeaderBean, oWhenPicked, oDetailBeanArray, oDetailPicked);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
return sHeaderPrimaryKey;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {}
}

View File

@@ -0,0 +1,112 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAdhocReportHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAdhocReportQVO;
public class HrmAdhocReportBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmAdhocReportHdrMetaInfo((HrmAdhocReportQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmAdhocReportHeaderInfo((HrmAdhocReportQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 null;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmAdhocReport((HrmAdhocReportHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oDisableList = new ArrayList();
ArrayList oEnableList = new ArrayList();
HrmAdhocReportHdrBean oHrmAdhocReportHdrBean = (HrmAdhocReportHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butQueryCode");
} else {
oDisableList.add("butQueryCode");
}
if (null != oHrmAdhocReportHdrBean.getId()) {
oEnableList.add("butDownload");
} else {
oDisableList.add("butDownload");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,97 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAdvanceMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmAdvMstQueryVO;
public class HrmAdvMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvMasterHdrMetaInfo((HrmAdvMstQueryVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmAdvMasterHeaderInfo((HrmAdvMstQueryVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvMasterDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvMasterDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
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 String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveData((HrmAdvanceMstHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
}

View File

@@ -0,0 +1,98 @@
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.HrmAdvSettleHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmAdvSettleQVO;
public class HrmAdvSettleBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvSettlementHdrMetaInfo((HrmAdvSettleQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmAdvSettlementHeader((HrmAdvSettleQVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveData((HrmAdvSettleHdrBean)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 String submitImpl(String sButtonName, BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
String sHeaderPrimaryKey = null;
return sHeaderPrimaryKey;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmAdvSettleHdrBean oHrmAdvSettleHdrBean = (HrmAdvSettleHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmAdvSettleHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U") || oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
if (EnrgiseUtil.checkString(oHrmAdvSettleHdrBean.getEmployeeId())) {
arylstEnableList.add("butAdvanceCode");
} else {
arylstDisableList.add("butAdvanceCode");
}
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,107 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmAdvSettleHeadsDtlBean;
import wenrgise.hrms.bean.HrmAdvSettleHeadsHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmAdvSettleHeadsQVO;
public class HrmAdvSettleHeadsBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacade oHrmFacade = (HrmFacade)getModuleFacade();
return oHrmFacade.getHrAdvSettleHeadsDetailMetaInfo((HrmAdvSettleHeadsQVO)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 {
HrmFacade oHrmFacade = (HrmFacade)getModuleFacade();
return oHrmFacade.getHrAdvSettleHeadsDetail((HrmAdvSettleHeadsQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
} 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 updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
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();
ArrayList oList = oThisPageVO.getODetailList();
HrmAdvSettleHeadsHdrBean oHrmAdvSettleHeadsHdrBean = (HrmAdvSettleHeadsHdrBean)oThisPageVO.getOHeaderBean();
Iterator oIt = oList.iterator();
HrmAdvSettleHeadsDtlBean oHrmAdvSettleHeadsDtlBean = null;
while (oIt.hasNext()) {
oHrmAdvSettleHeadsDtlBean = oIt.next();
if (oHrmAdvSettleHeadsDtlBean.getTxtSettleStatus() == null || oHrmAdvSettleHeadsDtlBean.getTxtSettleStatus().equalsIgnoreCase("N")) {
arylstEnableList.add("txtAmount");
continue;
}
if (oHrmAdvSettleHeadsDtlBean.getTxtSettleStatus().equalsIgnoreCase("A") || oHrmAdvSettleHeadsDtlBean.getTxtSettleStatus().equalsIgnoreCase("P") || oHrmAdvSettleHeadsDtlBean.getTxtSettleStatus().equalsIgnoreCase("R"))
arylstDisableList.add("txtAmount");
}
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 String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmAdvSettleHds(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
}

View File

@@ -0,0 +1,83 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmAgeAnalysisBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = null;
return oRecordMetaInfo;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(BaseQueryVO oQVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oEnableList.add("butQuery");
oDisableList.add("butSave");
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oDisableList.add("butHelp");
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 {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.InsertDataAgeAnalysis(oBaseHeaderBean);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,194 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmAppTempHdrBean;
import wenrgise.hrms.bean.HrmAppraisalTemplateKpaDtlBean;
import wenrgise.hrms.bean.HrmAppraisalTemplateSecDtlBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmAppTempQueryVO;
public class HrmAppTempBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmAppTemplateHdrMetaInfo((HrmAppTempQueryVO)oQueryVO);
} 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.getHrmAppTemplateHeaderInfo((HrmAppTempQueryVO)oQueryVO, lStartPosition, lLastPosition);
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 = new RecordMetaInfo();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmAppraisalTemplateSection")) {
oRecordMetaInfo = oHrmThirdFacade.getHrmAppTempSecDtlMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmAppraisalTemplateKPA")) {
oRecordMetaInfo = oHrmThirdFacade.getHrmAppTempSecKPADtlMetaInfo(lPrimaryKey);
}
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList arylstRet = new ArrayList();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmAppraisalTemplateSection")) {
arylstRet = oHrmThirdFacade.getHrmAppTempSecDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmAppraisalTemplateKPA")) {
arylstRet = oHrmThirdFacade.getHrmAppTempSecKPADetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
}
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return arylstRet;
}
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 {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.saveHrmAprslTmplSec((HrmAppTempHdrBean)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();
arylstDisableList.add("butDelete");
arylstDisableList.add("butDelRow");
ArrayList oDetailList = oThisPageVO.getODetailList();
HrmAppTempHdrBean oHrmAppTempHdrBean = (HrmAppTempHdrBean)oThisPageVO.getOHeaderBean();
if (EnrgiseUtil.checkString(oHrmAppTempHdrBean.getHeaderFlag()))
if (oHrmAppTempHdrBean.getHeaderFlag().equalsIgnoreCase("A")) {
arylstDisableList.add("butAddRow");
arylstDisableList.add("butRatingCode");
arylstDisableList.add("obsolete");
arylstDisableList.add("applicableToAll");
arylstDisableList.add("butApprove");
arylstDisableList.add("templateName");
arylstDisableList.add("ratingCode");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N") || oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstDisableList.add("butTemplateName");
arylstDisableList.add("ratingCode");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
arylstDisableList.add("templateName");
if (oDetailList == null)
arylstDisableList.add("butApprove");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
arylstDisableList.add("butRatingCode");
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmAppraisalTemplateSection")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAppraisalTemplateSecDtlBean oHrmAppraisalTemplateSecDtlBean = oIt.next();
if (!oHrmAppraisalTemplateSecDtlBean.getStatus().equalsIgnoreCase("N")) {
oHrmAppraisalTemplateSecDtlBean.setDisabtxtSrlNo("true");
oHrmAppraisalTemplateSecDtlBean.setDisabtxtSectionCode("true");
oHrmAppraisalTemplateSecDtlBean.setDisabbutParentSecCode("true");
oHrmAppraisalTemplateSecDtlBean.setDisabtxtParentSection("true");
if (EnrgiseUtil.checkString(oHrmAppTempHdrBean.getHeaderFlag()))
if (oHrmAppTempHdrBean.getHeaderFlag().equalsIgnoreCase("A")) {
oHrmAppraisalTemplateSecDtlBean.setDisabtxtAppraiserType("true");
oHrmAppraisalTemplateSecDtlBean.setDisabtxtRatingReqd("true");
oHrmAppraisalTemplateSecDtlBean.setDisabtxtSectionWeightage("true");
oHrmAppraisalTemplateSecDtlBean.setDisabtxtTemplateRemarks("true");
}
}
if (oHrmAppraisalTemplateSecDtlBean.getStatus().equalsIgnoreCase("N"))
oHrmAppraisalTemplateSecDtlBean.setDisabtxtParentSection("true");
}
}
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmAppraisalTemplateKPA")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAppraisalTemplateKpaDtlBean oHrmAppraisalTemplateKpaDtlBean = oIt.next();
if (!oHrmAppraisalTemplateKpaDtlBean.getStatus().equalsIgnoreCase("N")) {
oHrmAppraisalTemplateKpaDtlBean.setDisabtxtKpaGroupCode("true");
oHrmAppraisalTemplateKpaDtlBean.setDisabtxtApprKpa("true");
if (EnrgiseUtil.checkString(oHrmAppTempHdrBean.getHeaderFlag()))
if (oHrmAppTempHdrBean.getHeaderFlag().equalsIgnoreCase("A")) {
oHrmAppraisalTemplateKpaDtlBean.setDisabbutKPAGroupCode("true");
oHrmAppraisalTemplateKpaDtlBean.setDisabtxtWeightage("true");
}
}
if (oHrmAppraisalTemplateKpaDtlBean.getStatus().equalsIgnoreCase("N")) {
oHrmAppraisalTemplateKpaDtlBean.setDisabtxtKpaGroupCode("true");
oHrmAppraisalTemplateKpaDtlBean.setDisabtxtApprKpa("true");
}
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"))
sHeaderPrimaryKey = oHrmThirdFacade.approveHrmAprslTmplMst((HrmAppTempHdrBean)oBaseHeaderBean, sScreenName);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,189 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.ejb.CreateException;
import wenrgise.common.bean.BaseHeaderBean;
import wenrgise.common.exception.EnrgiseApplicationException;
import wenrgise.common.exception.EnrgiseMessageKeyException;
import wenrgise.common.exception.EnrgiseSystemException;
import wenrgise.common.utility.EnrgiseUtil;
import wenrgise.common.utility.MessageKey;
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.HrmAppraisalKPADtlBean;
import wenrgise.hrms.bean.HrmAppraisalKPAHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmAppraisalKPAQVO;
public class HrmApprisalKPABD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String sPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmAppKPAFacade = oHome.create();
if (sScreenName.equals("HrmAppraisalKPA"))
return oHrmAppKPAFacade.getHrmAppRaisalKpaDetailMetaInfo(sPrimaryKey);
return null;
} catch (RemoteException oRe) {
System.out.println(oRe.getMessage());
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
System.out.println(oCrt.getMessage());
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String sPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmAppKPAFacade = oHome.create();
if (sScreenName.equals("HrmAppraisalKPA"))
return oHrmAppKPAFacade.getHrmAppRaisalKpaDetail(sPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
return null;
} catch (RemoteException oRe) {
System.out.println(oRe.getMessage());
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
System.out.println(oCrt.getMessage());
throw new EnrgiseSystemException(oCrt);
}
}
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 oHrmAppKPAFacade = oHome.create();
return oHrmAppKPAFacade.saveHrmAppRaisalKpa((HrmAppraisalKPAHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} 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 RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmAppKPAFacade = oHome.create();
return oHrmAppKPAFacade.getHrmAppRaisalKpaHeaderMetaInfo((HrmAppraisalKPAQVO)oQueryVO);
} 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 oHrmAppKPAFacade = oHome.create();
ArrayList oHeaderList = oHrmAppKPAFacade.getHrmAppRaisalKpaHeader((HrmAppraisalKPAQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (bHeaderDataChanged || bDetailDataChanged) {
MessageKey oMessageKey = new MessageKey("save.before.freeze");
ArrayList oParams = new ArrayList();
throw new EnrgiseMessageKeyException("wenrgise.common.detail.mandatoryFieldMissing", oParams, "E");
}
if (sButtonName.equalsIgnoreCase("butFreeze"))
sHeaderPrimaryKey = oHrmThirdFacade.getHrmAppRaisalKpaExactWeightage(oBaseHeaderBean.getHeaderPrimaryKey());
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String getInsertDataImpl(BaseQueryVO oBaseQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
arylstDisableList.add("butDelete");
arylstDisableList.add("butDelRow");
ArrayList oEnableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
HrmAppraisalKPAHdrBean objHdrBean = (HrmAppraisalKPAHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N"))
arylstDisableList.add("butKpaGroupCode");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisableList.add("kpaGroupCode");
arylstDisableList.add("description");
arylstDisableList.add("ratingRequired");
arylstDisableList.add("txtAppraiserType");
}
ArrayList arylstList = new ArrayList();
if (EnrgiseUtil.checkString(objHdrBean.getStatusOfHeader())) {
if (oDetailList != null && objHdrBean.getStatusOfHeader().equalsIgnoreCase("Freezed")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAppraisalKPADtlBean oHrmAppraisalKPADtlBean = oIt.next();
oHrmAppraisalKPADtlBean.setDisabmandatoryFlag("true");
oHrmAppraisalKPADtlBean.setDisabtxtDescription("true");
oHrmAppraisalKPADtlBean.setDisabtxtKpaCode("true");
oHrmAppraisalKPADtlBean.setDisabtxtSrlNo("true");
oHrmAppraisalKPADtlBean.setDisabtxtWeightage("true");
arylstList.add(oHrmAppraisalKPADtlBean);
}
oThisPageVO.setODetailList(arylstList);
}
} else {
ArrayList arylstDisabList = new ArrayList();
if (oDetailList != null) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAppraisalKPADtlBean oHrmAppraisalKPADtlBean = oIt.next();
if (oHrmAppraisalKPADtlBean.getStatus().equalsIgnoreCase("Q")) {
oHrmAppraisalKPADtlBean.setDisabtxtKpaCode("true");
oHrmAppraisalKPADtlBean.setDisabtxtSrlNo("true");
}
arylstDisabList.add(oHrmAppraisalKPADtlBean);
}
}
oThisPageVO.setODetailList(arylstDisabList);
}
if (oDetailList == null) {
arylstDisableList.add("butFreeze");
} else if (oDetailList != null) {
arylstEnableList.add("butFreeze");
}
if (EnrgiseUtil.checkString(objHdrBean.getStatusOfHeader())) {
arylstDisableList.add("butFreeze");
arylstDisableList.add("kpaGroupCode");
arylstDisableList.add("butKpaGroupCode");
arylstDisableList.add("description");
arylstDisableList.add("ratingRequired");
arylstDisableList.add("statusOfHeader");
arylstDisableList.add("txtAppraiserType");
}
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,683 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmAprslGoalsDtlBean;
import wenrgise.hrms.bean.HrmAprslHdrBean;
import wenrgise.hrms.bean.HrmAprslKPADtlBean;
import wenrgise.hrms.bean.HrmAprslTrngReqDtlBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmAprslQVO;
import wenrgise.workflow.bean.WflWorkListInfoBean;
public class HrmAprslBD extends HrmBaseBD {
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 {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.saveHrmEmpAprsl((HrmAprslHdrBean)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 null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmAprslKPA")) {
oRecordMetaInfo = oHrmThirdFacade.getHrmEmpAprslKPADetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmAprslGoals")) {
oRecordMetaInfo = oHrmThirdFacade.getHrmEmpAprslGoalsDetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmAprslTrngReq")) {
oRecordMetaInfo = oHrmThirdFacade.getHrmAprslTrngReqDtlMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmAprslEmpDtls")) {
oRecordMetaInfo.setRecordCount(1L);
} else if (sScreenName.equalsIgnoreCase("HrmAprslEmployee")) {
oRecordMetaInfo = oHrmThirdFacade.getHrmAprslEmpDtlMetaInfo(lPrimaryKey);
}
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList arylstRet = new ArrayList();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmAprslKPA")) {
arylstRet = oHrmThirdFacade.getHrmEmpAprslKPADetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmAprslGoals")) {
arylstRet = oHrmThirdFacade.getHrmEmpAprslGoalsDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmAprslTrngReq")) {
arylstRet = oHrmThirdFacade.getHrAprslTrngReqDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmAprslEmpDtls")) {
arylstRet = oHrmThirdFacade.getHrAprslEmpPerDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmAprslEmployee")) {
arylstRet = oHrmThirdFacade.getHrAprslEmpPerDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
}
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return arylstRet;
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmEmpAprslHdrMetaInfo((HrmAprslQVO)oQueryVO);
} 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.getHrmEmpAprslHdrInfo((HrmAprslQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
arylstDisableList.add("butDelRow");
HrmAprslHdrBean oHrmAprslHdrBean = (HrmAprslHdrBean)oThisPageVO.getOHeaderBean();
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAprslLevel())) {
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("0") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("1"))
arylstDisableList.add("finalRating");
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("2") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("3") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("4") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("5"))
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R"))
arylstDisableList.add("finalRating");
} else {
arylstDisableList.add("finalRating");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstEnableList.add("butGetDetail");
arylstDisableList.add("butStOrder");
}
ArrayList oDetailList = oThisPageVO.getODetailList();
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAprslLevel())) {
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("0") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("1")) {
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getCalFlag()))
if (oHrmAprslHdrBean.getCalFlag().equalsIgnoreCase("C")) {
arylstDisableList.add("butDone");
arylstDisableList.add("butReject");
} else if (oHrmAprslHdrBean.getCalFlag().equalsIgnoreCase("D")) {
arylstDisableList.add("butCalculate");
arylstDisableList.add("butReject");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getDoneFlag()))
if (oHrmAprslHdrBean.getDoneFlag().equalsIgnoreCase("true"))
arylstDisableList.add("butDone");
}
} else if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("2") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("3") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("4") || oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("5")) {
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getCalFlag()))
if (oHrmAprslHdrBean.getCalFlag().equalsIgnoreCase("C")) {
arylstDisableList.add("butDone");
} else if (oHrmAprslHdrBean.getCalFlag().equalsIgnoreCase("D")) {
arylstDisableList.add("butCalculate");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getDoneFlag()))
if (oHrmAprslHdrBean.getDoneFlag().equalsIgnoreCase("true")) {
arylstDisableList.add("butDone");
arylstDisableList.add("butReject");
}
}
}
} else {
arylstDisableList.add("butDone");
arylstDisableList.add("butReject");
arylstDisableList.add("butCalculate");
}
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmAprslKPA")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAprslKPADtlBean oHrmAprslKPADtlBean = oIt.next();
if (!oHrmAprslKPADtlBean.getStatus().equalsIgnoreCase("N")) {
if (oHrmAprslKPADtlBean.getTxtKpaRatingReq().equalsIgnoreCase("N")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
}
if (oHrmAprslKPADtlBean.getTxtKpaAprslType().equalsIgnoreCase("0")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
}
if (oHrmAprslKPADtlBean.getTxtKpaAprslType().equalsIgnoreCase("1")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
}
if (oHrmAprslKPADtlBean.getTxtKpaAprslType().equalsIgnoreCase("2"));
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("0")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating0())) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("1")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating1())) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("2")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating2())) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("3")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating3())) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("4")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating4())) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("5")) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating0("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating1("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating2("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating3("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating4("true");
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK0LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK1LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK2LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK3LOV("true");
oHrmAprslKPADtlBean.setDisabbutRatingK4LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating5())) {
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslKPADtlBean.setDisabtxtLevelRating5("true");
oHrmAprslKPADtlBean.setDisabtxtLevelAprl5("true");
oHrmAprslKPADtlBean.setDisabbutRatingK5LOV("true");
}
}
}
}
}
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmAprslGoals")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAprslGoalsDtlBean oHrmAprslGoalsDtlBean = oIt.next();
if (!oHrmAprslGoalsDtlBean.getStatus().equalsIgnoreCase("N")) {
if (oHrmAprslGoalsDtlBean.getTxtSecRatingReq().equalsIgnoreCase("N")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
}
if (oHrmAprslGoalsDtlBean.getTxtSecAprslType().equalsIgnoreCase("0")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
}
if (oHrmAprslGoalsDtlBean.getTxtSecAprslType().equalsIgnoreCase("1")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
}
if (oHrmAprslGoalsDtlBean.getTxtSecAprslType().equalsIgnoreCase("2"));
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("0")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating0())) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("1")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating1())) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("2")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating2())) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("3")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating3())) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("4")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating4())) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
}
}
if (oHrmAprslHdrBean.getAprslLevel().equalsIgnoreCase("5")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating0g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating1g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating2g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating3g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating4g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG0LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG1LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG2LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG3LOV("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG4LOV("true");
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getRating5())) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
}
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getAppFlag()))
if (oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("R") || oHrmAprslHdrBean.getAppFlag().equalsIgnoreCase("A")) {
oHrmAprslGoalsDtlBean.setDisabtxtLevelRating5g("true");
oHrmAprslGoalsDtlBean.setDisabtxtLevelAprl5g("true");
oHrmAprslGoalsDtlBean.setDisabbutRatingG5LOV("true");
}
}
}
}
}
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmAprslTrngReq")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmAprslTrngReqDtlBean oHrmAprslTrngReqDtlBean = oIt.next();
if (oHrmAprslTrngReqDtlBean.getStatus().equalsIgnoreCase("Q")) {
oHrmAprslTrngReqDtlBean.setDisabbutCourseLOV("true");
oHrmAprslTrngReqDtlBean.setDisabbutRecLOV("true");
oHrmAprslTrngReqDtlBean.setDisabbutTrngCalLOV("true");
oHrmAprslTrngReqDtlBean.setDisabtxtPurpose("true");
oHrmAprslTrngReqDtlBean.setDisabtxtRemarks("true");
}
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butCalculate"))
sHeaderPrimaryKey = oHrmThirdFacade.calEmpFinRating((HrmAprslHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
if (sButtonName.equalsIgnoreCase("butDone"))
sHeaderPrimaryKey = oHrmThirdFacade.approveEmpAprsl((HrmAprslHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sButtonName.equalsIgnoreCase("butReject"))
sHeaderPrimaryKey = oHrmThirdFacade.rejectEmpAprsl((HrmAprslHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
if (oThisPageVO.getActionName() == 10) {
HrmAprslHdrBean oHrmAprslHdrBean = (HrmAprslHdrBean)oThisPageVO.getOHeaderBean();
if (!EnrgiseUtil.checkString(oHrmAprslHdrBean.getWorkListId()));
}
if (oThisPageVO.getActionName() == 13) {
HrmAprslHdrBean oHrmAprslHdrBean = (HrmAprslHdrBean)oThisPageVO.getOHeaderBean();
if (EnrgiseUtil.checkString(oHrmAprslHdrBean.getWorkListId())) {
WflWorkListInfoBean oWflWorkListInfoBean = new WflWorkListInfoBean();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
oWflWorkListInfoBean = oHrmThirdFacade.getWorkListInfo(oHrmAprslHdrBean.getWorkListId());
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
} catch (RemoteException oRt) {
throw new EnrgiseSystemException(oRt);
}
oHrmAprslHdrBean.setEmpId(oWflWorkListInfoBean.getCreatorempId());
}
}
}
}

View File

@@ -0,0 +1,164 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAprslSpcTmplHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmAprslSpcTmplQVO;
public class HrmAprslSpcTmplBD extends HrmBaseBD {
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 {
try {
HrmThirdFacade oHrmThirdFacade = (HrmThirdFacade)getModuleFacade("ThirdHRMS");
return oHrmThirdFacade.saveHrmAprslSpcTmp((HrmAprslSpcTmplHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sScreenName.equals("HrmAprslSpcTmpl"))
oRecordMetaInfo = oHrmThirdFacade.getHrmAprslSpcTmpKPADtlMetaInfo(lPrimaryKey);
if (sScreenName.equals("HrmAprslSpcTmplGoals"))
oRecordMetaInfo = oHrmThirdFacade.getHrmAprslSpcTmpGoalsDtlMetaInfo(lPrimaryKey);
if (sScreenName.equals("HrmAprslSpcTmplEmpElig"))
oRecordMetaInfo = oHrmThirdFacade.getHrmAprslSpcTmpEligDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList arylstRet = new ArrayList();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sScreenName.equals("HrmAprslSpcTmpl"))
arylstRet = oHrmThirdFacade.getHrmAprslSpcTmpKPADetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equals("HrmAprslSpcTmplGoals"))
arylstRet = oHrmThirdFacade.getHrmAprslSpcTmpGoalsDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equals("HrmAprslSpcTmplEmpElig"))
arylstRet = oHrmThirdFacade.getHrmAprslSpcTmpEligDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
return arylstRet;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmAprslSpcTmpHdrMetaInfo((HrmAprslSpcTmplQVO)oQueryVO);
} 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.getHrmAprslSpcTmpHeaderInfo((HrmAprslSpcTmplQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butTemplateName");
oDisableList.add("butClassHdr");
oDisableList.add("butClassDtl");
oDisableList.add("butSiteCode");
oDisableList.add("butDeptCode");
oDisableList.add("butEmpNo");
oDisableList.add("butStOrderNo");
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
oDisableList.add("splTemplateName");
oDisableList.add("butSplTemplateName");
oEnableList.add("butGetDetail");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butClassHdr");
oDisableList.add("butClassDtl");
oDisableList.add("butSiteCode");
oDisableList.add("butDeptCode");
oDisableList.add("butEmpNo");
oDisableList.add("butStOrderNo");
oDisableList.add("butTemplateName");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("butSplTemplateName");
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"))
sHeaderPrimaryKey = oHrmThirdFacade.approveHrmAprslSpcTmp((HrmAprslSpcTmplHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sButtonName.equalsIgnoreCase("butReject"))
sHeaderPrimaryKey = oHrmThirdFacade.rejectHrmAprslSpcTmp((HrmAprslSpcTmplHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
if (oThisPageVO.getActionName() == 13 || oThisPageVO.getActionName() == 10) {
HrmAprslSpcTmplHdrBean oHrmAprslSpcTmplHdrBean = (HrmAprslSpcTmplHdrBean)oThisPageVO.getOHeaderBean();
oHrmAprslSpcTmplHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmAprslSpcTmplHdrBean.setEmpLoyeeNumber(this.oUserInfo.getUserId());
oHrmAprslSpcTmplHdrBean.setEmployeeName(this.oUserInfo.getUserName());
}
}
}

View File

@@ -0,0 +1,100 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAprslStartOrderHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmAprslStartOrderQVO;
public class HrmAprslStartOrderBD extends HrmBaseBD {
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacade oHrmThirdFacade = (HrmThirdFacade)getModuleFacade("ThirdHRMS");
return oHrmThirdFacade.getHrmAprslStOrderMetaInfo((HrmAprslStartOrderQVO)oQueryVO);
} 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 {
HrmThirdFacade oHrmThirdFacade = (HrmThirdFacade)getModuleFacade("ThirdHRMS");
ArrayList oHeaderList = oHrmThirdFacade.getHrmAprslStOrderInfo((HrmAprslStartOrderQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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();
String sHeaderPrimaryKey = oHrmThirdFacade.saveHrmAprslStOrder((HrmAprslStartOrderHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
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 null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
BaseHeaderBean oBaseHeaderBean = oThisPageVO.getOHeaderBean();
HrmAprslStartOrderHdrBean oHrmAprslStartOrderHdrBean = (HrmAprslStartOrderHdrBean)oBaseHeaderBean;
if (!oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butStOrderNo");
oEnableList.add("butAprslStDate");
oEnableList.add("butAprslEndDate");
oEnableList.add("butPeriodEndDate");
oEnableList.add("butPeriodStDate");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butStOrderNo");
oDisableList.add("butAprslStDate");
oDisableList.add("butAprslEndDate");
oDisableList.add("butPeriodEndDate");
oDisableList.add("butPeriodStDate");
}
oHashMap.put("D", oDisableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,115 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAprslStartRuleHdrBean;
import wenrgise.hrms.ejb.facade.HrmThirdFacade;
import wenrgise.hrms.ejb.facade.HrmThirdFacadeHome;
import wenrgise.hrms.vo.HrmAprslStartRuleQVO;
public class HrmAprslStartRuleBD extends HrmBaseBD {
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 {
try {
HrmThirdFacade oHrmThirdFacade = (HrmThirdFacade)getModuleFacade("ThirdHRMS");
return oHrmThirdFacade.saveHrmAprslStRule((HrmAprslStartRuleHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
oRecordMetaInfo = oHrmThirdFacade.getHrmAprslStRuleDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList arylstRet = new ArrayList();
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
arylstRet = oHrmThirdFacade.getHrmAprslStRuleDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
return arylstRet;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmThirdFacadeHome oHome = (HrmThirdFacadeHome)ServiceLocator.getLocator().getService("HrmThirdFacade");
HrmThirdFacade oHrmThirdFacade = oHome.create();
return oHrmThirdFacade.getHrmAprslStRuleHdrMetaInfo((HrmAprslStartRuleQVO)oQueryVO);
} 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.getHrmAprslStRuleHeader((HrmAprslStartRuleQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
HrmAprslStartRuleHdrBean oHrmAprslStartRuleHdrBean = (HrmAprslStartRuleHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butTxtAprslStOrdNo");
oDisableList.add("butTxtEmpNum");
oDisableList.add("butTxtWrkGrpCode");
oDisableList.add("butTxtSiteCode");
oDisableList.add("butTxtClsHdr");
oDisableList.add("butTxtClsDtl");
}
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 null;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
}

View File

@@ -0,0 +1,114 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseDetailInfo;
import wenrgise.common.vo.BaseDetailVO;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.DetailSizeValues;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.session.UserSession;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAttEmpAttOutHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttEmpAttOutQVO;
public class HrmAttEmpAttOutBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String sPrimaryKey, HrmAttEmpAttOutQVO objHrmAttEmpAttOutQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = null;
return oRecordMetaInfo;
}
public BaseDetailVO getDetailRecord(String sFormName, String sScreenName, String sPrimaryKey, long lPageRequested, DetailSizeValues oDetailSizeValues, BaseDetailVO oBaseDetailVO, UserSession oUser, BaseDetailInfo oBaseDetailInfo, boolean bForce) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
if (oThisPageVO.getActionName() == 10 || oThisPageVO.getActionName() == 10 || oThisPageVO.getActionName() == 21 || oThisPageVO.getActionName() == 13) {
HrmAttEmpAttOutHdrBean oHrmAttEmpAttOutHdrBean = (HrmAttEmpAttOutHdrBean)oThisPageVO.getOHeaderBean();
oHrmAttEmpAttOutHdrBean.setEmpId(this.oUserInfo.getUserTypeId());
oHrmAttEmpAttOutHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmAttEmpAttOutHdrBean.setFirstName(oName[0]);
oHrmAttEmpAttOutHdrBean.setMiddleName(oName[1]);
oHrmAttEmpAttOutHdrBean.setLastName(oName[2]);
}
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmAttOutHdrMetaInfo((HrmAttEmpAttOutQVO)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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmAttOutHeaderInfo((HrmAttEmpAttOutQVO)oQueryVO, lStartPosition, lLastPosition);
System.out.println(oHeaderList.size());
return oHeaderList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmAttEmpOut((HrmAttEmpAttOutHdrBean)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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butInsert");
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,124 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAttEmpAttQueryDtlBean;
import wenrgise.hrms.bean.HrmAttEmpAttQueryHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttEmpAttQueryQVO;
public class HrmAttEmpAttQueryBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getEmpAttQueryHdrMetaInfo((HrmAttEmpAttQueryQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getEmpAttQueryHeader((HrmAttEmpAttQueryQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getEmpAttQueryDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.getEmpAttQueryDtlInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.saveHrmAttEmpQuery(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public void onLoadAction(ThisPageVO oThisPageVO) {
if (oThisPageVO.getActionName() == 10) {
HrmAttEmpAttQueryHdrBean oHrmAttEmpAttQueryHdrBean = (HrmAttEmpAttQueryHdrBean)oThisPageVO.getOHeaderBean();
oHrmAttEmpAttQueryHdrBean.setEmpId(this.oUserInfo.getUserTypeId());
} else if (oThisPageVO.getActionName() == 13) {
HrmAttEmpAttQueryHdrBean oHrmAttEmpAttQueryHdrBean = (HrmAttEmpAttQueryHdrBean)oThisPageVO.getOHeaderBean();
oHrmAttEmpAttQueryHdrBean.setEmpId(this.oUserInfo.getUserTypeId());
} else if (oThisPageVO.getActionName() == 19) {
HrmAttEmpAttQueryHdrBean oHrmAttEmpAttQueryHdrBean = (HrmAttEmpAttQueryHdrBean)oThisPageVO.getOHeaderBean();
oHrmAttEmpAttQueryHdrBean.setEmpId(this.oUserInfo.getUserTypeId());
}
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
HrmAttEmpAttQueryHdrBean oHdrBean = (HrmAttEmpAttQueryHdrBean)oThisPageVO.getOHeaderBean();
HrmAttEmpAttQueryDtlBean objHrmAttEmpAttQueryDtlBean = new HrmAttEmpAttQueryDtlBean();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butDelRow");
oDisableList.add("butAddRow");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oEnableList.add("butQuery");
oEnableList.add("butInsert");
oDisableList.add("butPeriodStartDt");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N"))
oEnableList.add("butPeriodStartDt");
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,115 @@
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.HrmAttEmpDayOffHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttEmpDayOffQVO;
public class HrmAttEmpDayOffBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.getHrmAttEmpDayoffDtlMetaInfo((HrmAttEmpDayOffQVO)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 {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmAttEmpDayOff"))
return oHrmSecondFacade.getHrmAttEmpDayoffDetailInfo((HrmAttEmpDayOffQVO)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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmAttEmpDayoffData(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 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 arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmAttEmpDayOffHdrBean oHrmAttEmpDayOffHdrBean = (HrmAttEmpDayOffHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisableList.add("butExecute");
if (EnrgiseUtil.checkString(oHrmAttEmpDayOffHdrBean.getEmployeeNo()))
arylstEnableList.add("butGetDetail");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstEnableList.add("butSave");
arylstDisableList.add("butEmpNo");
arylstDisableList.add("butPrdStDt");
arylstDisableList.add("butPrdEndDt");
}
if (oThisPageVO.getScreenMode().equals("N")) {
arylstDisableList.add("butPrdStDt");
arylstDisableList.add("butPrdEndDt");
if (EnrgiseUtil.checkString(oHrmAttEmpDayOffHdrBean.getEmployeeNo()))
arylstEnableList.add("butAddRow");
}
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("");
}
}

View File

@@ -0,0 +1,138 @@
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.BaseDetailInfo;
import wenrgise.common.vo.BaseDetailVO;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.DetailSizeValues;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.session.UserSession;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAttEmpAttInHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttEmpAttInQVO;
public class HrmAttEmpInBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String sPrimaryKey, HrmAttEmpAttInQVO objHrmAttEmpAttInQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = null;
return oRecordMetaInfo;
}
public BaseDetailVO getDetailRecord(String sFormName, String sScreenName, String sPrimaryKey, long lPageRequested, DetailSizeValues oDetailSizeValues, BaseDetailVO oBaseDetailVO, UserSession oUser, BaseDetailInfo oBaseDetailInfo, boolean bForce) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
if (oThisPageVO.getActionName() == 10 || oThisPageVO.getActionName() == 10 || oThisPageVO.getActionName() == 21 || oThisPageVO.getActionName() == 13) {
HrmAttEmpAttInHdrBean hrmAttEmpAttInHdrBean = (HrmAttEmpAttInHdrBean)oThisPageVO.getOHeaderBean();
hrmAttEmpAttInHdrBean.setEmpId(this.oUserInfo.getUserTypeId());
hrmAttEmpAttInHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
hrmAttEmpAttInHdrBean.setFirstName(oName[0]);
hrmAttEmpAttInHdrBean.setMiddleName(oName[1]);
hrmAttEmpAttInHdrBean.setLastName(oName[2]);
}
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmAttEmpAttInHdrBean oHrmAttEmpAttInHdrBean1 = (HrmAttEmpAttInHdrBean)oThisPageVO.getOHeaderBean();
HrmSecondFacade oHrmSecondFacade = oHome.create();
HrmAttEmpAttInHdrBean oHrmAttEmpAttInHdrBean = oHrmSecondFacade.getOnLoadSysDtTime(oHrmAttEmpAttInHdrBean1);
oThisPageVO.setOHeaderBean((BaseHeaderBean)oHrmAttEmpAttInHdrBean);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmAttHdrMetaInfo((HrmAttEmpAttInQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmAttHeaderInfo((HrmAttEmpAttInQVO)oQueryVO, lStartPosition, lLastPosition);
System.out.println(oHeaderList.size());
return oHeaderList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmAttEmpIn((HrmAttEmpAttInHdrBean)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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmAttEmpAttInHdrBean oHrmAttEmpAttInHdrBean = (HrmAttEmpAttInHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oEnableList.add("butSave");
if (!oHrmAttEmpAttInHdrBean.equals(null))
if (EnrgiseUtil.checkString(oHrmAttEmpAttInHdrBean.getAttndStatus())) {
String sAttStatus = oHrmAttEmpAttInHdrBean.getAttndStatus();
if (String.valueOf(sAttStatus).equalsIgnoreCase("L")) {
oEnableList.add("reasons");
} else if (String.valueOf(sAttStatus).equalsIgnoreCase("T")) {
oDisableList.add("reasons");
}
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,117 @@
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.HrmAttEmpShiftHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttEmpShiftQVO;
public class HrmAttEmpShiftBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.getHrmAttEmpShiftDtlMetaInfo((HrmAttEmpShiftQVO)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 {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmAttEmpShift"))
return oHrmSecondFacade.getHrmAttEmpShiftDtlInfo((HrmAttEmpShiftQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveEmpShift(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmAttEmpShiftHdrBean oHrmAttEmpShiftHdrBean = (HrmAttEmpShiftHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisableList.add("butExecute");
arylstDisableList.add("butDelete");
if (EnrgiseUtil.checkString(oHrmAttEmpShiftHdrBean.getEmployeeNo()))
arylstEnableList.add("butGetDetail");
}
if (oThisPageVO.getScreenMode().equals("N")) {
arylstDisableList.add("butExecute");
arylstDisableList.add("butGetDetail");
arylstDisableList.add("butDelete");
if (EnrgiseUtil.checkString(oHrmAttEmpShiftHdrBean.getEmployeeNo())) {
arylstEnableList.add("butAddRow");
arylstEnableList.add("butDelRow");
}
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstEnableList.add("butSave");
arylstDisableList.add("butDelete");
}
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,109 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttEmpShiftRosterQVO;
public class HrmAttEmployeeShiftRosterBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oEmpShiftRosterFacade = oHome.create();
return oEmpShiftRosterFacade.getAttEmpshiftRosterDetailMetaInfo((HrmAttEmpShiftRosterQVO)oBaseQueryVO);
} catch (RemoteException oRe) {
System.out.println(oRe.getMessage());
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
System.out.println(oCrt.getMessage());
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(BaseQueryVO oBaseQueryVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmAttEmpShiftRoster"))
return oHrmSecondFacade.getAttEmpshiftRosterDetail((HrmAttEmpShiftRosterQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String sPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String sPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return new RecordMetaInfo();
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new ArrayList();
}
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 null;
}
public String getInsertDataImpl(BaseQueryVO oBaseQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butExecute");
oDisableList.add("butDelete");
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
oDisableList.add("butSave");
oDisableList.add("butInsert");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
oEnableList.add("butGetDetail");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
oDisableList.add("butWorkGrpCode");
oDisableList.add("butEmpNo");
oDisableList.add("butSiteId");
oDisableList.add("butperiodStartDate");
oDisableList.add("butperiodEndDate");
oEnableList.add("butQuery");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,123 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmAttShiftMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttShiftMstQVO;
public class HrmAttShiftMstBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String sPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String sPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oShiftAttMstFacade = oHome.create();
return oShiftAttMstFacade.saveAttShiftMstData((HrmAttShiftMstHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} 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 RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oShiftAttMstFacade = oHome.create();
return oShiftAttMstFacade.getAttShiftMstHeaderMetaInfo((HrmAttShiftMstQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oShiftAttMstFacade = oHome.create();
ArrayList oHeaderList = oShiftAttMstFacade.getAttShiftMstHeader((HrmAttShiftMstQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 null;
}
public String getInsertDataImpl(BaseQueryVO oBaseQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equals("Q")) {
oEnableList.add("butShiftCode");
oDisableList.add("shiftCode");
oDisableList.add("startTime");
oDisableList.add("endTime");
oDisableList.add("relaxationTime");
oDisableList.add("startTolerenceTime");
oDisableList.add("endTolerenceTime");
oDisableList.add("overlapTime");
oDisableList.add("txtDayOverlapFlag");
}
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butRefresh");
oEnableList.add("butSave");
oDisableList.add("butShiftCode");
oDisableList.add("startTime");
oDisableList.add("endTime");
oDisableList.add("shiftCode");
oEnableList.add("relaxationTime");
oEnableList.add("startTolerenceTime");
oEnableList.add("endTolerenceTime");
oEnableList.add("overlapTime");
oEnableList.add("txtDayOverlapFlag");
}
if (oThisPageVO.getScreenMode().equals("N")) {
oDisableList.add("butShiftCode");
oEnableList.add("shiftCode");
oEnableList.add("startTime");
oEnableList.add("endTime");
oEnableList.add("relaxationTime");
oEnableList.add("startTolTime");
oEnableList.add("endTolTime");
oEnableList.add("overlapTime");
oEnableList.add("overlapDayFlag");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,80 @@
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.HrmAttShiftRosterGenHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
public class HrmAttShiftRosterGenBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
arylstDisableList.add("butExecute");
HrmAttShiftRosterGenHdrBean oHrmAttShiftRosterGenHdrBean = (HrmAttShiftRosterGenHdrBean)oThisPageVO.getOHeaderBean();
if (EnrgiseUtil.checkString(oHrmAttShiftRosterGenHdrBean.getSite())) {
arylstEnableList.add("butWrkGrpCode");
arylstDisableList.add("butSiteCode");
} else {
arylstEnableList.add("butSiteCode");
arylstDisableList.add("butWrkGrpCode");
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oShiftRosterGenFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butGenerate"))
sHeaderPrimaryKey = oShiftRosterGenFacade.saveShiftRosterGenData((HrmAttShiftRosterGenHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,114 @@
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.HrmAttWorkGroupDayOffHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttWorkGroupDayOffQVO;
public class HrmAttWorkGroupDayOffBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.getHrmAttWorkGroupDayOffDtlMetaInfo((HrmAttWorkGroupDayOffQVO)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 {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmAttWorkGroupDayOff"))
return oHrmSecondFacade.getHrmAttWorkGroupDayOffDetailInfo((HrmAttWorkGroupDayOffQVO)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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmAttWorkGroupDayOffData(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 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 arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmAttWorkGroupDayOffHdrBean oHrmAttWorkGroupDayOffHdrBean = (HrmAttWorkGroupDayOffHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisableList.add("butExecute");
if (EnrgiseUtil.checkString(oHrmAttWorkGroupDayOffHdrBean.getSiteCode()) && EnrgiseUtil.checkString(oHrmAttWorkGroupDayOffHdrBean.getWorkGroupCode()))
arylstEnableList.add("butGetDetail");
}
if (EnrgiseUtil.checkString(oHrmAttWorkGroupDayOffHdrBean.getSiteCode())) {
arylstEnableList.add("butWrkGrpCode");
arylstDisableList.add("butSiteCode");
} else {
arylstDisableList.add("butWrkGrpCode");
}
if (oThisPageVO.getScreenMode().equals("N"))
if (EnrgiseUtil.checkString(oHrmAttWorkGroupDayOffHdrBean.getSiteCode()) && EnrgiseUtil.checkString(oHrmAttWorkGroupDayOffHdrBean.getWorkGroupCode()))
arylstEnableList.add("butAddRow");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
arylstEnableList.add("butSave");
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("");
}
}

View File

@@ -0,0 +1,130 @@
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.HrmAttWorkGroupShiftHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmAttWorkGroupShiftQVO;
public class HrmAttWorkGroupShiftBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.getHrmAttWGShiftDtlMetaInfo((HrmAttWorkGroupShiftQVO)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 {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmAttWorkGroupShift"))
return oHrmSecondFacade.getHrmAttWGShiftDtlInfo((HrmAttWorkGroupShiftQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveWGS(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmAttWorkGroupShiftHdrBean oHrmAttWorkGroupShiftHdrBean = (HrmAttWorkGroupShiftHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
arylstDisableList.add("butExecute");
arylstDisableList.add("butDelete");
if (EnrgiseUtil.checkString(oHrmAttWorkGroupShiftHdrBean.getWorkGroupCode()) && EnrgiseUtil.checkString(oHrmAttWorkGroupShiftHdrBean.getSiteCode()))
arylstEnableList.add("butGetDetail");
if (EnrgiseUtil.checkString(oHrmAttWorkGroupShiftHdrBean.getSiteCode())) {
arylstEnableList.add("butWrkGrpCode");
arylstDisableList.add("butSiteCode");
} else {
arylstDisableList.add("butWrkGrpCode");
}
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
arylstDisableList.add("butExecute");
arylstDisableList.add("butGetDetail");
arylstDisableList.add("butDelete");
if (EnrgiseUtil.checkString(oHrmAttWorkGroupShiftHdrBean.getSiteCode()) && EnrgiseUtil.checkString(oHrmAttWorkGroupShiftHdrBean.getWorkGroupCode())) {
arylstEnableList.add("butAddRow");
arylstEnableList.add("butDelRow");
}
if (EnrgiseUtil.checkString(oHrmAttWorkGroupShiftHdrBean.getSiteCode())) {
arylstEnableList.add("butWrkGrpCode");
arylstEnableList.add("butSiteCode");
} else {
arylstDisableList.add("butWrkGrpCode");
}
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstEnableList.add("butSave");
arylstDisableList.add("butDelete");
arylstEnableList.add("butQuery");
}
oHashMap.put("D", arylstDisableList);
oHashMap.put("E", arylstEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,5 @@
package wenrgise.hrms.businessdelegate;
import wenrgise.common.businessdelegate.BaseBD;
public abstract class HrmBaseBD extends BaseBD {}

View File

@@ -0,0 +1,127 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmClaimMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmClaimMstQVO;
public class HrmClaimMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmClaimMstHdrMetaInfo((HrmClaimMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmClaimMstHdrInfo((HrmClaimMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmClaimMstDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmClaimMstDtlInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmClaimMstHdrBean oHrmClaimMstHdrBean = (HrmClaimMstHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmClaimMstHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butClaimCode");
oDisableList.add("claimCode");
oDisableList.add("claimName");
oDisableList.add("docReqFlag");
oDisableList.add("butCalendarCode");
oDisableList.add("payrollFlag");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butClaimCode");
oEnableList.add("claimCode");
oEnableList.add("claimName");
oEnableList.add("docReqFlag");
oEnableList.add("butCalendarCode");
oEnableList.add("payrollFlag");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("butClaimCode");
oEnableList.add("claimCode");
oEnableList.add("claimName");
oEnableList.add("docReqFlag");
oEnableList.add("butCalendarCode");
oEnableList.add("payrollFlag");
}
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();
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
String sHeaderPrimaryKey = oHrmFacade.saveHrmClaimMst((HrmClaimMstHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
}

View File

@@ -0,0 +1,183 @@
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.HrmEmpAdvAppHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmEmpAdvAppQueryVO;
public class HrmEmpAdvAppBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpAdvAppHdrMetaInfo((HrmEmpAdvAppQueryVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmEmpAdvAppHeaderInfo((HrmEmpAdvAppQueryVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveData((HrmEmpAdvAppHdrBean)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 String submitImpl(String sButtonName, BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butBulkSettlement"))
sHeaderPrimaryKey = oHrmFacade.advAppBulkSettlePayment((HrmEmpAdvAppHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmEmpAdvAppHdrBean oHrmEmpAdvAppHdrBean = (HrmEmpAdvAppHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmEmpAdvAppHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butEmployeeNo");
if (EnrgiseUtil.checkString(oHrmEmpAdvAppHdrBean.getEmployeeId())) {
oEnableList.add("butAdvanceCode");
} else {
oDisableList.add("butAdvanceCode");
}
oEnableList.add("butFromDate");
oEnableList.add("butToDate");
oDisableList.add("butDateApplied");
oDisableList.add("amountApplied");
oDisableList.add("sanctionedAmount");
oDisableList.add("butSanctionDate");
oDisableList.add("reason");
oDisableList.add("butApproverNo");
oDisableList.add("remarks");
oDisableList.add("payrollMonth");
oDisableList.add("butBulkSettlement");
oDisableList.add("bulkSettleAmount");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butEmployeeNo");
oDisableList.add("butAdvanceCode");
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
oEnableList.add("butDateApplied");
oEnableList.add("amountApplied");
oEnableList.add("sanctionedAmount");
oEnableList.add("butSanctionDate");
oEnableList.add("reason");
oEnableList.add("butApproverNo");
oEnableList.add("remarks");
if (EnrgiseUtil.checkString(oHrmEmpAdvAppHdrBean.getPaidInstallments())) {
if (Integer.parseInt(oHrmEmpAdvAppHdrBean.getPaidInstallments()) > 0) {
oDisableList.add("payrollMonth");
} else {
oEnableList.add("payrollMonth");
}
} else {
oEnableList.add("payrollMonth");
}
if (EnrgiseUtil.checkString(oHrmEmpAdvAppHdrBean.getBalance()))
if (Float.parseFloat(oHrmEmpAdvAppHdrBean.getBalance()) == false) {
oDisableList.add("bulkSettleAmount");
oDisableList.add("butBulkSettlement");
oHrmEmpAdvAppHdrBean.setMode("M");
}
if (EnrgiseUtil.checkString(oHrmEmpAdvAppHdrBean.getMode())) {
if (oHrmEmpAdvAppHdrBean.getMode().equalsIgnoreCase("B")) {
oDisableList.add("butBulkSettlement");
oEnableList.add("bulkSettleAmount");
} else if (oHrmEmpAdvAppHdrBean.getMode().equalsIgnoreCase("M")) {
oDisableList.add("butBulkSettlement");
oDisableList.add("bulkSettleAmount");
} else {
oEnableList.add("butBulkSettlement");
oDisableList.add("bulkSettleAmount");
}
} else {
oEnableList.add("butBulkSettlement");
oDisableList.add("bulkSettleAmount");
}
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("bulkSettleAmount");
oDisableList.add("butBulkSettlement");
oEnableList.add("butEmployeeNo");
if (EnrgiseUtil.checkString(oHrmEmpAdvAppHdrBean.getEmployeeId())) {
oEnableList.add("butAdvanceCode");
} else {
oDisableList.add("butAdvanceCode");
}
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
oEnableList.add("butDateApplied");
oEnableList.add("amountApplied");
oEnableList.add("sanctionedAmount");
oEnableList.add("butSanctionDate");
oEnableList.add("reason");
oEnableList.add("butApproverNo");
oEnableList.add("remarks");
oEnableList.add("payrollMonth");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,152 @@
package wenrgise.hrms.businessdelegate;
import java.lang.reflect.InvocationTargetException;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.ejb.CreateException;
import org.apache.commons.beanutils.BeanUtils;
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.HrmEmpClaimDtlBean;
import wenrgise.hrms.bean.HrmEmpClaimHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmEmpClaimQVO;
public class HrmEmpClaimBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oInfo = new RecordMetaInfo();
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
oInfo.setRecordCount(1L);
oInfo.setOWhenPicked(null);
return null;
} 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 {
ArrayList oHeaderList = null;
HrmEmpClaimQVO oVo = (HrmEmpClaimQVO)oQueryVO;
HrmEmpClaimHdrBean oBean = new HrmEmpClaimHdrBean();
BeanUtils.copyProperties(oBean, oVo);
oHeaderList.add(oBean);
return oHeaderList;
} catch (InvocationTargetException oEx) {
throw new EnrgiseSystemException(oEx);
} catch (IllegalAccessException oEx) {
throw new EnrgiseSystemException(oEx);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpClaimDetailMetaInfo((HrmEmpClaimQVO)oQVO);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(BaseQueryVO oQVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpClaimDetailInfo((HrmEmpClaimQVO)oQVO, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmEmpClaim(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 arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
HrmEmpClaimHdrBean oHrmEmpClaimHdrBean = (HrmEmpClaimHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oList = oThisPageVO.getODetailList();
arylstEnab.add("butSave");
arylstEnab.add("butQuery");
arylstDisab.add("butExecute");
arylstDisab.add("butDelete");
arylstDisab.add("butInsert");
arylstDisab.add("butDelRow");
if (oThisPageVO.getScreenMode().equals("U")) {
arylstDisab.add("butGetDetail");
arylstDisab.add("butStartDate");
arylstDisab.add("butEndDate");
arylstDisab.add("butClaimNo");
arylstDisab.add("butEmpNo");
arylstDisab.add("butClaimCode");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
if (EnrgiseUtil.checkString(oHrmEmpClaimHdrBean.getPeriod())) {
arylstEnab.add("butGetDetail");
} else {
arylstDisab.add("butGetDetail");
}
}
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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) {
ArrayList oList = oThisPageVO.getODetailList();
if (oList != null) {
Iterator oIt = oList.iterator();
while (oIt.hasNext()) {
HrmEmpClaimDtlBean oHrmEmpClaimDtlBean = oIt.next();
oHrmEmpClaimDtlBean.setTxtRemarks(oHrmEmpClaimDtlBean.getTxtNewRemarks());
}
}
}
}

View File

@@ -0,0 +1,102 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmEmpDepHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmEmpDepDtlQVO;
public class HrmEmpDepDtlBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpDepDtlHdrMetaInfo((HrmEmpDepDtlQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmEmpDepDtlHdrInfo((HrmEmpDepDtlQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpDepDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpDepDtlInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmEmpDepDtl((HrmEmpDepHdrBean)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 new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
arylstDisab.add("butDelete");
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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("");
}
}

View File

@@ -0,0 +1,105 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmEmpDiscActionHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmEmpDiscActionQVO;
public class HrmEmpDiscActionBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpDiscActionHdrMetaInfo((HrmEmpDiscActionQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmEmpDiscActionHdrInfo((HrmEmpDiscActionQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpDiscActionMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpDiscActionInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmEmpDiscAction((HrmEmpDiscActionHdrBean)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 new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisabledFields = new ArrayList();
arylstDisabledFields.add("butDelete");
if (oThisPageVO.getScreenMode().equals("U"))
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmEmpDiscAction"))
arylstDisabledFields.add("butEmpNo");
oHashMap.put("D", arylstDisabledFields);
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();
}
}

View File

@@ -0,0 +1,421 @@
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.HrmEmpPersDtlsBean;
import wenrgise.hrms.bean.HrmEmpPersHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmEmpPersQVO;
public class HrmEmpPersBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmEmpPersHdrMetaInfo((HrmEmpPersQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmEmpPersHdrInfo((HrmEmpPersQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
HrmSecondFacadeHome oSecHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oSecHome.create();
if (sScreenName.equalsIgnoreCase("HrmEmpPersDtls"))
return oHrmFacade.getHrmEmpPersDtlsMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAddDtls"))
return oHrmFacade.getHrmEmpPersAddDtlsMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersJoinInf"))
return oHrmFacade.getHrmEmpPersJoinInfMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersEduDtls"))
return oHrmFacade.getHrmEmpPersEduDtlsMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersPriorExp"))
return oHrmFacade.getHrmEmpPersPriorExpMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersPFDtls"))
return oHrmFacade.getHrmEmpPersPFDtlsMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersEmpHst"))
return oHrmFacade.getHrmEmpPersEmpHistMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersTrngDtls"))
return oHrmFacade.getHrmEmpPersTrngDtlsMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAward"))
return oHrmFacade.getHrmEmpPersAwardMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersIns"))
return oHrmFacade.getHrmEmpPersInsMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersHealth"))
return oHrmFacade.getHrmEmpPersHealthMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersLng"))
return oHrmFacade.getHrmEmpPersLngMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersRef"))
return oHrmFacade.getHrmEmpPersRefMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAsset"))
return oHrmSecondFacade.getHrmEmpPersAssetMetaInfo(lPrimaryKey);
RecordMetaInfo obj = new RecordMetaInfo();
return obj;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
HrmSecondFacadeHome oSecHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oSecHome.create();
if (sScreenName.equalsIgnoreCase("HrmEmpPersDtls"))
return oHrmFacade.getHrmEmpPersDtlsInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAddDtls"))
return oHrmFacade.getHrmPersAddDtlsInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersJoinInf"))
return oHrmFacade.getHrmEmpPersJoinInfInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersEduDtls"))
return oHrmFacade.getHrmEmpPersEduDtlsInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersPriorExp"))
return oHrmFacade.getHrmEmpPersPriorExpInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersPFDtls"))
return oHrmFacade.getHrmEmpPersPFDtlsInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersEmpHst"))
return oHrmFacade.getHrmEmpPersEmpHistInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersTrngDtls"))
return oHrmFacade.getHrmEmpPersTrngDtlsInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAward"))
return oHrmFacade.getHrmEmpPersAwardInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersIns"))
return oHrmFacade.getHrmEmpPersInsInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersHealth"))
return oHrmFacade.getHrmEmpPersHealthInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersLng"))
return oHrmFacade.getHrmEmpPersLngInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersRef"))
return oHrmFacade.getHrmEmpPersRefInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAsset"))
return oHrmSecondFacade.getHrmEmpPersAssetInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
ArrayList obj = new ArrayList();
return obj;
} 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 {
oWhenPicked = oDetailPicked;
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
HrmSecondFacadeHome oSecHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oSecHome.create();
if (sScreenName.equalsIgnoreCase("HrmEmpPersDtls"))
return oHrmFacade.saveHrmEmpPersDtls((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAddDtls"))
return oHrmFacade.saveHrmEmpPersAddDtls((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersJoinInf"))
return oHrmFacade.saveHrmEmpPersJoinInf((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersEmpHst"))
return oHrmFacade.saveHrmEmpPersEmpHist((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersPFDtls"))
return oHrmFacade.saveHrmEmpPersPFDtls((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersEduDtls"))
return oHrmFacade.saveHrmEmpPersEduDtls((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersPriorExp"))
return oHrmFacade.saveHrmEmpPersPriorExp((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersTrngDtls"))
return oHrmFacade.saveHrmEmpPersTrngDtls((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAward"))
return oHrmFacade.saveHrmEmpPersAward((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersIns"))
return oHrmFacade.saveHrmEmpPersIns((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersHealth"))
return oHrmFacade.saveHrmEmpPersHealth((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersLng"))
return oHrmFacade.saveHrmEmpPersLng((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersRef"))
return oHrmFacade.saveHrmEmpPersRef((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmEmpPersAsset"))
return oHrmSecondFacade.saveHrmEmpPersAsset((HrmEmpPersHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
HrmEmpPersHdrBean oHrmEmpPersHdrBean = (HrmEmpPersHdrBean)oThisPageVO.getOHeaderBean();
arylstDisab.add("butDelete");
if (oThisPageVO.getScreenMode().equals("Q"))
if (oThisPageVO.getScreenName().equals("HrmEmpPersDtls")) {
arylstDisab.add("sex");
arylstDisab.add("guardianName");
arylstDisab.add("mobile");
arylstDisab.add("personalEmail");
arylstDisab.add("placeOfBirth");
arylstDisab.add("bloodGroup");
arylstDisab.add("idMark");
arylstDisab.add("dependants");
arylstDisab.add("panNumber");
arylstDisab.add("pfNumber");
arylstDisab.add("girNumber");
arylstDisab.add("passportNo");
arylstDisab.add("drivingLicenseNo");
arylstDisab.add("placeOfIssue");
arylstDisab.add("validUpto");
arylstDisab.add("spouseName");
arylstDisab.add("spouseOccupation");
arylstDisab.add("relatedToEmployee");
arylstDisab.add("flat");
arylstDisab.add("handicappedFlag");
arylstDisab.add("butNationality");
arylstDisab.add("butDateOfBirth");
arylstDisab.add("butLocJoiningDate");
arylstDisab.add("butLocation");
arylstDisab.add("butDepartment");
arylstDisab.add("butDesignation");
arylstDisab.add("butReligion");
arylstDisab.add("butMotherTongue");
arylstDisab.add("butReportingEmployee");
arylstDisab.add("butLastPromotionDate");
arylstDisab.add("butRsvCtg");
arylstDisab.add("butPassportIssueDate");
arylstDisab.add("butPassportExpDate");
arylstDisab.add("butValidUpto");
arylstDisab.add("butMaritalStatus");
arylstDisab.add("butRelatedEmployee");
arylstDisab.add("butGrade");
arylstDisab.add("butDraftSave");
arylstDisab.add("butAnniversaryDate");
arylstDisab.add("motherName");
arylstDisab.add("tabAddDtls");
arylstDisab.add("tabJoiningInfo");
arylstDisab.add("tabEmpHist");
arylstDisab.add("tabPriorExp");
arylstDisab.add("tabEduDtls");
arylstDisab.add("tabPFDtls");
arylstDisab.add("tabTrngDtls");
arylstDisab.add("tabAwardDtls");
arylstDisab.add("tabInsDtls");
arylstDisab.add("tabHealth");
arylstDisab.add("tabLng");
arylstDisab.add("tabRef");
}
if (oThisPageVO.getScreenMode().equals("N"))
if (oThisPageVO.getScreenName().equals("HrmEmpPersDtls")) {
arylstDisab.add("sex");
arylstDisab.add("guardianName");
arylstDisab.add("placeOfBirth");
arylstDisab.add("mobile");
arylstDisab.add("personalEmail");
arylstDisab.add("bloodGroup");
arylstDisab.add("idMark");
arylstDisab.add("dependants");
arylstDisab.add("panNumber");
arylstDisab.add("pfNumber");
arylstDisab.add("girNumber");
arylstDisab.add("passportNo");
arylstDisab.add("drivingLicenseNo");
arylstDisab.add("placeOfIssue");
arylstDisab.add("validUpto");
arylstDisab.add("spouseName");
arylstDisab.add("spouseOccupation");
arylstDisab.add("relatedToEmployee");
arylstDisab.add("flat");
arylstDisab.add("handicappedFlag");
arylstDisab.add("butNationality");
arylstDisab.add("butDateOfBirth");
arylstDisab.add("butLocJoiningDate");
arylstDisab.add("butLocation");
arylstDisab.add("butDepartment");
arylstDisab.add("butDesignation");
arylstDisab.add("butGrade");
arylstDisab.add("butReligion");
arylstDisab.add("butMotherTongue");
arylstDisab.add("butReportingEmployee");
arylstDisab.add("butLastPromotionDate");
arylstDisab.add("butRsvCtg");
arylstDisab.add("butPassportIssueDate");
arylstDisab.add("butPassportExpDate");
arylstDisab.add("butValidUpto");
arylstDisab.add("butMaritalStatus");
arylstDisab.add("butRelatedEmployee");
arylstDisab.add("butDraftSave");
arylstDisab.add("butAnniversaryDate");
arylstDisab.add("motherName");
}
if (oThisPageVO.getScreenMode().equals("U")) {
if (oThisPageVO.getScreenName().equals("HrmEmpPersAddDtls")) {
arylstDisab.add("butJumpDetail");
arylstDisab.add("newPageRequested");
arylstDisab.add("butNextDetail");
arylstDisab.add("butPrevDetail");
}
if (oThisPageVO.getScreenName().equals("HrmEmpPersDtls"))
if (oThisPageVO.getODetailList() != null) {
HrmEmpPersDtlsBean oHrmEmpPersDtlsBean = oThisPageVO.getODetailList().get(0);
arylstEnab.add("sex");
arylstEnab.add("guardianName");
arylstEnab.add("mobile");
arylstEnab.add("personalEmail");
arylstEnab.add("placeOfBirth");
arylstEnab.add("bloodGroup");
arylstEnab.add("idMark");
arylstEnab.add("dependants");
arylstEnab.add("panNumber");
arylstEnab.add("pfNumber");
arylstEnab.add("girNumber");
arylstEnab.add("passportNo");
arylstEnab.add("drivingLicenseNo");
arylstEnab.add("placeOfIssue");
arylstEnab.add("validUpto");
arylstEnab.add("flat");
arylstEnab.add("tabAddDtls");
arylstEnab.add("tabJoiningInfo");
arylstEnab.add("tabEmpHist");
arylstEnab.add("tabPriorExp");
arylstEnab.add("tabEduDtls");
arylstEnab.add("tabPFDtls");
arylstEnab.add("tabTrngDtls");
arylstDisab.add("tabAwardDtls");
arylstDisab.add("tabInsDtls");
arylstDisab.add("tabHealth");
arylstDisab.add("tabLng");
arylstEnab.add("tabRef");
if (EnrgiseUtil.checkString(oHrmEmpPersDtlsBean.getMaritalStatus())) {
if (oHrmEmpPersDtlsBean.getMaritalCode().equalsIgnoreCase("M")) {
arylstEnab.add("spouseName");
arylstEnab.add("spouseOccupation");
} else {
arylstDisab.add("spouseName");
arylstDisab.add("spouseOccupation");
}
} else {
arylstDisab.add("spouseName");
arylstDisab.add("spouseOccupation");
}
arylstEnab.add("relatedToEmployee");
arylstEnab.add("handicappedFlag");
arylstEnab.add("butNationality");
arylstEnab.add("butGrade");
arylstEnab.add("butDateOfBirth");
arylstEnab.add("butLocJoiningDate");
arylstEnab.add("butLocation");
arylstEnab.add("butDepartment");
arylstEnab.add("butDesignation");
arylstEnab.add("butReligion");
arylstEnab.add("butMotherTongue");
arylstEnab.add("butReportingEmployee");
arylstEnab.add("butLastPromotionDate");
arylstEnab.add("butRsvCtg");
arylstEnab.add("butPassportIssueDate");
arylstEnab.add("butPassportExpDate");
arylstEnab.add("butValidUpto");
arylstEnab.add("butMaritalStatus");
arylstEnab.add("butRelatedEmployee");
arylstEnab.add("butAnniversaryDate");
} else {
arylstDisab.add("sex");
arylstDisab.add("guardianName");
arylstDisab.add("mobile");
arylstDisab.add("personalEmail");
arylstDisab.add("placeOfBirth");
arylstDisab.add("bloodGroup");
arylstDisab.add("idMark");
arylstDisab.add("dependants");
arylstDisab.add("panNumber");
arylstDisab.add("pfNumber");
arylstDisab.add("girNumber");
arylstDisab.add("passportNo");
arylstDisab.add("drivingLicenseNo");
arylstDisab.add("placeOfIssue");
arylstDisab.add("validUpto");
arylstDisab.add("spouseName");
arylstDisab.add("spouseOccupation");
arylstDisab.add("relatedToEmployee");
arylstDisab.add("flat");
arylstDisab.add("handicappedFlag");
arylstDisab.add("butNationality");
arylstDisab.add("butDateOfBirth");
arylstDisab.add("butLocJoiningDate");
arylstDisab.add("butLocation");
arylstDisab.add("butDepartment");
arylstDisab.add("butDesignation");
arylstDisab.add("butGrade");
arylstDisab.add("butReligion");
arylstDisab.add("butMotherTongue");
arylstDisab.add("butReportingEmployee");
arylstDisab.add("butLastPromotionDate");
arylstDisab.add("butRsvCtg");
arylstDisab.add("butPassportIssueDate");
arylstDisab.add("butPassportExpDate");
arylstDisab.add("butValidUpto");
arylstDisab.add("butMaritalStatus");
arylstDisab.add("butRelatedEmployee");
arylstDisab.add("butAnniversaryDate");
arylstDisab.add("tabAddDtls");
arylstDisab.add("tabJoiningInfo");
arylstDisab.add("tabEmpHist");
arylstDisab.add("tabPriorExp");
arylstDisab.add("tabEduDtls");
arylstDisab.add("tabPFDtls");
arylstDisab.add("tabTrngDtls");
arylstDisab.add("tabAwardDtls");
arylstDisab.add("tabInsDtls");
arylstDisab.add("tabHealth");
arylstDisab.add("tabLng");
arylstDisab.add("tabRef");
}
}
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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 String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new String();
}
}

View File

@@ -0,0 +1,125 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmGenEligRuleHdrBean;
import wenrgise.hrms.bean.HrmOrgCntryMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
public class HrmGenEligRuleBD extends HrmBaseBD {
ArrayList arylstHdr;
public HashMap getEligClassInfo() throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getEligClassInfo();
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
String s = oHrmSecondFacade.saveData((HrmGenEligRuleHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return s;
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecInfo = new RecordMetaInfo();
oRecInfo.setRecordCount(1L);
oRecInfo.setOWhenPicked(null);
return oRecInfo;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList arylstDummy = new ArrayList();
arylstDummy.add(new HrmOrgCntryMstHdrBean());
return arylstDummy;
}
public static void main(String[] ss) throws EnrgiseSystemException, EnrgiseApplicationException {
HrmGenEligRuleBD o = new HrmGenEligRuleBD();
System.out.println(o.getEligClassInfo());
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
arylstDisab.add("butPrevHeader");
arylstDisab.add("butNextHeader");
HrmGenEligRuleHdrBean oHdrBean = (HrmGenEligRuleHdrBean)oThisPageVO.getOHeaderBean();
if (oHdrBean.getDocumentType().equals("")) {
arylstDisab.add("butDocumentCode");
oHdrBean.setDocumentCode("");
oHdrBean.setHidDocumentCodeId("");
} else {
arylstEnab.add("butDocumentCode");
}
if (oHdrBean.getHidAction().equals("Refresh")) {
arylstEnab.add("operator");
arylstEnab.add("butValues");
arylstEnab.add("documentType");
arylstEnab.add("butDocumentCode");
arylstEnab.add("butAnd");
arylstEnab.add("butOr");
arylstEnab.add("butShowFormula");
}
oThisPageVO.setOHeaderBean((BaseHeaderBean)oHdrBean);
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) {
HrmGenEligRuleHdrBean oHdrBean = (HrmGenEligRuleHdrBean)oThisPageVO.getOHeaderBean();
if (oHdrBean.getHidAction().equals("Refresh")) {
oHdrBean.setDocumentCode("");
oHdrBean.setHidDocumentCodeId("");
oHdrBean.setDocumentType("");
oHdrBean.setFormula("");
oHdrBean.setEligSql("");
oHdrBean.setHidAction("");
}
}
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("");
}
}

View File

@@ -0,0 +1,122 @@
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.HrmGenEligRuleQueryHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmGenEligRuleQueryQVO;
public class HrmGenEligRuleQueryBD extends HrmBaseBD {
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmGenEligRuleQuery((HrmGenEligRuleQueryHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public String getInsertDataImpl(HrmGenEligRuleQueryQVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public ArrayList getDetailRecordImpl(BaseQueryVO oQVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmGenEligRuleQueryDetail((HrmGenEligRuleQueryQVO)oQVO, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String sHeaderPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String headerPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmGenEligRuleQueryDetailMetaInfo((HrmGenEligRuleQueryQVO)oQVO);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getHeaderMetaImpl(HrmGenEligRuleQueryQVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(HrmGenEligRuleQueryQVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
arylstEnab.add("butQuery");
arylstDisab.add("butInsert");
arylstDisab.add("butAddRow");
arylstDisab.add("butDelete");
if (oThisPageVO.getScreenMode().equals("U")) {
arylstDisab.add("docType");
arylstEnab.add("butSave");
} else {
arylstEnab.add("docType");
}
HrmGenEligRuleQueryHdrBean oHdrBean = (HrmGenEligRuleQueryHdrBean)oThisPageVO.getOHeaderBean();
if (EnrgiseUtil.checkString(oHdrBean.getDocType())) {
arylstEnab.add("butGetDetail");
} else {
arylstDisab.add("butGetDetail");
}
if (oThisPageVO.getScreenMode().equals("Q"));
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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("");
}
}

View File

@@ -0,0 +1,73 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmGenEligRuleHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
public class HrmGenGenerateFormulaBD extends HrmBaseBD {
public ArrayList getParameterInfo() throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return new ArrayList();
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmGenEligRuleHdrBean)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 ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
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("");
}
}

View File

@@ -0,0 +1,347 @@
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.HrmLnAppHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmLnAppQVO;
public class HrmLnAppBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanAppHdrMetaInfo((HrmLnAppQVO)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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmLoanAppHdrInfo((HrmLnAppQVO)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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmLnApp"))
return oHrmFacade.getHrmLnDisDtlMetaInfo(lPrimaryKey, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmLnDisDtl"))
return oHrmFacade.getHrmLnDisDtlMetaInfo(lPrimaryKey, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmLnAppHblIntRate"))
return oHrmFacade.getHrmLnHblIntRateMetaInfo(lPrimaryKey, this.oUserInfo);
RecordMetaInfo obj = new RecordMetaInfo();
return obj;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmLnApp"))
return oHrmFacade.getHrmLnDisDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmLnDisDtl"))
return oHrmFacade.getHrmLnDisDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmLnAppHblIntRate"))
return oHrmFacade.getHrmLnHblIntRateDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd, this.oUserInfo);
ArrayList obj = new ArrayList();
return obj;
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmLnApp"))
return oHrmFacade.saveHrmLnDisDtl((HrmLnAppHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmLnAppHblIntRate"))
return oHrmFacade.saveHrmLnHblIntRateDtl((HrmLnAppHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return null;
}
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();
ArrayList test = new ArrayList();
HrmLnAppHdrBean oHrmLnAppHdrBean = (HrmLnAppHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("Q")) {
arylstEnableList.add("butEmployeeNo");
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getEmpId())) {
arylstEnableList.add("butLoanCode");
} else {
arylstDisableList.add("butLoanCode");
}
arylstDisableList.add("butApproverNo");
arylstDisableList.add("remarks");
arylstDisableList.add("instAmount");
arylstDisableList.add("totalInterestInst");
arylstDisableList.add("totalPrincipalInst");
arylstDisableList.add("totalInst");
arylstDisableList.add("payrollMonth");
arylstDisableList.add("appliedAmount");
arylstDisableList.add("loanDetails");
arylstDisableList.add("hblAppliedFor");
arylstDisableList.add("hblBranhConst");
arylstDisableList.add("hblDocSubmitted");
arylstDisableList.add("hblCity");
arylstDisableList.add("hblPO");
arylstDisableList.add("hblDistrict");
arylstDisableList.add("hblMouza");
arylstDisableList.add("hblKhatian");
arylstDisableList.add("hblDag");
arylstDisableList.add("hblNoOfDeed");
arylstDisableList.add("hblParentDeed");
arylstDisableList.add("hblVolOfDeed");
arylstDisableList.add("hblBookNo");
arylstDisableList.add("hblPageNo");
arylstDisableList.add("hblRegisteredAt");
arylstDisableList.add("sanctionedAmount");
arylstDisableList.add("butApplnDate");
arylstDisableList.add("butSanctionDate");
arylstDisableList.add("bulkAmount");
arylstDisableList.add("butBulkPayment");
arylstDisableList.add("butBulkPaymentDate");
}
if (oThisPageVO.getScreenMode().equals("N")) {
arylstEnableList.add("butEmployeeNo");
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getEmpId())) {
arylstEnableList.add("butLoanCode");
} else {
arylstDisableList.add("butLoanCode");
}
arylstEnableList.add("butApproverNo");
arylstEnableList.add("sanctionedAmount");
arylstEnableList.add("remarks");
arylstEnableList.add("instAmount");
arylstEnableList.add("totalInterestInst");
arylstEnableList.add("totalPrincipalInst");
arylstEnableList.add("totalInst");
arylstEnableList.add("payrollMonth");
arylstEnableList.add("appliedAmount");
arylstEnableList.add("loanDetails");
arylstEnableList.add("butApplnDate");
arylstEnableList.add("butSanctionDate");
arylstDisableList.add("bulkAmount");
arylstDisableList.add("butBulkPayment");
arylstDisableList.add("butBulkPaymentDate");
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getLoanCode())) {
if (oHrmLnAppHdrBean.getLoanCode().equalsIgnoreCase("99")) {
arylstEnableList.add("hblAppliedFor");
arylstEnableList.add("hblBranhConst");
arylstEnableList.add("hblDocSubmitted");
arylstEnableList.add("hblCity");
arylstEnableList.add("hblPO");
arylstEnableList.add("hblDistrict");
arylstEnableList.add("hblMouza");
arylstEnableList.add("hblKhatian");
arylstEnableList.add("hblDag");
arylstEnableList.add("hblNoOfDeed");
arylstEnableList.add("hblParentDeed");
arylstEnableList.add("hblVolOfDeed");
arylstEnableList.add("hblBookNo");
arylstEnableList.add("hblPageNo");
arylstEnableList.add("hblRegisteredAt");
} else {
arylstDisableList.add("hblAppliedFor");
arylstDisableList.add("hblBranhConst");
arylstDisableList.add("hblDocSubmitted");
arylstDisableList.add("hblCity");
arylstDisableList.add("hblPO");
arylstDisableList.add("hblDistrict");
arylstDisableList.add("hblMouza");
arylstDisableList.add("hblKhatian");
arylstDisableList.add("hblDag");
arylstDisableList.add("hblNoOfDeed");
arylstDisableList.add("hblParentDeed");
arylstDisableList.add("hblVolOfDeed");
arylstDisableList.add("hblBookNo");
arylstDisableList.add("hblPageNo");
arylstDisableList.add("hblRegisteredAt");
}
} else {
arylstDisableList.add("hblAppliedFor");
arylstDisableList.add("hblBranhConst");
arylstDisableList.add("hblDocSubmitted");
arylstDisableList.add("hblCity");
arylstDisableList.add("hblPO");
arylstDisableList.add("hblDistrict");
arylstDisableList.add("hblMouza");
arylstDisableList.add("hblKhatian");
arylstDisableList.add("hblDag");
arylstDisableList.add("hblNoOfDeed");
arylstDisableList.add("hblParentDeed");
arylstDisableList.add("hblVolOfDeed");
arylstDisableList.add("hblBookNo");
arylstDisableList.add("hblPageNo");
arylstDisableList.add("hblRegisteredAt");
}
}
if (oThisPageVO.getScreenMode().equals("U")) {
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getFullyRepaid()))
if (String.valueOf(oHrmLnAppHdrBean.getFullyRepaid()).equalsIgnoreCase("on")) {
arylstDisableList.add("butBulkPayment");
arylstDisableList.add("bulkAmount");
arylstDisableList.add("butBulkPaymentDate");
} else if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getMode())) {
if (oHrmLnAppHdrBean.getMode().equalsIgnoreCase("B")) {
arylstDisableList.add("butBulkPayment");
arylstEnableList.add("bulkAmount");
arylstEnableList.add("butBulkPaymentDate");
} else {
arylstEnableList.add("butBulkPayment");
arylstDisableList.add("bulkAmount");
arylstDisableList.add("butBulkPaymentDate");
}
} else {
arylstEnableList.add("butBulkPayment");
arylstDisableList.add("bulkAmount");
arylstDisableList.add("butBulkPaymentDate");
}
arylstDisableList.add("butEmployeeNo");
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getEmpId())) {
arylstEnableList.add("butLoanCode");
} else {
arylstDisableList.add("butLoanCode");
}
arylstEnableList.add("butApproverNo");
arylstEnableList.add("remarks");
arylstEnableList.add("instAmount");
arylstEnableList.add("totalInterestInst");
arylstEnableList.add("totalPrincipalInst");
arylstEnableList.add("totalInst");
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getNoOfInstPaid())) {
if (Integer.parseInt(oHrmLnAppHdrBean.getNoOfInstPaid()) > 0) {
arylstDisableList.add("payrollMonth");
} else {
arylstEnableList.add("payrollMonth");
}
} else {
arylstEnableList.add("payrollMonth");
}
arylstEnableList.add("appliedAmount");
arylstEnableList.add("loanDetails");
arylstEnableList.add("butApplnDate");
arylstEnableList.add("butSanctionDate");
if (EnrgiseUtil.checkString(oHrmLnAppHdrBean.getLoanCode())) {
if (oHrmLnAppHdrBean.getLoanCode().equalsIgnoreCase("99")) {
arylstEnableList.add("hblAppliedFor");
arylstEnableList.add("hblBranhConst");
arylstEnableList.add("hblDocSubmitted");
arylstEnableList.add("hblCity");
arylstEnableList.add("hblPO");
arylstEnableList.add("hblDistrict");
arylstEnableList.add("hblMouza");
arylstEnableList.add("hblKhatian");
arylstEnableList.add("hblDag");
arylstEnableList.add("hblNoOfDeed");
arylstEnableList.add("hblParentDeed");
arylstEnableList.add("hblVolOfDeed");
arylstEnableList.add("hblBookNo");
arylstEnableList.add("hblPageNo");
arylstEnableList.add("hblRegisteredAt");
arylstDisableList.add("disabtabHblIntRate");
} else {
arylstDisableList.add("hblAppliedFor");
arylstDisableList.add("hblBranhConst");
arylstDisableList.add("hblDocSubmitted");
arylstDisableList.add("hblCity");
arylstDisableList.add("hblPO");
arylstDisableList.add("hblDistrict");
arylstDisableList.add("hblMouza");
arylstDisableList.add("hblKhatian");
arylstDisableList.add("hblDag");
arylstDisableList.add("hblNoOfDeed");
arylstDisableList.add("hblParentDeed");
arylstDisableList.add("hblVolOfDeed");
arylstDisableList.add("hblBookNo");
arylstDisableList.add("hblPageNo");
arylstDisableList.add("hblRegisteredAt");
arylstEnableList.add("disabtabHblIntRate");
}
} else {
arylstDisableList.add("hblAppliedFor");
arylstDisableList.add("hblBranhConst");
arylstDisableList.add("hblDocSubmitted");
arylstDisableList.add("hblCity");
arylstDisableList.add("hblPO");
arylstDisableList.add("hblDistrict");
arylstDisableList.add("hblMouza");
arylstDisableList.add("hblKhatian");
arylstDisableList.add("hblDag");
arylstDisableList.add("hblNoOfDeed");
arylstDisableList.add("hblParentDeed");
arylstDisableList.add("hblVolOfDeed");
arylstDisableList.add("hblBookNo");
arylstDisableList.add("hblPageNo");
arylstDisableList.add("hblRegisteredAt");
arylstEnableList.add("disabtabHblIntRate");
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butBulkPayment"))
sHeaderPrimaryKey = oHrmFacade.loanAppBulkPayment((HrmLnAppHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,97 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmLnChartHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmLnChartQVO;
public class HrmLnChartBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanChartHdrMetaInfo((HrmLnChartQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmLoanChartHdrInfo((HrmLnChartQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanChartDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanChartDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmLoanChart((HrmLnChartHdrBean)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();
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("");
}
}

View File

@@ -0,0 +1,114 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmLnMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmLnMstQVO;
public class HrmLnMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanMstHeaderMetaInfo((HrmLnMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmLoanMstHeaderInfo((HrmLnMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanMstDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLoanMstDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
String sHeaderPrimaryKey = oHrmFacade.saveHrmLoanMst((HrmLnMstHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
BaseHeaderBean oBaseHeaderBean = oThisPageVO.getOHeaderBean();
HrmLnMstHdrBean oHrmLnMstHdrBean = (HrmLnMstHdrBean)oBaseHeaderBean;
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("typeOfInterest");
oDisableList.add("natureOfPayment");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butLoanCode");
oDisableList.add("butChartName");
oDisableList.add("loanCode");
}
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("");
}
}

View File

@@ -0,0 +1,432 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.helper.QueryRow;
import wenrgise.ejb.common.utility.DBUtilitiesBean;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmLvApplnDtlBean;
import wenrgise.hrms.bean.HrmLvApplnHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmLvApplnQVO;
public class HrmLvApplnBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmEmpLeaveAppQueryScreenDtlMetaInfo((HrmLvApplnQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmEmpLeaveAppQueryScreenDtlInfo((HrmLvApplnQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
return null;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmLvApplnHdrBean oHrmLvApplnHdrBean = (HrmLvApplnHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = null;
oDisableList.add("butDelete");
oDisableList.add("butApply");
if (oHrmLvApplnHdrBean != null)
if (oHrmLvApplnHdrBean.getDetailArray().size() != 0) {
oThisPageVO.setODetailList(oHrmLvApplnHdrBean.getDetailArray());
oDetailList = oThisPageVO.getODetailList();
}
if (oThisPageVO.getScreenMode().equals("N")) {
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
}
if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
oDisableList.add("medFlag");
}
if (oThisPageVO.getScreenMode().equals("N")) {
if (oHrmLvApplnHdrBean.getStatusOfLeaves() == null) {
oHrmLvApplnHdrBean.setStatusOfLeaves("N");
oThisPageVO.setOHeaderBean((BaseHeaderBean)oHrmLvApplnHdrBean);
}
if (oDetailList != null)
if (oDetailList.size() != 0) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmLvApplnDtlBean oDtlBean = oIt.next();
if (oDtlBean.getTxtHalfDayFlag().equals("1")) {
oDtlBean.setTxtHalfDayFlag("1");
oDtlBean.setDisabtxtHalfDayFlag("true");
}
if (oDtlBean.getTxtHalfDayFlag().equals("2"))
oDtlBean.setTxtHalfDayFlag("2");
}
oHrmLvApplnHdrBean.setDays(getHolidayCount(oDetailList));
oThisPageVO.setODetailList(oDetailList);
oHrmLvApplnHdrBean.setDetailArray(oDetailList);
}
oEnableList.add("butApply");
oEnableList.add("butGetDetail");
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
}
if (oThisPageVO.getScreenMode().equals("U"))
if (getNextLevelUserId(oHrmLvApplnHdrBean.getHeaderPrimaryKey()).equalsIgnoreCase(this.oUserInfo.getUserTypeId())) {
String s2 = oHrmLvApplnHdrBean.getHeaderPrimaryKey();
String s = getNextLevelUserId(oHrmLvApplnHdrBean.getHeaderPrimaryKey());
oEnableList.add("butApprove");
oEnableList.add("butLedger");
oEnableList.add("butReject");
} else {
oEnableList.add("butGetDetail");
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
}
if (oHrmLvApplnHdrBean != null) {
if (EnrgiseUtil.checkString(oHrmLvApplnHdrBean.getStatusOfLeaves()))
if (oHrmLvApplnHdrBean.getStatusOfLeaves().equalsIgnoreCase("N")) {
oDisableList.add("leaveCodes");
oEnableList.add("butLeaveCodes");
oDisableList.add("description");
oDisableList.add("dateApplied");
oEnableList.add("butDateApplied");
oDisableList.add("fromAppDate");
oEnableList.add("butFromAppDate");
oDisableList.add("toAppDate");
oEnableList.add("butToAppDate");
oDisableList.add("days");
oEnableList.add("address");
oEnableList.add("phone");
oEnableList.add("purpose");
oEnableList.add("remarks");
if (EnrgiseUtil.checkString(oHrmLvApplnHdrBean.getLeaveCodes())) {
if (oHrmLvApplnHdrBean.getLeaveCodes().equalsIgnoreCase("EL")) {
oEnableList.add("ltaFlag");
oEnableList.add("optedFor");
oEnableList.add("itPercentage");
oEnableList.add("fromYear");
oDisableList.add("medFlag");
} else {
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
oEnableList.add("medFlag");
}
} else {
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
oDisableList.add("medFlag");
}
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
oEnableList.add("butGetDetail");
} else if (oHrmLvApplnHdrBean.getStatusOfLeaves().equalsIgnoreCase("A")) {
oDisableList.add("leaveCodes");
oDisableList.add("description");
oDisableList.add("dateApplied");
oDisableList.add("fromAppDate");
oDisableList.add("toAppDate");
oDisableList.add("days");
oDisableList.add("butSave");
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("butFromAppDate");
oDisableList.add("butToAppDate");
oDisableList.add("address");
oDisableList.add("phone");
oDisableList.add("purpose");
oDisableList.add("remarks");
oDisableList.add("butGetDetail");
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
oDisableList.add("medFlag");
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
oDisableList.add("butDelete");
} else if (oHrmLvApplnHdrBean.getStatusOfLeaves().equalsIgnoreCase("R")) {
oDisableList.add("leaveCodes");
oDisableList.add("butLeaveCodes");
oDisableList.add("description");
oDisableList.add("dateApplied");
oDisableList.add("butDateApplied");
oDisableList.add("fromAppDate");
oDisableList.add("butFromAppDate");
oDisableList.add("toAppDate");
oDisableList.add("butToAppDate");
oDisableList.add("days");
oDisableList.add("address");
oDisableList.add("phone");
oDisableList.add("purpose");
oDisableList.add("remarks");
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
} else if (oHrmLvApplnHdrBean.getStatusOfLeaves().equalsIgnoreCase("")) {
oDisableList.add("leaveCodes");
oDisableList.add("butLeaveCodes");
oDisableList.add("description");
oDisableList.add("dateApplied");
oDisableList.add("butDateApplied");
oDisableList.add("fromAppDate");
oDisableList.add("butFromAppDate");
oDisableList.add("toAppDate");
oDisableList.add("butToAppDate");
oDisableList.add("days");
oDisableList.add("address");
oDisableList.add("phone");
oDisableList.add("purpose");
oDisableList.add("remarks");
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
} else if (oHrmLvApplnHdrBean.getStatusOfLeaves().equalsIgnoreCase("P")) {
oDisableList.add("leaveCodes");
oDisableList.add("butLeaveCodes");
oDisableList.add("description");
oDisableList.add("dateApplied");
oDisableList.add("butDateApplied");
oDisableList.add("fromAppDate");
oDisableList.add("butFromAppDate");
oDisableList.add("toAppDate");
oDisableList.add("butToAppDate");
oDisableList.add("days");
oDisableList.add("address");
oDisableList.add("phone");
oDisableList.add("purpose");
oDisableList.add("remarks");
oDisableList.add("statusOfLeaves");
if (oHrmLvApplnHdrBean.getWorkListId() == null) {
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
} else {
oEnableList.add("butApprove");
oEnableList.add("butLedger");
oEnableList.add("butReject");
oDisableList.add("ltaFlag");
oDisableList.add("optedFor");
oDisableList.add("fromYear");
oDisableList.add("itPercentage");
}
}
} else {
oDisableList.add("butApprove");
oDisableList.add("butLedger");
oDisableList.add("butReject");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmLvApplnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove")) {
((HrmLvApplnHdrBean)oBaseHeaderBean).setButtonName("A");
sHeaderPrimaryKey = oHrmSecondFacade.approveLeaveAppln((HrmLvApplnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
}
if (sButtonName.equalsIgnoreCase("butReject")) {
((HrmLvApplnHdrBean)oBaseHeaderBean).setButtonName("R");
sHeaderPrimaryKey = oHrmSecondFacade.approveLeaveAppln((HrmLvApplnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
}
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public void onLoadAction(ThisPageVO oThisPageVO) {
if (oThisPageVO.getActionName() == 10) {
HrmLvApplnHdrBean oHrmLvApplnHdrBean = (HrmLvApplnHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvApplnHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvApplnHdrBean.setEmployeeNumber(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvApplnHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvApplnHdrBean.setMiddleName(" ");
oHrmLvApplnHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvApplnHdrBean.setMiddleName(oName[1]);
oHrmLvApplnHdrBean.setLastName(oName[2]);
} else {
oHrmLvApplnHdrBean.setMiddleName(" ");
oHrmLvApplnHdrBean.setLastName(" ");
}
oHrmLvApplnHdrBean.setLocation(this.oUserInfo.getSiteName());
oHrmLvApplnHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvApplnHdrBean.setDesignation(this.oUserInfo.getDesignation());
oHrmLvApplnHdrBean.setSiteId(this.oUserInfo.getSiteId());
} else if (oThisPageVO.getActionName() == 13) {
HrmLvApplnHdrBean oHrmLvApplnHdrBean = (HrmLvApplnHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvApplnHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvApplnHdrBean.setEmployeeNumber(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvApplnHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvApplnHdrBean.setMiddleName(" ");
oHrmLvApplnHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvApplnHdrBean.setMiddleName(oName[1]);
oHrmLvApplnHdrBean.setLastName(oName[2]);
} else {
oHrmLvApplnHdrBean.setMiddleName(" ");
oHrmLvApplnHdrBean.setLastName(" ");
}
oHrmLvApplnHdrBean.setLocation(this.oUserInfo.getSiteName());
oHrmLvApplnHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvApplnHdrBean.setDesignation(this.oUserInfo.getDesignation());
oHrmLvApplnHdrBean.setSiteId(this.oUserInfo.getSiteId());
} else if (oThisPageVO.getActionName() == 19) {
HrmLvApplnHdrBean oHrmLvApplnHdrBean = (HrmLvApplnHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvApplnHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvApplnHdrBean.setEmployeeNumber(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvApplnHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvApplnHdrBean.setMiddleName(" ");
oHrmLvApplnHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvApplnHdrBean.setMiddleName(oName[1]);
oHrmLvApplnHdrBean.setLastName(oName[2]);
} else {
oHrmLvApplnHdrBean.setMiddleName(" ");
oHrmLvApplnHdrBean.setLastName(" ");
}
oHrmLvApplnHdrBean.setLocation(this.oUserInfo.getSiteName());
oHrmLvApplnHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvApplnHdrBean.setDesignation(this.oUserInfo.getDesignation());
oHrmLvApplnHdrBean.setSiteId(this.oUserInfo.getSiteId());
}
}
private String getHolidayCount(ArrayList arylstDtl) {
double dHolidayCount = 0.0D;
if (arylstDtl != null) {
Iterator itrDtlList = arylstDtl.iterator();
while (itrDtlList.hasNext()) {
HrmLvApplnDtlBean oDtlBean = itrDtlList.next();
if (!oDtlBean.getTxtHolidayFlag().equalsIgnoreCase("H")) {
if (!oDtlBean.getTxtHalfDayFlag().equalsIgnoreCase("3")) {
dHolidayCount += 0.5D;
continue;
}
dHolidayCount++;
}
}
}
return Double.toString(dHolidayCount);
}
public ArrayList getLeaveBreakup(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList arylstDtl = oHrmSecondFacade.getLeaveDates((HrmLvApplnHdrBean)oBaseHeaderBean);
return arylstDtl;
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
private String getNextLevelUserId(String headerPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
String NextLevelUserId = new String();
String sQuery = String.valueOf(" select t.delegator_emp_id from workflow_tasklist t where t.status = 'P' and t.doc_dtl_id = ").concat(String.valueOf(headerPrimaryKey));
DBUtilitiesBean oBean = new DBUtilitiesBean();
ArrayList oList = oBean.executeQuery(sQuery);
if (oList.size() != 0) {
QueryRow oRow = null;
Iterator oIt = oList.iterator();
while (oIt.hasNext()) {
oRow = oIt.next();
NextLevelUserId = oRow.get("delegator_emp_id").getString();
}
}
return NextLevelUserId;
}
}

View File

@@ -0,0 +1,140 @@
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.HrmLvApplnQueryHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmLvApplnQueryQVO;
public class HrmLvApplnQueryBD 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.getHrmEmpLeaveAppQueryDtlMetaInfo((HrmLvApplnQueryQVO)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("HrmLeaveAppQuery"))
return oHrmSecondFacade.getHrmEmpLeaveAppQueryDtlInfo((HrmLvApplnQueryQVO)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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmLvApplnQueryHdrBean oHrmLvApplnQueryHdrBean = (HrmLvApplnQueryHdrBean)oThisPageVO.getOHeaderBean();
if (!oHrmLvApplnQueryHdrBean.equals(null))
if (EnrgiseUtil.checkString(oHrmLvApplnQueryHdrBean.getEmployeeNo())) {
if (!String.valueOf(oHrmLvApplnQueryHdrBean.getEmployeeNo()).equalsIgnoreCase(null)) {
oEnableList.add("butGetDetail");
} else {
oDisableList.add("butGetDetail");
}
} else if (EnrgiseUtil.checkString(oHrmLvApplnQueryHdrBean.getLeaveCode())) {
if (!String.valueOf(oHrmLvApplnQueryHdrBean.getLeaveCode()).equalsIgnoreCase(null)) {
oEnableList.add("butGetDetail");
} else {
oDisableList.add("butGetDetail");
}
} else if (EnrgiseUtil.checkString(oHrmLvApplnQueryHdrBean.getFromDate())) {
if (!String.valueOf(oHrmLvApplnQueryHdrBean.getFromDate()).equalsIgnoreCase(null)) {
oEnableList.add("butGetDetail");
} else {
oDisableList.add("butGetDetail");
}
} else if (EnrgiseUtil.checkString(oHrmLvApplnQueryHdrBean.getToDate())) {
if (!String.valueOf(oHrmLvApplnQueryHdrBean.getToDate()).equalsIgnoreCase(null)) {
oEnableList.add("butGetDetail");
} else {
oDisableList.add("butGetDetail");
}
} else if (EnrgiseUtil.checkString(oHrmLvApplnQueryHdrBean.getStatusOfLeave())) {
if (!String.valueOf(oHrmLvApplnQueryHdrBean.getStatusOfLeave()).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");
oDisableList.add("butEmployeeNo");
oDisableList.add("butLeaveCode");
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
oDisableList.add("statusOfLeave");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,258 @@
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.HrmLvCancHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmLvCancQVO;
public class HrmLvCancBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmEmpLeaveCanQueryScreenDtlMetaInfo((HrmLvCancQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmEmpLeaveCanQueryScreenDtlInfo((HrmLvCancQVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmLvCancHdrBean)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 void onLoadAction(ThisPageVO oThisPageVO) {
if (oThisPageVO.getActionName() == 10) {
HrmLvCancHdrBean oHrmLvCancHdrBean = (HrmLvCancHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvCancHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvCancHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvCancHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvCancHdrBean.setMiddleName(oName[1]);
oHrmLvCancHdrBean.setLastName(oName[2]);
} else {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(" ");
}
oHrmLvCancHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvCancHdrBean.setDesig(this.oUserInfo.getDesignation());
oHrmLvCancHdrBean.setLocation(this.oUserInfo.getSiteName());
} else if (oThisPageVO.getActionName() == 10) {
HrmLvCancHdrBean oHrmLvCancHdrBean = (HrmLvCancHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvCancHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvCancHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvCancHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvCancHdrBean.setMiddleName(oName[1]);
oHrmLvCancHdrBean.setLastName(oName[2]);
} else {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(" ");
}
oHrmLvCancHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvCancHdrBean.setDesig(this.oUserInfo.getDesignation());
oHrmLvCancHdrBean.setLocation(this.oUserInfo.getSiteName());
} else if (oThisPageVO.getActionName() == 13) {
HrmLvCancHdrBean oHrmLvCancHdrBean = (HrmLvCancHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvCancHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvCancHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvCancHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvCancHdrBean.setMiddleName(oName[1]);
oHrmLvCancHdrBean.setLastName(oName[2]);
} else {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(" ");
}
oHrmLvCancHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvCancHdrBean.setDesig(this.oUserInfo.getDesignation());
oHrmLvCancHdrBean.setLocation(this.oUserInfo.getSiteName());
} else if (oThisPageVO.getActionName() == 19) {
HrmLvCancHdrBean oHrmLvCancHdrBean = (HrmLvCancHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvCancHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvCancHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvCancHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvCancHdrBean.setMiddleName(oName[1]);
oHrmLvCancHdrBean.setLastName(oName[2]);
} else {
oHrmLvCancHdrBean.setMiddleName(" ");
oHrmLvCancHdrBean.setLastName(" ");
}
oHrmLvCancHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvCancHdrBean.setDesig(this.oUserInfo.getDesignation());
oHrmLvCancHdrBean.setLocation(this.oUserInfo.getSiteName());
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmLvCancHdrBean oHrmLvCancHdrBean = (HrmLvCancHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oHrmLvCancHdrBean.getCancelStatus() == null) {
oDisableList.add("butApprove");
oDisableList.add("butReject");
}
if (oHrmLvCancHdrBean.getCancSide() != null) {
if (oHrmLvCancHdrBean.getCancSide().equals("L")) {
oHrmLvCancHdrBean.setFromCancelDate(oHrmLvCancHdrBean.getFromDate());
oDisableList.add("butFromCancelDate");
}
if (oHrmLvCancHdrBean.getCancSide().equals("R")) {
oHrmLvCancHdrBean.setToCancelDate(oHrmLvCancHdrBean.getToDate());
oDisableList.add("butToCancelDate");
}
if (oHrmLvCancHdrBean.getCancSide().equals("F")) {
oHrmLvCancHdrBean.setFromCancelDate(oHrmLvCancHdrBean.getFromDate());
oHrmLvCancHdrBean.setToCancelDate(oHrmLvCancHdrBean.getToDate());
oDisableList.add("butFromCancelDate");
oDisableList.add("butToCancelDate");
}
}
if (!oHrmLvCancHdrBean.equals(null))
if (EnrgiseUtil.checkString(oHrmLvCancHdrBean.getCancelStatus()))
if (oHrmLvCancHdrBean.getCancelStatus().equalsIgnoreCase("N")) {
oDisableList.add("fromCancelDate");
oEnableList.add("butFromCancelDate");
oDisableList.add("toCancelDate");
oEnableList.add("butToCancelDate");
oDisableList.add("cancelDays");
oDisableList.add("cancelDateApplied");
oEnableList.add("butCancelDateApplied");
oEnableList.add("cancelRemarks");
oDisableList.add("cancelStatus");
oEnableList.add("butApprove");
oEnableList.add("butReject");
} else if (oHrmLvCancHdrBean.getCancelStatus().equalsIgnoreCase("A")) {
oDisableList.add("fromCancelDate");
oDisableList.add("butFromCancelDate");
oDisableList.add("toCancelDate");
oDisableList.add("butToCancelDate");
oDisableList.add("cancelDays");
oDisableList.add("cancelDateApplied");
oDisableList.add("butCancelDateApplied");
oDisableList.add("cancelRemarks");
oDisableList.add("cancelStatus");
oDisableList.add("butApprove");
oDisableList.add("butReject");
} else if (oHrmLvCancHdrBean.getCancelStatus().equalsIgnoreCase("R")) {
oDisableList.add("fromCancelDate");
oDisableList.add("butFromCancelDate");
oDisableList.add("toCancelDate");
oDisableList.add("butToCancelDate");
oDisableList.add("cancelDays");
oDisableList.add("cancelDateApplied");
oDisableList.add("butCancelDateApplied");
oDisableList.add("cancelRemarks");
oDisableList.add("cancelStatus");
oDisableList.add("butApprove");
oDisableList.add("butReject");
} else if (oHrmLvCancHdrBean.getCancelStatus().equalsIgnoreCase("P")) {
oDisableList.add("fromCancelDate");
oDisableList.add("butFromCancelDate");
oDisableList.add("toCancelDate");
oDisableList.add("butToCancelDate");
oDisableList.add("cancelDays");
oDisableList.add("cancelDateApplied");
oDisableList.add("butCancelDateApplied");
oDisableList.add("cancelRemarks");
oDisableList.add("cancelStatus");
oEnableList.add("butApprove");
oEnableList.add("butReject");
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove")) {
((HrmLvCancHdrBean)oBaseHeaderBean).setButtonName("A");
sHeaderPrimaryKey = oHrmSecondFacade.approveLeaveCanc((HrmLvCancHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
}
if (sButtonName.equalsIgnoreCase("butReject")) {
((HrmLvCancHdrBean)oBaseHeaderBean).setButtonName("R");
sHeaderPrimaryKey = oHrmSecondFacade.approveLeaveCanc((HrmLvCancHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
}
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View 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("");
}
}

View File

@@ -0,0 +1,86 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmLvCreditHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmLvCreditBD extends HrmBaseBD {
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String sPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String sPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butCreditLeaves"))
sHeaderPrimaryKey = oFacade.creditLeaves((HrmLvCreditHdrBean)oBaseHeaderBean, oWhenPicked, oDetailBeanArray, oDetailPicked);
return sHeaderPrimaryKey;
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String getInsertDataImpl(BaseQueryVO oBaseQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oDisableList = new ArrayList();
ArrayList oEnableList = new ArrayList();
oDisableList.add("butDelete");
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oDisableList.add("butSave");
oDisableList.add("butRefresh");
oDisableList.add("butPrint");
oDisableList.add("buttxtRegion");
oDisableList.add("butCreditLeaves");
HrmLvCreditHdrBean oHrmLvCreditHdrBean = (HrmLvCreditHdrBean)oThisPageVO.getOHeaderBean();
if (null != oHrmLvCreditHdrBean.getEmployeeNoId() && null != oHrmLvCreditHdrBean.getLeaveTypeId() && null != oHrmLvCreditHdrBean.getTxtNoOfDays()) {
oEnableList.add("butCreditLeaves");
oEnableList.add("butQuery");
} else {
oDisableList.add("butCreditLeaves");
oDisableList.add("butQuery");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,334 @@
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.HrmLvEncashHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmLvEncashQVO;
public class HrmLvEncashBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmEmpLeaveEncashHdrMetaInfo((HrmLvEncashQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmEmpLeaveEncashHdrInfo((HrmLvEncashQVO)oQueryVO, lStartPosition, lLastPosition);
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 updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmLvEncashHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmLvEncashHdrBean oHrmLvEncashHdrBean = (HrmLvEncashHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
oDisableList.add("butDelete");
if (!oHrmLvEncashHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("taxPercentage");
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oDisableList.add("butSubmit");
oEnableList.add("butEmpNo");
oEnableList.add("butExecute");
if (EnrgiseUtil.checkString(oHrmLvEncashHdrBean.getLevel())) {
if (oHrmLvEncashHdrBean.getLevel().equalsIgnoreCase("0")) {
oDisableList.add("taxPercentage");
oDisableList.add("taxPercentage");
oEnableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
} else {
oEnableList.add("taxPercentage");
oDisableList.add("taxPercentage");
oEnableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
}
} else {
oDisableList.add("taxPercentage");
oEnableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
}
oDisableList.add("butSubmit");
oDisableList.add("butApprove");
oDisableList.add("butReject");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oEnableList.add("butLeaveCodes");
oEnableList.add("butDateApplied");
oEnableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
oEnableList.add("butEmpNo");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butEmpNo");
if (EnrgiseUtil.checkString(oHrmLvEncashHdrBean.getLevel())) {
if (oHrmLvEncashHdrBean.getLevel().equalsIgnoreCase("0")) {
if (EnrgiseUtil.checkString(oHrmLvEncashHdrBean.getChangeStatus()))
if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("N")) {
oDisableList.add("taxPercentage");
oEnableList.add("butLeaveCodes");
oEnableList.add("butDateApplied");
oEnableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oEnableList.add("butSubmit");
oEnableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("A")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("taxPercentage");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("R")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("taxPercentage");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("P")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxPercentage");
oDisableList.add("taxAmount");
}
} else if (!oHrmLvEncashHdrBean.getLevel().equalsIgnoreCase("0")) {
if (EnrgiseUtil.checkString(oHrmLvEncashHdrBean.getChangeStatus()))
if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("N")) {
oEnableList.add("butLeaveCodes");
oEnableList.add("butDateApplied");
oEnableList.add("daysEncashed");
oDisableList.add("taxPercentage");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oEnableList.add("butSubmit");
oEnableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("A")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("taxPercentage");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("R")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("taxPercentage");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("P")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oEnableList.add("butApprove");
oEnableList.add("butReject");
oDisableList.add("butSubmit");
oEnableList.add("taxPercentage");
oDisableList.add("taxAmount");
}
}
} else {
if (EnrgiseUtil.checkString(oHrmLvEncashHdrBean.getChangeStatus()))
if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("N")) {
oEnableList.add("butLeaveCodes");
oEnableList.add("butDateApplied");
oEnableList.add("daysEncashed");
oDisableList.add("taxPercentage");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oEnableList.add("butSubmit");
oEnableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("A")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("taxPercentage");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("R")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("butDateApplied");
oDisableList.add("taxPercentage");
oDisableList.add("daysEncashed");
oDisableList.add("butApprove");
oDisableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
} else if (oHrmLvEncashHdrBean.getChangeStatus().equalsIgnoreCase("P")) {
oDisableList.add("butLeaveCodes");
oDisableList.add("dateApplied");
oDisableList.add("butDateApplied");
oDisableList.add("daysEncashed");
oEnableList.add("butApprove");
oEnableList.add("butReject");
oDisableList.add("butSubmit");
oDisableList.add("taxAmount");
}
oDisableList.add("taxPercentage");
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"))
sHeaderPrimaryKey = oHrmSecondFacade.approveLeaveEncash((HrmLvEncashHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sButtonName.equalsIgnoreCase("butReject"))
sHeaderPrimaryKey = oHrmSecondFacade.rejectLvEncash((HrmLvEncashHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sButtonName.equalsIgnoreCase("butSubmit"))
sHeaderPrimaryKey = oHrmSecondFacade.submitLvEncash((HrmLvEncashHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
if (oThisPageVO.getActionName() == 10) {
HrmLvEncashHdrBean oHrmLvEncashHdrBean = (HrmLvEncashHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvEncashHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvEncashHdrBean.setEmployeeNumber(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvEncashHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvEncashHdrBean.setMiddleName(" ");
oHrmLvEncashHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvEncashHdrBean.setMiddleName(oName[1]);
oHrmLvEncashHdrBean.setLastName(oName[2]);
} else {
oHrmLvEncashHdrBean.setMiddleName(" ");
oHrmLvEncashHdrBean.setLastName(" ");
}
oHrmLvEncashHdrBean.setLocation(this.oUserInfo.getSiteName());
oHrmLvEncashHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvEncashHdrBean.setDesignation(this.oUserInfo.getDesignation());
}
if (oThisPageVO.getActionName() == 13) {
HrmLvEncashHdrBean oHrmLvEncashHdrBean = (HrmLvEncashHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvEncashHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvEncashHdrBean.setEmployeeNumber(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvEncashHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvEncashHdrBean.setMiddleName(" ");
oHrmLvEncashHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvEncashHdrBean.setMiddleName(oName[1]);
oHrmLvEncashHdrBean.setLastName(oName[2]);
} else {
oHrmLvEncashHdrBean.setMiddleName(" ");
oHrmLvEncashHdrBean.setLastName(" ");
}
oHrmLvEncashHdrBean.setLocation(this.oUserInfo.getSiteName());
oHrmLvEncashHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvEncashHdrBean.setDesignation(this.oUserInfo.getDesignation());
}
if (oThisPageVO.getActionName() == 19) {
HrmLvEncashHdrBean oHrmLvEncashHdrBean = (HrmLvEncashHdrBean)oThisPageVO.getOHeaderBean();
oHrmLvEncashHdrBean.setEmployeeId(this.oUserInfo.getUserTypeId());
oHrmLvEncashHdrBean.setEmployeeNumber(this.oUserInfo.getUserId());
String[] oName = this.oUserInfo.getUserName().split(" ");
oHrmLvEncashHdrBean.setFirstName(oName[0]);
if (oName.length == 2) {
oHrmLvEncashHdrBean.setMiddleName(" ");
oHrmLvEncashHdrBean.setLastName(oName[1]);
} else if (oName.length > 2) {
oHrmLvEncashHdrBean.setMiddleName(oName[1]);
oHrmLvEncashHdrBean.setLastName(oName[2]);
} else {
oHrmLvEncashHdrBean.setMiddleName(" ");
oHrmLvEncashHdrBean.setLastName(" ");
}
oHrmLvEncashHdrBean.setLocation(this.oUserInfo.getSiteName());
oHrmLvEncashHdrBean.setGrade(this.oUserInfo.getGrade());
oHrmLvEncashHdrBean.setDesignation(this.oUserInfo.getDesignation());
}
}
}

View File

@@ -0,0 +1,147 @@
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.HrmLvLedgerHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmLvLedgerQVO;
public class HrmLvLedgerBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmEmployeeLeaveLedger"))
return oHrmSecondFacade.getHrmLeaveLedgerDtlMetaInfo((HrmLvLedgerQVO)oBaseQueryVO);
return oHrmSecondFacade.getHrmLeaveLedgerTxnDtlMetaInfo((HrmLvLedgerQVO)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("HrmEmployeeLeaveLedger"))
return oHrmSecondFacade.getHrmLeaveLedgerDetailInfo((HrmLvLedgerQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return oHrmSecondFacade.getHrmLeaveLedgerTxnDetailInfo((HrmLvLedgerQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
} 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 updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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 String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveLeaveLedger((HrmLvLedgerHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
String groupStatus;
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butInsert");
oDisableList.add("butSave");
oDisableList.add("butDelete");
oDisableList.add("butPrint");
oDisableList.add("butHelp");
HrmLvLedgerHdrBean oHrmLvLedgerHdrBean = (HrmLvLedgerHdrBean)oThisPageVO.getOHeaderBean();
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
groupStatus = oHrmSecondFacade.getGroupInfo(this.oUserInfo.getUserTypeId());
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
} catch (RemoteException oRmtExcep) {
throw new EnrgiseSystemException(oRmtExcep);
}
if (EnrgiseUtil.checkString(groupStatus))
if (groupStatus.equalsIgnoreCase("S")) {
oEnableList.add("butEmpCode");
} else {
oDisableList.add("butEmpCode");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
oDisableList.add("butGetDtl2");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oEnableList.add("butQuery");
oDisableList.add("butExecute");
oEnableList.add("butGetDtl2");
}
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("");
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HrmLvLedgerHdrBean oHrmLvLedgerHdrBean = (HrmLvLedgerHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getActionName() == 10) {
oHrmLvLedgerHdrBean.setEmployeeNoId(this.oUserInfo.getUserTypeId());
oHrmLvLedgerHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
oHrmLvLedgerHdrBean.setEmployeeName(this.oUserInfo.getUserName());
} else if (oThisPageVO.getActionName() == 13) {
oHrmLvLedgerHdrBean.setEmployeeNoId(this.oUserInfo.getUserTypeId());
oHrmLvLedgerHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
oHrmLvLedgerHdrBean.setEmployeeName(this.oUserInfo.getUserName());
} else if (oThisPageVO.getActionName() == 19) {
oHrmLvLedgerHdrBean.setEmployeeNoId(this.oUserInfo.getUserTypeId());
oHrmLvLedgerHdrBean.setEmployeeNo(this.oUserInfo.getUserId());
oHrmLvLedgerHdrBean.setEmployeeName(this.oUserInfo.getUserName());
}
}
}

View File

@@ -0,0 +1,139 @@
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.HrmLvMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmLvMstQVO;
public class HrmLvMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmLeaveMasterHdrMetaInfo((HrmLvMstQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmLeaveMasterHeaderInfo((HrmLvMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmLeaveMasterDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmLeaveMasterDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmLeaveMst((HrmLvMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmLvMstHdrBean oHrmLvMstHdrBean = (HrmLvMstHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N"))
oDisableList.add("butLeaveCode");
if (!oHrmLvMstHdrBean.equals(null)) {
if (EnrgiseUtil.checkString(oHrmLvMstHdrBean.getEvidenceRequired()))
if (String.valueOf(oHrmLvMstHdrBean.getEvidenceRequired()).equalsIgnoreCase("on")) {
oEnableList.add("evidenceDescription");
} else if (String.valueOf(oHrmLvMstHdrBean.getEvidenceRequired()).equalsIgnoreCase("off")) {
oDisableList.add("evidenceDescription");
} else if (String.valueOf(oHrmLvMstHdrBean.getEvidenceRequired()).equalsIgnoreCase("")) {
oDisableList.add("evidenceDescription");
}
if (EnrgiseUtil.checkString(oHrmLvMstHdrBean.getEncashable()))
if (String.valueOf(oHrmLvMstHdrBean.getEncashable()).equalsIgnoreCase("on")) {
oEnableList.add("encashableLimit");
oEnableList.add("periodicity");
} else if (String.valueOf(oHrmLvMstHdrBean.getEncashable()).equalsIgnoreCase("off")) {
oDisableList.add("encashableLimit");
oDisableList.add("periodicity");
} else if (String.valueOf(oHrmLvMstHdrBean.getEncashable()).equalsIgnoreCase("")) {
oDisableList.add("encashableLimit");
oDisableList.add("periodicity");
}
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N") || oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
HrmLvMstHdrBean oHrmLvMstHdrBean = (HrmLvMstHdrBean)oThisPageVO.getOHeaderBean();
if (String.valueOf(oHrmLvMstHdrBean.getEvidenceRequired()).equalsIgnoreCase("off"))
oHrmLvMstHdrBean.setEvidenceDescription("");
if (String.valueOf(oHrmLvMstHdrBean.getEncashable()).equalsIgnoreCase("off")) {
oHrmLvMstHdrBean.setEncashableLimit("");
oHrmLvMstHdrBean.setPeriodicity("");
}
}
}
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("");
}
}

View File

@@ -0,0 +1,96 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
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.HrmMediclaimMasterHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmMediclaimMasterQVO;
public class HrmMediclaimMasterBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmMediclaimMasterHeaderMetaInfo((HrmMediclaimMasterQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmMediclaimMasterHeaderInfo((HrmMediclaimMasterQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmMediclaimMasterDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmMediclaimMasterDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
String sHeaderPrimaryKey = oHrmFacade.saveHrmMediclaimMaster((HrmMediclaimMasterHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new String();
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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("");
}
}

View File

@@ -0,0 +1,131 @@
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.HrmMisReportHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmMisreportQVO;
public class HrmMisReportBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = null;
return oRecordMetaInfo;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getMisDataCount((HrmMisreportQVO)oQVO);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(BaseQueryVO oQVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getMisDataInfo((HrmMisreportQVO)oQVO, lAbsoluteStart, lAbsoluteEnd);
} 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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmMisData(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmMisReportHdrBean oHrmMisReportHdrBean = (HrmMisReportHdrBean)oThisPageVO.getOHeaderBean();
oEnableList.add("butQuery");
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oDisableList.add("butHelp");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
if (EnrgiseUtil.checkString(oHrmMisReportHdrBean.getLocationCode())) {
oEnableList.add("butGetDetail");
} else {
oDisableList.add("butGetDetail");
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butGenRep"))
sHeaderPrimaryKey = String.valueOf(oHrmFacade.InsertData((HrmMisReportHdrBean)oBaseHeaderBean, oDetailBeanArray));
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HrmMisReportHdrBean oHrmMisReportHdrBean = (HrmMisReportHdrBean)oThisPageVO.getOHeaderBean();
String yearmonth = new String();
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
yearmonth = oHrmFacade.getYearMonth();
oHrmMisReportHdrBean.setTxtYearMonth(yearmonth);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
} catch (RemoteException oRmtExcep) {
throw new EnrgiseSystemException(oRmtExcep);
}
}
}

View File

@@ -0,0 +1,136 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmMyWorkflowDtlBean;
import wenrgise.hrms.bean.HrmMyWorkflowHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmMyWorkflowQVO;
public class HrmMyWorkflowBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmMyWorkflowHdrMetaInfo((HrmMyWorkflowQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmMyWorkflowHdrInfo((HrmMyWorkflowQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} 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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public ArrayList getDetailRecordImpl(BaseQueryVO oBaseQueryVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmMyWorkflow"))
return oHrmFacade.getHrmMyWorkflowDetailInfo(oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmMyWorkflow"))
return oHrmFacade.getHrmMyWorkflowDetailMetaInfo(oBaseQueryVO);
return null;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
HrmMyWorkflowHdrBean oHrmMyWorkflowHdrBean = (HrmMyWorkflowHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
arylstDisab.add("butDelete");
arylstDisab.add("butAddRow");
arylstDisab.add("butDelRow");
arylstDisab.add("butAct");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") || oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
if (EnrgiseUtil.checkString(oHrmMyWorkflowHdrBean.getWorkflowType()))
if (oHrmMyWorkflowHdrBean.getWorkflowType().equalsIgnoreCase("W") && oHrmMyWorkflowHdrBean.getTxtStatus().equalsIgnoreCase("P")) {
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmMyWorkflow")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmMyWorkflowDtlBean oHrmMyWorkflowDtlBean = oIt.next();
if (!oHrmMyWorkflowDtlBean.getStatus().equalsIgnoreCase("N"))
arylstEnab.add("butAct");
}
}
} else {
arylstDisab.add("butAct");
}
if (!oHrmMyWorkflowHdrBean.equals(null))
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
arylstDisab.add("butSave");
arylstDisab.add("butId");
}
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
return oHashMap;
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
}

View File

@@ -0,0 +1,117 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgCalMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgCalMstQVO;
public class HrmOrgCalMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmCalHeaderMetaInfo((HrmOrgCalMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmCalHeader((HrmOrgCalMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmCalDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmCalDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmCalendar((HrmOrgCalMstHdrBean)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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmOrgCalMstHdrBean oHrmOrgCalMstHdrBean = (HrmOrgCalMstHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmOrgCalMstHdrBean.equals(null)) {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("startMonth");
oDisableList.add("duration");
oDisableList.add("butDelete");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oEnableList.add("startMonth");
oEnableList.add("duration");
oDisableList.add("butDelete");
}
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
}

View File

@@ -0,0 +1,104 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgClassHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgClassDtlQVO;
public class HrmOrgClassDtlBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmClassHeaderMetaInfo((HrmOrgClassDtlQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmClassHeader((HrmOrgClassDtlQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmClassDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmClassDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmOrgClassDtl((HrmOrgClassHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") || oThisPageVO.getScreenMode().equalsIgnoreCase("N") || oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
oDisableList.add("butDelete");
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("");
}
}

View File

@@ -0,0 +1,126 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgCntryMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgCntryMstQVO;
public class HrmOrgCntryMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmCountryHeaderMetaInfo((HrmOrgCntryMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmCountryHeader((HrmOrgCntryMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmCountryDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmCountryDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmCountry((HrmOrgCntryMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
HrmOrgCntryMstHdrBean oHrmOrgCntryMstHdrBean = (HrmOrgCntryMstHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oEnableList.add("butCountryCode");
oDisableList.add("butDelete");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butCountryCode");
oDisableList.add("butDelete");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butDelete");
}
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("");
}
}

View File

@@ -0,0 +1,104 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmOrgDistMstBD extends HrmBaseBD {
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 RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmDistrictDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmDistrictDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmDistrict(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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butQuery");
oDisableList.add("butGetDetail");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butQuery");
oEnableList.add("butGetDetail");
}
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("");
}
}

View File

@@ -0,0 +1,129 @@
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.HrmOrgHolCalHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgHolCalQVO;
public class HrmOrgHolCalBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmHolCalHeaderMetaInfo((HrmOrgHolCalQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmHolCalHeader((HrmOrgHolCalQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmHolCalDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmHolCalDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmHolCal((HrmOrgHolCalHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
HrmOrgHolCalHdrBean oHrmOrgHolCalHdrBean = (HrmOrgHolCalHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
if (EnrgiseUtil.checkString(oHrmOrgHolCalHdrBean.getState())) {
oEnableList.add("butState");
oEnableList.add("butSiteCode");
} else {
oDisableList.add("butSiteCode");
}
oDisableList.add("butCalName");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butState");
oDisableList.add("butSiteCode");
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
oDisableList.add("butCalName");
oEnableList.add("description");
} else if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butState");
oDisableList.add("butSiteCode");
oDisableList.add("butFromDate");
oDisableList.add("butToDate");
oEnableList.add("butCalName");
oDisableList.add("description");
}
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("");
}
}

View File

@@ -0,0 +1,146 @@
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.HrmOrgHolTypeMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgHolTypeMstQVO;
public class HrmOrgHolTypeMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmHolTypeHeaderMetaInfo((HrmOrgHolTypeMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmHolTypeHeader((HrmOrgHolTypeMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHolidayType((HrmOrgHolTypeMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmOrgHolTypeMstHdrBean oHrmOrgHolTypeMstHdrBean = (HrmOrgHolTypeMstHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmOrgHolTypeMstHdrBean.equals(null)) {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
if (EnrgiseUtil.checkString(oHrmOrgHolTypeMstHdrBean.getMandatory()))
if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("Y")) {
oEnableList.add("compensatoryLeave");
if (EnrgiseUtil.checkString(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()))
if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("N")) {
oEnableList.add("rewardPercentageOfBasic");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("Y")) {
oDisableList.add("rewardPercentageOfBasic");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("")) {
oDisableList.add("rewardPercentageOfBasic");
}
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("N")) {
oDisableList.add("compensatoryLeave");
oDisableList.add("rewardPercentageOfBasic");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("")) {
oDisableList.add("compensatoryLeave");
oDisableList.add("rewardPercentageOfBasic");
}
oDisableList.add("butDelete");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
if (EnrgiseUtil.checkString(oHrmOrgHolTypeMstHdrBean.getMandatory()))
if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("Y")) {
oEnableList.add("compensatoryLeave");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("N")) {
oDisableList.add("compensatoryLeave");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("")) {
oDisableList.add("compensatoryLeave");
}
if (EnrgiseUtil.checkString(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()))
if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("N")) {
oEnableList.add("rewardPercentageOfBasic");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("Y")) {
oDisableList.add("rewardPercentageOfBasic");
} else if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("")) {
oDisableList.add("rewardPercentageOfBasic");
}
oDisableList.add("butDelete");
}
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N") || oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
HrmOrgHolTypeMstHdrBean oHrmOrgHolTypeMstHdrBean = (HrmOrgHolTypeMstHdrBean)oThisPageVO.getOHeaderBean();
if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getMandatory()).equalsIgnoreCase("N")) {
oHrmOrgHolTypeMstHdrBean.setCompensatoryLeave("N");
oHrmOrgHolTypeMstHdrBean.setRewardPercentageOfBasic("");
}
if (String.valueOf(oHrmOrgHolTypeMstHdrBean.getCompensatoryLeave()).equalsIgnoreCase("Y"))
oHrmOrgHolTypeMstHdrBean.setRewardPercentageOfBasic("");
}
}
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("");
}
}

View File

@@ -0,0 +1,139 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmOrgIncrementDtlBean;
import wenrgise.hrms.bean.HrmOrgIncrementHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgIncrementQVO;
public class HrmOrgIncrementBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmIncrHdrMetaInfo((HrmOrgIncrementQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmIncrHeaderInfo((HrmOrgIncrementQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmIncrDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmIncrDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmIncrement((HrmOrgIncrementHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmOrgIncrementHdrBean oHrmOrgIncrementHdrBean = (HrmOrgIncrementHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
oDisableList.add("butDelete");
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butClsHdr");
oDisableList.add("butClsDtl");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butClsHdr");
oDisableList.add("butClsDtl");
oDisableList.add("butStartDate");
oDisableList.add("butRatingCode");
if (EnrgiseUtil.checkString(oHrmOrgIncrementHdrBean.getEndDate()))
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmOrgIncrement")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmOrgIncrementDtlBean oHrmOrgIncrementDtlBean = oIt.next();
if (!oHrmOrgIncrementDtlBean.getStatus().equalsIgnoreCase("N"))
oHrmOrgIncrementDtlBean.setDisabtxtIncrement("true");
}
}
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N"))
if (EnrgiseUtil.checkString(oHrmOrgIncrementHdrBean.getClsHdrId())) {
oDisableList.add("butClsHdr");
oEnableList.add("butClsDtl");
} else {
oEnableList.add("butClsHdr");
oDisableList.add("butClsDtl");
}
oHashMap.put("D", oDisableList);
oHashMap.put("E", oEnableList);
return oHashMap;
}
public void onLoadAction(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {}
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("");
}
}

View File

@@ -0,0 +1,104 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmOrgLangMstBD extends HrmBaseBD {
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 RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLanguageDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmLanguageDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmLanguage(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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butQuery");
oDisableList.add("butGetDetail");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butQuery");
oEnableList.add("butGetDetail");
}
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("");
}
}

View File

@@ -0,0 +1,92 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmOrgQualMstBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmQualificationDetailMetaInfo();
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmQualificationDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmQualification(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 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();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butQuery");
oDisableList.add("butGetDetail");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butQuery");
oEnableList.add("butGetDetail");
}
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("");
}
}

View File

@@ -0,0 +1,106 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgRatingMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgRatingMstQVO;
public class HrmOrgRatingMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmRatingHeaderMetaInfo((HrmOrgRatingMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmRatingHeader((HrmOrgRatingMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmRatingDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmRatingDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmRating((HrmOrgRatingMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") || oThisPageVO.getScreenMode().equalsIgnoreCase("N") || oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
oDisableList.add("butRatingHeaderCode");
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("");
}
}

View File

@@ -0,0 +1,92 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmOrgRelationMstBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmRelationDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmRelationDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmRelation(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 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();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butQuery");
oDisableList.add("butGetDetail");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butQuery");
oEnableList.add("butGetDetail");
}
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("");
}
}

View File

@@ -0,0 +1,92 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmOrgReligionMstBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmRelDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmReligionDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmReligion(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 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();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butQuery");
oDisableList.add("butGetDetail");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butQuery");
oEnableList.add("butGetDetail");
}
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("");
}
}

View File

@@ -0,0 +1,97 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgScaleMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgScaleMstQVO;
public class HrmOrgScaleMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmScaleHeaderMetaInfo((HrmOrgScaleMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmScaleHeader((HrmOrgScaleMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmScaleDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmScaleDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmScaleMst((HrmOrgScaleMstHdrBean)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();
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("");
}
}

View File

@@ -0,0 +1,104 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgSkillMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgSkillMstQVO;
public class HrmOrgSkillMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSkillHeaderMetaInfo((HrmOrgSkillMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmSkillHeader((HrmOrgSkillMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSkillDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSkillDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmSkill((HrmOrgSkillMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") || oThisPageVO.getScreenMode().equalsIgnoreCase("N") || oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
oDisableList.add("butDelete");
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("");
}
}

View File

@@ -0,0 +1,104 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmOrgTehMstBD extends HrmBaseBD {
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 RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmTehsilDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmTehsilDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmTehsil(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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("U")) {
oEnableList.add("butQuery");
oDisableList.add("butGetDetail");
} else if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butQuery");
oEnableList.add("butGetDetail");
}
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("");
}
}

View File

@@ -0,0 +1,151 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmOrgWorkGroupMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmOrgWorkGroupMstQVO;
public class HrmOrgWorkGroupMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmOrgWorkGroupMstHeaderMetaInfo((HrmOrgWorkGroupMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmOrgWorkGroupMstHeader((HrmOrgWorkGroupMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmOrgWorkGroupMst((HrmOrgWorkGroupMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
HrmOrgWorkGroupMstHdrBean oHrmOrgWorkGroupMstHdrBean = (HrmOrgWorkGroupMstHdrBean)oThisPageVO.getOHeaderBean();
if (!oHrmOrgWorkGroupMstHdrBean.equals(null)) {
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butDelete");
oDisableList.add("code");
oEnableList.add("butWorkGroupCode");
oDisableList.add("name");
oDisableList.add("butSiteCode");
oDisableList.add("deptFlag");
oDisableList.add("temporaryFlag");
oDisableList.add("butCostCode");
oDisableList.add("butContactEmployeeNo");
oDisableList.add("phone");
oDisableList.add("EMail");
oDisableList.add("fax");
oDisableList.add("textarea");
oDisableList.add("refDocNo");
oDisableList.add("butCreationDate");
oDisableList.add("butDocumentDate");
oDisableList.add("butEndDate");
oDisableList.add("specialRemarks");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butDelete");
oDisableList.add("code");
oDisableList.add("butWorkGroupCode");
oEnableList.add("name");
oEnableList.add("butSiteCode");
oEnableList.add("deptFlag");
oEnableList.add("temporaryFlag");
oEnableList.add("butCostCode");
oEnableList.add("butContactEmployeeNo");
oEnableList.add("phone");
oEnableList.add("EMail");
oEnableList.add("fax");
oEnableList.add("textarea");
oEnableList.add("refDocNo");
oEnableList.add("butCreationDate");
oEnableList.add("butDocumentDate");
oEnableList.add("butEndDate");
oEnableList.add("specialRemarks");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("butDelete");
oEnableList.add("code");
oEnableList.add("name");
oDisableList.add("butWorkGroupCode");
oEnableList.add("butSiteCode");
oEnableList.add("deptFlag");
oEnableList.add("temporaryFlag");
oEnableList.add("butCostCode");
oEnableList.add("butContactEmployeeNo");
oEnableList.add("phone");
oEnableList.add("EMail");
oEnableList.add("fax");
oEnableList.add("textarea");
oEnableList.add("refDocNo");
oEnableList.add("butCreationDate");
oEnableList.add("butDocumentDate");
oEnableList.add("butEndDate");
oEnableList.add("specialRemarks");
}
}
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("");
}
}

View File

@@ -0,0 +1,141 @@
package wenrgise.hrms.businessdelegate;
import java.lang.reflect.InvocationTargetException;
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 org.apache.commons.beanutils.BeanUtils;
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.HrmPrmCriteriaHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmCriteriaQVO;
public class HrmPrmCriteriaBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oInfo = new RecordMetaInfo();
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
oInfo.setRecordCount(1L);
oInfo.setOWhenPicked(null);
return null;
} 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 {
ArrayList oHeaderList = null;
HrmPrmCriteriaQVO oVo = (HrmPrmCriteriaQVO)oQueryVO;
HrmPrmCriteriaHdrBean oBean = new HrmPrmCriteriaHdrBean();
BeanUtils.copyProperties(oBean, oVo);
oHeaderList.add(oBean);
return oHeaderList;
} catch (InvocationTargetException oEx) {
throw new EnrgiseSystemException(oEx);
} catch (IllegalAccessException oEx) {
throw new EnrgiseSystemException(oEx);
}
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmPrmCriteriaDetailMetaInfo((HrmPrmCriteriaQVO)oQVO);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(BaseQueryVO oQVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmPrmCriteriaDetailInfo((HrmPrmCriteriaQVO)oQVO, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmPrmCriteriaHdrBean)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 void onLoadAction(ThisPageVO oThisPageVO) {}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
HrmPrmCriteriaHdrBean oHdrBean = (HrmPrmCriteriaHdrBean)oThisPageVO.getOHeaderBean();
arylstEnab.add("butQuery");
arylstDisab.add("butExecute");
arylstDisab.add("butDelete");
arylstDisab.add("butInsert");
if (oThisPageVO.getScreenMode().equals("Q")) {
if (EnrgiseUtil.checkString(oHdrBean.getHeaderPrimaryKey())) {
arylstEnab.add("butToGrade");
if (EnrgiseUtil.checkString(oHdrBean.getToGradeId()) && EnrgiseUtil.checkString(oHdrBean.getToDesigId())) {
arylstEnab.add("butGetDetail");
} else {
arylstDisab.add("butGetDetail");
}
} else {
arylstDisab.add("butToGrade");
}
if (EnrgiseUtil.checkString(oHdrBean.getFromDesigId())) {
arylstEnab.add("butToDesig");
} else {
arylstDisab.add("butToDesig");
}
}
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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("");
}
}

View File

@@ -0,0 +1,107 @@
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.HrmPrmExperienceHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmExperienceScoreQVO;
public class HrmPrmExperienceScoreBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return new RecordMetaInfo();
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new ArrayList();
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmPrmESData(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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oEnableList.add("butQuery");
HrmPrmExperienceHdrBean oHdrBean = (HrmPrmExperienceHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") && EnrgiseUtil.checkString(oHdrBean.getGradeCode()) && EnrgiseUtil.checkString(oHdrBean.getDesigCode()))
oEnableList.add("butGetDetail");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butGrade");
oDisableList.add("butDesig");
oEnableList.add("butSave");
}
oDisableList.add("butExecute");
oDisableList.add("butDelete");
oDisableList.add("butInsert");
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 null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
RecordMetaInfo oRecordMetaInfo = oHrmSecondFacade.getHrmPrmESDtlMetaInfo((HrmPrmExperienceScoreQVO)oBaseQueryVO);
return oRecordMetaInfo;
} 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();
ArrayList oDetailList = oHrmSecondFacade.getHrmPrmESDtlInfo((HrmPrmExperienceScoreQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return oDetailList;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,73 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
public class HrmPrmGenAssBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
arylstEnab.add("butPrmID");
arylstEnab.add("butSiteID");
arylstDisab.add("butGenerate");
arylstDisab.add("butInsert");
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
return oHashMap;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
System.out.println("Data Save Successfully");
return null;
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacadeLocal = oHome.create();
sHeaderPrimaryKey = oHrmSecondFacadeLocal.savePrmGenAss(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,137 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmPrmKPAPoswiseDtlBean;
import wenrgise.hrms.bean.HrmPrmKPARatingHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmKPARatingQVO;
public class HrmPrmKPARatingBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getKPARatingHeaderMetaInfo((HrmPrmKPARatingQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getKPARatingHeaderInfo((HrmPrmKPARatingQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
if (sScreenName.equalsIgnoreCase("HrmPrmKPARating")) {
oRecordMetaInfo = oHrmSecondFacade.getPrmKPARatingPosDetailMetaInfo(lPrimaryKey);
} else {
oRecordMetaInfo = oHrmSecondFacade.getPrmKPARatingFinDetailMetaInfo(lPrimaryKey);
}
return oRecordMetaInfo;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oDetailList = new ArrayList();
if (sScreenName.equalsIgnoreCase("HrmPrmKPARating")) {
oDetailList = oHrmSecondFacade.getPrmKPARatingPosDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else {
oDetailList = oHrmSecondFacade.getPrmKPARatingFinDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
}
return oDetailList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmPrmKPARatingHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oList = oThisPageVO.getODetailList();
int sCount = 0;
ArrayList oDetailList = new ArrayList();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("butGrade");
oDisableList.add("butDesig");
}
if (oThisPageVO.getScreenMode().equals("U")) {
oDisableList.add("butGrade");
oDisableList.add("butDesig");
oDisableList.add("butRatingNo");
if (oList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmPrmKPARating")) {
Iterator oIt = oList.iterator();
while (oIt.hasNext()) {
HrmPrmKPAPoswiseDtlBean oHrmPrmKPAPoswiseDtlBean = oIt.next();
if (!oHrmPrmKPAPoswiseDtlBean.getStatus().equalsIgnoreCase("N"))
oHrmPrmKPAPoswiseDtlBean.setDisabbutForPos("true");
}
}
}
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();
}
}

View File

@@ -0,0 +1,135 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmPrmNoticeDtlDtlBean;
import wenrgise.hrms.bean.HrmPrmNoticeDtlHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmNoticeDtlQVO;
public class HrmPrmNoticeDtlBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmPrmNoticeDtlHdrMetaInfo((HrmPrmNoticeDtlQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmPrmNoticeDtlHdrInfo((HrmPrmNoticeDtlQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
oRecordMetaInfo = oHrmSecondFacade.getNoticeDetailMetaInfo(lPrimaryKey);
return oRecordMetaInfo;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oDetailList = new ArrayList();
oDetailList = oHrmSecondFacade.getPrmNoticeDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
return oDetailList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveNoticeDtlData((HrmPrmNoticeDtlHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
int sCount = 0;
if (oThisPageVO.getScreenMode().equals("N")) {
oEnableList.add("noticeNo");
oEnableList.add("desc");
oDisableList.add("butNoticeNo");
} else if (oThisPageVO.getScreenMode().equals("U")) {
oDisableList.add("butNoticeNo");
oDisableList.add("noticeNo");
oEnableList.add("desc");
oDisableList.add("butNoticeDate");
if (oDetailList != null)
if (oThisPageVO.getScreenName().equalsIgnoreCase("HrmPrmNoticeDtl")) {
Iterator oIt = oDetailList.iterator();
while (oIt.hasNext()) {
HrmPrmNoticeDtlDtlBean oHrmPrmNoticeDtlDtlBean = oIt.next();
if (!oHrmPrmNoticeDtlDtlBean.getStatus().equalsIgnoreCase("N")) {
oHrmPrmNoticeDtlDtlBean.setDisabbutGrade("true");
oHrmPrmNoticeDtlDtlBean.setDisabbutDesig("true");
}
}
}
} else {
oDisableList.add("noticeNo");
oDisableList.add("desc");
oEnableList.add("butNoticeNo");
oDisableList.add("butNoticeDate");
}
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();
}
}

View File

@@ -0,0 +1,115 @@
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.HrmPrmOrderHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmOrderQVO;
public class HrmPrmOrderBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmPromOrderHdrMetaInfo((HrmPrmOrderQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmPromOrderHdr((HrmPrmOrderQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.savePromOrder((HrmPrmOrderHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmPrmOrderHdrBean oHrmPrmOrderHdrBean = (HrmPrmOrderHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butToGrade");
oDisableList.add("butToDesig");
oDisableList.add("butEffecDate");
oDisableList.add("butApprovedBy");
oDisableList.add("remarks");
oDisableList.add("orderNo");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butToGrade");
oDisableList.add("butToDesig");
oDisableList.add("butEffecDate");
oDisableList.add("butApprovedBy");
oDisableList.add("butOrderNo");
oDisableList.add("butEmpNo");
oDisableList.add("orderNo");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("butOrderNo");
if (EnrgiseUtil.checkString(oHrmPrmOrderHdrBean.getEmpId())) {
oEnableList.add("butToGrade");
oEnableList.add("butToDesig");
} else {
oDisableList.add("butToGrade");
oDisableList.add("butToDesig");
}
}
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("");
}
}

View File

@@ -0,0 +1,109 @@
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.HrmPrmQualCriteriaHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmQualCriteriaQVO;
public class HrmPrmQualCriteriaBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.savePrmQualCriteriaDtl(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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();
oEnableList.add("butQuery");
HrmPrmQualCriteriaHdrBean oHdrBean = (HrmPrmQualCriteriaHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q") && EnrgiseUtil.checkString(oHdrBean.getGradeCode()) && EnrgiseUtil.checkString(oHdrBean.getDesigCode()))
oEnableList.add("butGetDetail");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butGrade");
oDisableList.add("butDesig");
oEnableList.add("butSave");
}
oDisableList.add("butExecute");
oDisableList.add("butDelete");
oDisableList.add("butInsert");
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("");
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
oRecordMetaInfo = oHrmSecondFacade.getPrmQualCriteriaDetailMetaInfo((HrmPrmQualCriteriaQVO)oBaseQueryVO);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(BaseQueryVO oBaseQueryVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList oAdvAttrDtl = new ArrayList();
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
oAdvAttrDtl = oHrmSecondFacade.getPrmQualCriteriaDetail((HrmPrmQualCriteriaQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
return oAdvAttrDtl;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,122 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmPrmTestScoreHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmPrmTestScoreQVO;
public class HrmPrmTestScoreBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmPrmTCHdrMetaInfo((HrmPrmTestScoreQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmPrmTCHdrInfo((HrmPrmTestScoreQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
RecordMetaInfo oRecordMetaInfo = oHrmSecondFacade.getHrmPrmTCDtlMetaInfo(lPrimaryKey);
return oRecordMetaInfo;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oDetailList = oHrmSecondFacade.getHrmPrmTCDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
return oDetailList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.savePrmTCData((HrmPrmTestScoreHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butGrade");
oDisableList.add("butDesig");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butGrade");
oDisableList.add("butDesig");
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"));
if (sButtonName.equalsIgnoreCase("butReject"));
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,131 @@
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.HrmPrmViewAssHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
public class HrmPrmViewAssBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
oRecordMetaInfo = oHrmSecondFacade.getPrmViewAssDetailMetaInfo(lPrimaryKey, this.oUserInfo);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList oAdvAttrDtl = new ArrayList();
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
oAdvAttrDtl = oHrmSecondFacade.getPrmViewAssDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd, this.oUserInfo);
return oAdvAttrDtl;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.savePrmViewAssDtl(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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();
ArrayList oDetailList = oThisPageVO.getODetailList();
BaseHeaderBean oBaseHeaderBean = oThisPageVO.getOHeaderBean();
HrmPrmViewAssHdrBean oHrmPrmViewAssHdrBean = (HrmPrmViewAssHdrBean)oBaseHeaderBean;
if (!EnrgiseUtil.checkString(oHrmPrmViewAssHdrBean.getPrmNo())) {
oDisableList.add("buttoPositionID");
} else if (oHrmPrmViewAssHdrBean.getChangeEnb().equalsIgnoreCase("S")) {
oEnableList.add("buttoPositionID");
}
if (oHrmPrmViewAssHdrBean.getChangeEnb().equalsIgnoreCase("S") && oThisPageVO.getODetailList() == null)
if (!EnrgiseUtil.checkString(oHrmPrmViewAssHdrBean.getToPosition())) {
oDisableList.add("butAddRow");
oDisableList.add("butGetDetail");
oDisableList.add("butDelRow");
} else {
oDisableList.add("butAddRow");
oEnableList.add("butGetDetail");
oDisableList.add("butDelRow");
oDisableList.add("butprmID");
}
if (oHrmPrmViewAssHdrBean.getChangeEnb().equalsIgnoreCase("T") && oThisPageVO.getODetailList().size() == 0) {
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
oDisableList.add("butGetDetail");
oDisableList.add("buttoPositionID");
oDisableList.add("butprmID");
oEnableList.add("butQuery");
}
if (oHrmPrmViewAssHdrBean.getChangeEnb().equalsIgnoreCase("T") && oThisPageVO.getODetailList().size() != 0) {
oDisableList.add("butAddRow");
oDisableList.add("butGetDetail");
oEnableList.add("butSave");
oDisableList.add("butDelRow");
oDisableList.add("buttoPositionID");
oDisableList.add("butprmID");
oEnableList.add("butQuery");
}
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oDisableList.add("butDelete");
oDisableList.add("butPrevHeader");
oDisableList.add("butNextHeader");
oDisableList.add("newPositionRequested");
oDisableList.add("butJumpHeader");
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("");
}
}

View File

@@ -0,0 +1,154 @@
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.HrmRecAdvAttrHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
public class HrmRecAdvAttrBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrLocVacencyDtl")) {
oRecordMetaInfo = oHrmSecondFacade.getRecLocVacencyDetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrLngReqDtl")) {
oRecordMetaInfo = oHrmSecondFacade.getRecLngReqDetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrQualReqDtl")) {
oRecordMetaInfo = oHrmSecondFacade.getRecQualReqDetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrSkillReqDtl")) {
oRecordMetaInfo = oHrmSecondFacade.getRecSkillReqDetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrWorkExpDtl")) {
oRecordMetaInfo = oHrmSecondFacade.getRecWorkExpDetailMetaInfo(lPrimaryKey);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrJobDesc")) {
oRecordMetaInfo = oHrmSecondFacade.getRecJobDescDetailMetaInfo(lPrimaryKey);
}
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
ArrayList oAdvAttrDtl = new ArrayList();
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrLocVacencyDtl")) {
oAdvAttrDtl = oHrmSecondFacade.getRecLocVacencyDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrLngReqDtl")) {
oAdvAttrDtl = oHrmSecondFacade.getRecLngReqDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrQualReqDtl")) {
oAdvAttrDtl = oHrmSecondFacade.getRecQualReqDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrSkillReqDtl")) {
oAdvAttrDtl = oHrmSecondFacade.getRecSkillReqDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrWorkExpDtl")) {
oAdvAttrDtl = oHrmSecondFacade.getRecWorkExpDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} else if (sScreenName.equalsIgnoreCase("HrmRecAdvAttrJobDesc")) {
oAdvAttrDtl = oHrmSecondFacade.getRecJobDescDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
}
return oAdvAttrDtl;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmRecAdvAttrDtl(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
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();
ArrayList oDetailList = oThisPageVO.getODetailList();
BaseHeaderBean oBaseHeaderBean = oThisPageVO.getOHeaderBean();
HrmRecAdvAttrHdrBean oHrmRecAdvAttrHdrBean = (HrmRecAdvAttrHdrBean)oBaseHeaderBean;
if (!EnrgiseUtil.checkString(oHrmRecAdvAttrHdrBean.getRefNo())) {
oDisableList.add("butPosition");
} else if (oHrmRecAdvAttrHdrBean.getChangeEnb().equalsIgnoreCase("S")) {
oEnableList.add("butPosition");
}
if (oHrmRecAdvAttrHdrBean.getChangeEnb().equalsIgnoreCase("S") && oThisPageVO.getODetailList() == null)
if (!EnrgiseUtil.checkString(oHrmRecAdvAttrHdrBean.getDesgn())) {
oDisableList.add("butAddRow");
oDisableList.add("butGetDetail");
oDisableList.add("butDelRow");
} else {
oDisableList.add("butAddRow");
oEnableList.add("butGetDetail");
oDisableList.add("butDelRow");
}
if (oHrmRecAdvAttrHdrBean.getChangeEnb().equalsIgnoreCase("T") && oThisPageVO.getODetailList() == null) {
oEnableList.add("butAddRow");
oDisableList.add("butDelRow");
oDisableList.add("butGetDetail");
oDisableList.add("butrefNo");
oDisableList.add("butPosition");
oEnableList.add("butQuery");
}
if (oHrmRecAdvAttrHdrBean.getChangeEnb().equalsIgnoreCase("T") && oThisPageVO.getODetailList() != null) {
oEnableList.add("butAddRow");
oDisableList.add("butGetDetail");
oEnableList.add("butSave");
oEnableList.add("butDelRow");
oDisableList.add("butrefNo");
oDisableList.add("butPosition");
oEnableList.add("butQuery");
}
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oDisableList.add("butDelete");
oDisableList.add("butPrevHeader");
oDisableList.add("butNextHeader");
oDisableList.add("newPositionRequested");
oDisableList.add("butJumpHeader");
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("");
}
}

View File

@@ -0,0 +1,132 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmRecAdvtMtnHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmRecAdvtMtnQVO;
public class HrmRecAdvtMtnBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmRecAdvtHdrMetaInfo((HrmRecAdvtMtnQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmRecAdvtHdrInfo((HrmRecAdvtMtnQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
RecordMetaInfo oRecordMetaInfo = oHrmSecondFacade.getHrmRecAdvtDtlMetaInfo(lPrimaryKey);
return oRecordMetaInfo;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oDetailList = oHrmSecondFacade.getHrmRecAdvtDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
return oDetailList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveAdvtData((HrmRecAdvtMtnHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmRecAdvtMtnHdrBean oHrmRecAdvtMtnHdrBean = (HrmRecAdvtMtnHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmRecAdvtMtnHdrBean.equals(null)) {
if (oThisPageVO.getScreenMode().equals("Q")) {
oDisableList.add("minInterviewScore2");
oDisableList.add("minInterviewScore3");
oDisableList.add("venue");
oDisableList.add("time");
oDisableList.add("butDateWalkin");
}
if (oThisPageVO.getScreenMode().equals("N")) {
oEnableList.add("minInterviewScore2");
oEnableList.add("minInterviewScore3");
oEnableList.add("venue");
oEnableList.add("time");
oEnableList.add("butDateWalkin");
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"));
if (sButtonName.equalsIgnoreCase("butReject"));
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,391 @@
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.HrmRecApplnMtnHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmRecApplnMtnQVO;
public class HrmRecApplnMtnBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmRecApplnMtnHdrMetaInfo((HrmRecApplnMtnQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmRecApplnMtnHeaderInfo((HrmRecApplnMtnQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnAddDtl"))
return oHrmSecondFacade.getHrmRecApplnAddDtlMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnLangDtl"))
return oHrmSecondFacade.getHrmRecApplnLangDtlMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnEduDtl"))
return oHrmSecondFacade.getHrmRecApplnEduDtlMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnExpDtl"))
return oHrmSecondFacade.getHrmRecApplnExpDtlMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnResultDtl"))
return oHrmSecondFacade.getHrmRecApplnResultDtlMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnOtherDtl"))
return oHrmSecondFacade.getHrmRecApplnOtherDtlMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnRef"))
return oHrmSecondFacade.getHrmRecApplnRefMetaInfo(lPrimaryKey);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnTrngDtls"))
return oHrmSecondFacade.getHrmRecApplnTrngDtlsMetaInfo(lPrimaryKey);
RecordMetaInfo obj = new RecordMetaInfo();
return obj;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, 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("HrmRecApplnMtnAddDtl"))
return oHrmSecondFacade.getHrmRecApplnAddDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnLangDtl"))
return oHrmSecondFacade.getHrmRecApplnLangDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnEduDtl"))
return oHrmSecondFacade.getHrmRecApplnEduDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnExpDtl"))
return oHrmSecondFacade.getHrmRecApplnExpDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnResultDtl"))
return oHrmSecondFacade.getHrmRecApplnResultDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnOtherDtl"))
return oHrmSecondFacade.getHrmRecApplnOtherDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnRef"))
return oHrmSecondFacade.getHrmRecApplnRef(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnTrngDtls"))
return oHrmSecondFacade.getHrmRecApplnTrngDtls(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
ArrayList obj = new ArrayList();
return obj;
} 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 {
System.out.println(String.valueOf("header when picked=").concat(String.valueOf(oWhenPicked)));
System.out.println(String.valueOf("Detail when picked=").concat(String.valueOf(oDetailPicked)));
oWhenPicked = oDetailPicked;
System.out.println(oWhenPicked);
System.out.println(oDetailPicked);
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnAddDtl"))
return oHrmSecondFacade.saveHrmRecApplnAddDtl((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnExpDtl"))
return oHrmSecondFacade.saveHrmRecApplnExpDtl((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnEduDtl"))
return oHrmSecondFacade.saveHrmRecApplnEduDtl((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnLangDtl"))
return oHrmSecondFacade.saveHrmRecApplnLangDtl((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnOtherDtl"))
return oHrmSecondFacade.saveHrmRecApplnOtherDtl((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnResultDtl"))
return oHrmSecondFacade.saveHrmRecApplnResultDtl((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnRef"))
return oHrmSecondFacade.saveHrmRecApplnRef((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sScreenName.equalsIgnoreCase("HrmRecApplnMtnTrngDtls"))
return oHrmSecondFacade.saveHrmRecApplnTrngDtls((HrmRecApplnMtnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
return null;
}
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 arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
HrmRecApplnMtnHdrBean oHrmRecApplnMtnHdrBean = (HrmRecApplnMtnHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equals("Q")) {
arylstDisab.add("applicationNo");
arylstDisab.add("butApplicationDate");
arylstDisab.add("butApplicationDate");
arylstDisab.add("butReferenceNo");
arylstDisab.add("applicantFirstName");
arylstDisab.add("applicantMiddleName");
arylstDisab.add("applicantLastName");
arylstDisab.add("butApplForDesignation");
arylstDisab.add("rollNo");
if (oThisPageVO.getScreenName().equals("HrmRecApplnMtnAddDtl")) {
arylstDisab.add("guardianName");
arylstDisab.add("butDateOfBirth");
arylstDisab.add("placeOfBirth");
arylstDisab.add("butNationality");
arylstDisab.add("butMaritalStatus");
arylstDisab.add("sex");
arylstDisab.add("relatedToEmp");
arylstDisab.add("butMotherTongue");
arylstDisab.add("butRelatedEmp");
arylstDisab.add("butReligion");
arylstDisab.add("handicappedFlag");
arylstDisab.add("healthRecord");
arylstDisab.add("bloodGroup");
arylstDisab.add("appliedEarlier");
arylstDisab.add("mail");
arylstDisab.add("butReservationCategory");
arylstDisab.add("prevEmpFlag");
arylstDisab.add("prevEmpDtls");
arylstDisab.add("hobbies");
arylstDisab.add("grossExpected");
arylstDisab.add("addlInfo");
arylstDisab.add("butPresCountry");
arylstDisab.add("butPresState");
arylstDisab.add("presCity");
arylstDisab.add("presAddress");
arylstDisab.add("presPin");
arylstDisab.add("presPhone");
arylstDisab.add("butPermCountry");
arylstDisab.add("butPermState");
arylstDisab.add("permAddress");
arylstDisab.add("permCity");
arylstDisab.add("permAddress");
arylstDisab.add("permPin");
arylstDisab.add("permPhone");
arylstDisab.add("passportNo");
arylstDisab.add("placeOfIssue");
arylstDisab.add("butExpiryDate");
arylstDisab.add("butIssueDate");
arylstDisab.add("butSubmissionDate");
arylstDisab.add("chequeNo");
arylstDisab.add("submittedAmount");
arylstDisab.add("submissionDate");
arylstDisab.add("arrestedBefore");
arylstDisab.add("imprisonedBefore");
arylstDisab.add("reasons");
arylstDisab.add("prosecutedBefore");
arylstDisab.add("finedByCourt");
}
}
if (oThisPageVO.getScreenMode().equals("N")) {
arylstEnab.add("applicationNo");
arylstDisab.add("butApplicationNo");
arylstEnab.add("butApplicationDate");
arylstEnab.add("butReferenceNo");
arylstEnab.add("applicantFirstName");
arylstEnab.add("applicantMiddleName");
arylstEnab.add("applicantLastName");
arylstDisab.add("rollNo");
if (!EnrgiseUtil.checkString(oHrmRecApplnMtnHdrBean.getReferenceNo())) {
arylstDisab.add("butApplForDesignation");
} else {
arylstEnab.add("butApplForDesignation");
}
if (oThisPageVO.getScreenName().equals("HrmRecApplnMtnAddDtl")) {
arylstEnab.add("guardianName");
arylstEnab.add("butDateOfBirth");
arylstEnab.add("placeOfBirth");
arylstEnab.add("butNationality");
arylstEnab.add("butMaritalStatus");
arylstEnab.add("sex");
arylstEnab.add("relatedToEmp");
arylstEnab.add("butMotherTongue");
arylstEnab.add("butRelatedEmp");
arylstEnab.add("butReligion");
arylstEnab.add("handicappedFlag");
arylstEnab.add("healthRecord");
arylstEnab.add("bloodGroup");
arylstEnab.add("appliedEarlier");
arylstEnab.add("mail");
arylstEnab.add("butReservationCategory");
arylstEnab.add("prevEmpFlag");
arylstEnab.add("prevEmpDtls");
arylstEnab.add("hobbies");
arylstEnab.add("grossExpected");
arylstEnab.add("addlInfo");
arylstEnab.add("butPresCountry");
arylstEnab.add("butPresState");
arylstEnab.add("presCity");
arylstEnab.add("presAddress");
arylstEnab.add("presPin");
arylstEnab.add("presPhone");
arylstEnab.add("butPermCountry");
arylstEnab.add("butPermState");
arylstEnab.add("permAddress");
arylstEnab.add("permCity");
arylstEnab.add("permAddress");
arylstEnab.add("permPin");
arylstEnab.add("permPhone");
arylstEnab.add("passportNo");
arylstEnab.add("placeOfIssue");
arylstEnab.add("butExpiryDate");
arylstEnab.add("butIssueDate");
arylstEnab.add("butSubmissionDate");
arylstEnab.add("chequeNo");
arylstEnab.add("submittedAmount");
arylstEnab.add("submissionDate");
arylstEnab.add("arrestedBefore");
arylstEnab.add("imprisonedBefore");
arylstEnab.add("reasons");
arylstEnab.add("prosecutedBefore");
arylstEnab.add("finedByCourt");
}
}
if (oThisPageVO.getScreenMode().equals("U")) {
arylstDisab.add("applicationNo");
arylstDisab.add("butApplicationNo");
arylstDisab.add("butApplicationDate");
arylstDisab.add("butReferenceNo");
arylstEnab.add("applicantFirstName");
arylstEnab.add("applicantMiddleName");
arylstEnab.add("applicantLastName");
arylstDisab.add("rollNo");
arylstDisab.add("butApplForDesignation");
if (oThisPageVO.getScreenName().equals("HrmRecApplnMtnAddDtl"))
if (oThisPageVO.getODetailList() != null) {
arylstEnab.add("guardianName");
arylstEnab.add("butDateOfBirth");
arylstEnab.add("placeOfBirth");
arylstEnab.add("butNationality");
arylstEnab.add("butMaritalStatus");
arylstEnab.add("sex");
arylstEnab.add("relatedToEmp");
arylstEnab.add("butMotherTongue");
arylstEnab.add("butRelatedEmp");
arylstEnab.add("butReligion");
arylstEnab.add("handicappedFlag");
arylstEnab.add("healthRecord");
arylstEnab.add("bloodGroup");
arylstEnab.add("appliedEarlier");
arylstEnab.add("mail");
arylstEnab.add("butReservationCategory");
arylstEnab.add("prevEmpFlag");
arylstEnab.add("prevEmpDtls");
arylstEnab.add("hobbies");
arylstEnab.add("grossExpected");
arylstEnab.add("addlInfo");
arylstEnab.add("butPresCountry");
arylstEnab.add("butPresState");
arylstEnab.add("presCity");
arylstEnab.add("presAddress");
arylstEnab.add("presPin");
arylstEnab.add("presPhone");
arylstEnab.add("butPermCountry");
arylstEnab.add("butPermState");
arylstEnab.add("permAddress");
arylstEnab.add("permCity");
arylstEnab.add("permAddress");
arylstEnab.add("permPin");
arylstEnab.add("permPhone");
arylstEnab.add("passportNo");
arylstEnab.add("placeOfIssue");
arylstEnab.add("butExpiryDate");
arylstEnab.add("butIssueDate");
arylstEnab.add("butSubmissionDate");
arylstEnab.add("chequeNo");
arylstEnab.add("submittedAmount");
arylstEnab.add("submissionDate");
arylstEnab.add("arrestedBefore");
arylstEnab.add("imprisonedBefore");
arylstEnab.add("reasons");
arylstEnab.add("prosecutedBefore");
arylstEnab.add("finedByCourt");
} else {
arylstDisab.add("guardianName");
arylstDisab.add("butDateOfBirth");
arylstDisab.add("placeOfBirth");
arylstDisab.add("butNationality");
arylstDisab.add("butMaritalStatus");
arylstDisab.add("sex");
arylstDisab.add("relatedToEmp");
arylstDisab.add("butMotherTongue");
arylstDisab.add("butRelatedEmp");
arylstDisab.add("butReligion");
arylstDisab.add("handicappedFlag");
arylstDisab.add("healthRecord");
arylstDisab.add("bloodGroup");
arylstDisab.add("appliedEarlier");
arylstDisab.add("mail");
arylstDisab.add("butReservationCategory");
arylstDisab.add("prevEmpFlag");
arylstDisab.add("prevEmpDtls");
arylstDisab.add("hobbies");
arylstDisab.add("grossExpected");
arylstDisab.add("addlInfo");
arylstDisab.add("butPresCountry");
arylstDisab.add("butPresState");
arylstDisab.add("presCity");
arylstDisab.add("presAddress");
arylstDisab.add("presPin");
arylstDisab.add("presPhone");
arylstDisab.add("butPermCountry");
arylstDisab.add("butPermState");
arylstDisab.add("permAddress");
arylstDisab.add("permCity");
arylstDisab.add("permAddress");
arylstDisab.add("permPin");
arylstDisab.add("permPhone");
arylstDisab.add("passportNo");
arylstDisab.add("placeOfIssue");
arylstDisab.add("butExpiryDate");
arylstDisab.add("butIssueDate");
arylstDisab.add("butSubmissionDate");
arylstDisab.add("chequeNo");
arylstDisab.add("submittedAmount");
arylstDisab.add("submissionDate");
arylstDisab.add("arrestedBefore");
arylstDisab.add("imprisonedBefore");
arylstDisab.add("reasons");
arylstDisab.add("prosecutedBefore");
arylstDisab.add("finedByCourt");
}
}
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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("");
}
}

View File

@@ -0,0 +1,146 @@
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.RecordMetaInfo;
import wenrgise.common.utility.ServiceLocator;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.hrms.bean.HrmRecEmpRecCreationHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmRecEmpRecCreationQVO;
public class HrmRecEmpRecCreationBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmEmpRecCrtnHdrMetaInfo((HrmRecEmpRecCreationQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmEmpRecCrtnHeaderInfo((HrmRecEmpRecCreationQVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveData((HrmRecEmpRecCreationHdrBean)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 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList arylstEnableList = new ArrayList();
ArrayList arylstDisableList = new ArrayList();
HrmRecEmpRecCreationHdrBean oHrmRecEmpRecCreationHdrBean = (HrmRecEmpRecCreationHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oList = oThisPageVO.getODetailList();
if (oThisPageVO.getScreenMode().equals("Q")) {
arylstEnableList.add("butApplicationNo");
arylstDisableList.add("butCountryOfficeAddress");
arylstDisableList.add("butStateOfficeAddress");
arylstDisableList.add("butAppointmentOrderDate");
arylstDisableList.add("butCompanyJoiningDate");
arylstDisableList.add("butLocationJoiningDate");
arylstDisableList.add("butTentativeConfirmDate");
arylstDisableList.add("butBaseSite");
arylstDisableList.add("butGrade");
arylstDisableList.add("butDesignation");
arylstDisableList.add("butJoiningGroup");
arylstDisableList.add("officeAddress");
arylstDisableList.add("cityOfficeAddress");
arylstDisableList.add("pinCodeOfficeAddress");
arylstDisableList.add("appointmentOrder");
arylstDisableList.add("phoneOfficeAddress");
arylstDisableList.add("employeeType");
}
if (oThisPageVO.getScreenMode().equals("U")) {
arylstDisableList.add("butApplicationNo");
arylstEnableList.add("butCountryOfficeAddress");
arylstEnableList.add("butStateOfficeAddress");
arylstEnableList.add("butAppointmentOrderDate");
arylstEnableList.add("butCompanyJoiningDate");
arylstEnableList.add("butLocationJoiningDate");
arylstEnableList.add("butTentativeConfirmDate");
arylstEnableList.add("butBaseSite");
arylstEnableList.add("butGrade");
arylstEnableList.add("butDesignation");
arylstEnableList.add("butJoiningGroup");
arylstEnableList.add("officeAddress");
arylstEnableList.add("cityOfficeAddress");
arylstEnableList.add("pinCodeOfficeAddress");
arylstEnableList.add("appointmentOrder");
arylstEnableList.add("phoneOfficeAddress");
arylstEnableList.add("employeeType");
}
if (oThisPageVO.getScreenMode().equals("N")) {
arylstDisableList.add("butApplicationNo");
arylstDisableList.add("butCountryOfficeAddress");
arylstDisableList.add("butStateOfficeAddress");
arylstDisableList.add("butAppointmentOrderDate");
arylstDisableList.add("butCompanyJoiningDate");
arylstDisableList.add("butLocationJoiningDate");
arylstDisableList.add("butTentativeConfirmDate");
arylstDisableList.add("butBaseSite");
arylstDisableList.add("butGrade");
arylstDisableList.add("butDesignation");
arylstDisableList.add("butJoiningGroup");
arylstDisableList.add("officeAddress");
arylstDisableList.add("cityOfficeAddress");
arylstDisableList.add("pinCodeOfficeAddress");
arylstDisableList.add("appointmentOrder");
arylstDisableList.add("phoneOfficeAddress");
arylstDisableList.add("employeeType");
}
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("");
}
}

View File

@@ -0,0 +1,96 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmRecScrutAppMntQVO;
public class HrmRecScrutAppMntBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return new RecordMetaInfo();
}
public ArrayList getHeaderRecordImpl(BaseQueryVO oQueryVO, long lStartPosition, long lLastPosition) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new ArrayList();
}
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
return oRecordMetaInfo;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return new ArrayList();
}
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 {
try {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.saveHrmRecScrutAppDtl(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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oList = oThisPageVO.getODetailList();
int sCount = 0;
ArrayList oDetailList = new ArrayList();
oDisableList.add("butInsert");
oDisableList.add("butDelete");
oDisableList.add("butExecute");
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("");
}
public RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oBaseQueryVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmScrutAppMntnDetailMetaInfo((HrmRecScrutAppMntQVO)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 {
HrmSecondFacade oHrmSecondFacade = (HrmSecondFacade)getModuleFacade("SecHRMS");
return oHrmSecondFacade.getHrmScrutAppMntnDetailInfo((HrmRecScrutAppMntQVO)oBaseQueryVO, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,115 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmRecTestCentreMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmRecTestCentreMstQVO;
public class HrmRecTestCentreMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTCMstHeaderMetaInfo((HrmRecTestCentreMstQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTCMstHeader((HrmRecTestCentreMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmTCMst((HrmRecTestCentreMstHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oList = oThisPageVO.getODetailList();
int sCount = 0;
ArrayList oDetailList = new ArrayList();
oDisableList.add("butInsert");
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butInsert");
oDisableList.add("butSave");
oDisableList.add("testCentreCode");
oDisableList.add("testCentreName");
oDisableList.add("phone");
oDisableList.add("fax");
oDisableList.add("address");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butExecute");
oDisableList.add("butQuery");
oEnableList.add("butInsert");
oEnableList.add("butSave");
oDisableList.add("testCentreCode");
oDisableList.add("testCentreName");
oDisableList.add("butTestCentreCode");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oEnableList.add("butExecute");
oEnableList.add("butQuery");
oDisableList.add("butTestCentreCode");
}
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("");
}
}

View File

@@ -0,0 +1,117 @@
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.HrmRetireForecastHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmRetireForecastQVO;
public class HrmRetireForecastBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.procGetRetireDataCount((HrmRetireForecastQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.procGetRetireDataInfo((HrmRetireForecastQVO)oQueryVO, lStartPosition, lLastPosition);
} 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 RecordMetaInfo getTotalDetailRecordCountImpl(BaseQueryVO oQVO, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public ArrayList getDetailRecordImpl(BaseQueryVO oQVO, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public boolean updateHeaderRecordImpl(BaseHeaderBean oBaseHeaderBean) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return true;
}
public String getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmRetireForecastData(oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmRetireForecastHdrBean oHrmRetireForecastHdrBean = (HrmRetireForecastHdrBean)oThisPageVO.getOHeaderBean();
oEnableList.add("butQuery");
oDisableList.add("butSave");
oDisableList.add("butExecute");
oDisableList.add("butInsert");
oDisableList.add("butHelp");
if (!EnrgiseUtil.checkString(oHrmRetireForecastHdrBean.getFlag1()));
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oEnableList.add("butInsertData");
oDisableList.add("butViewReport");
} else {
oDisableList.add("butInsertData");
oEnableList.add("butViewReport");
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.InsertData(oBaseHeaderBean);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,129 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmRoasterEntryHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmRoasterEntryQVO;
public class HrmRoasterEntryBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmRoasterHdrMetaInfo((HrmRoasterEntryQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmRoasterHdrInfo((HrmRoasterEntryQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmRoasterEntry"))
return oHrmSecondFacade.getHrmRoasterEntryDetailMetaInfo(lPrimaryKey);
RecordMetaInfo obj = new RecordMetaInfo();
return obj;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, 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("HrmRoasterEntry"))
return oHrmSecondFacade.getHrmRoasterEntryDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
ArrayList obj = new ArrayList();
return obj;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
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 {
oWhenPicked = oDetailPicked;
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
if (sScreenName.equalsIgnoreCase("HrmRoasterEntry"))
return oHrmSecondFacade.saveRoasterHdr((HrmRoasterEntryHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
return null;
}
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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
ArrayList oDetailList = oThisPageVO.getODetailList();
BaseHeaderBean oBaseHeaderBean = oThisPageVO.getOHeaderBean();
HrmRoasterEntryHdrBean oHrmRoasterEntryHdrBean = (HrmRoasterEntryHdrBean)oBaseHeaderBean;
if (!oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("txtRoasterDescription");
oDisableList.add("txtRoasterCode");
}
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("");
}
}

View File

@@ -0,0 +1,147 @@
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.HrmSepApplnHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmSepApplnQVO;
public class HrmSepApplnBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepApplnHdrMetaInfo((HrmSepApplnQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmSepApplnHeaderInfo((HrmSepApplnQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepApplnDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepApplnDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmSepAppln((HrmSepApplnHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmSepApplnHdrBean oHrmSepApplnHdrBean = (HrmSepApplnHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butDateApplied");
oDisableList.add("initiatedBy");
oDisableList.add("butSepCat");
oDisableList.add("butReqSepDate");
oDisableList.add("imEffect");
oDisableList.add("withFlag");
oDisableList.add("reason");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butDateApplied");
oDisableList.add("initiatedBy");
oDisableList.add("butSepCat");
oDisableList.add("butReqSepDate");
oDisableList.add("butApplicationNo");
oDisableList.add("butEmployeeNo");
oDisableList.add("employeeNo");
oDisableList.add("withFlag");
oDisableList.add("reason");
oDisableList.add("imEffect");
oDisableList.add("applicationNo");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N")) {
oDisableList.add("butApplicationNo");
if (EnrgiseUtil.checkString(oHrmSepApplnHdrBean.getInitiatedBy())) {
oEnableList.add("butSepCat");
} else {
oDisableList.add("butSepCat");
}
}
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 {
try {
String sHeaderPrimaryKey = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"))
sHeaderPrimaryKey = oHrmFacade.approveSepAppln((HrmSepApplnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sButtonName.equalsIgnoreCase("butReject"))
sHeaderPrimaryKey = oHrmFacade.rejectSepAppln((HrmSepApplnHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,83 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmSepCatMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmSepCatMstQVO;
public class HrmSepCatMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepCatMasterHdrMetaInfo((HrmSepCatMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmSepCatMasterHeaderInfo((HrmSepCatMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmSepCat((HrmSepCatMstHdrBean)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();
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("");
}
}

View File

@@ -0,0 +1,123 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmSepClrEmpHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmSepClrEmpQVO;
public class HrmSepClrEmpBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrEmpHdrMetaInfo((HrmSepClrEmpQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmSepClrEmpHdr((HrmSepClrEmpQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrEmpDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrEmpDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveData((HrmSepClrEmpHdrBean)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 arylstEnab = new ArrayList();
ArrayList arylstDisab = new ArrayList();
arylstDisab.add("butAddRow");
arylstDisab.add("butDelRow");
arylstDisab.add("butDelete");
HrmSepClrEmpHdrBean oHdrBean = (HrmSepClrEmpHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equals("Q"))
arylstDisab.add("butTmplDesc");
if (oThisPageVO.getScreenMode().equals("N")) {
if (oHdrBean.getEmpNo() == null) {
arylstDisab.add("butTmplDesc");
} else {
arylstEnab.add("butTmplDesc");
}
if (oHdrBean.getTmplDesc() != null) {
arylstDisab.add("butEmpNo");
} else {
arylstEnab.add("butEmpNo");
}
}
if (oThisPageVO.getScreenMode().equals("U")) {
arylstDisab.add("butTmplDesc");
arylstDisab.add("butEmpNo");
}
oHashMap.put("E", arylstEnab);
oHashMap.put("D", arylstDisab);
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("");
}
}

View File

@@ -0,0 +1,99 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
public class HrmSepClrLstBD extends HrmBaseBD {
public RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrLstDtlMetaInfo();
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrLstDetailInfo(lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmSepClrLstDetail(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 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();
if (oThisPageVO.getScreenMode().equals("Q")) {
oEnableList.add("butGetDetail");
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
}
if (oThisPageVO.getScreenMode().equals("U") && oThisPageVO.getODetailList().size() == 0) {
oEnableList.add("butGetDetail");
oDisableList.add("butAddRow");
oDisableList.add("butDelRow");
} else if (oThisPageVO.getScreenMode().equals("U") && oThisPageVO.getODetailList().size() > 0) {
oDisableList.add("butGetDetail");
oEnableList.add("butAddRow");
oEnableList.add("butDelRow");
oEnableList.add("butSave");
}
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("");
}
}

View File

@@ -0,0 +1,97 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmSepClrTmplMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmSepClrTmplMstQVO;
public class HrmSepClrTmplMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrTmplMstHdrMetaInfo((HrmSepClrTmplMstQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmSepClrTmplMstHdr((HrmSepClrTmplMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrTmplMstDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepClrTmplMstDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveData((HrmSepClrTmplMstHdrBean)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();
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("");
}
}

View File

@@ -0,0 +1,130 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmSepOrderDtlBean;
import wenrgise.hrms.bean.HrmSepOrderHdrBean;
import wenrgise.hrms.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmSepOrderQVO;
public class HrmSepOrderBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepOrderHdrMetaInfo((HrmSepOrderQVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmSepOrderHdr((HrmSepOrderQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepOrderDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmSepOrderDtl(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmSepOrder((HrmSepOrderHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmSepOrderHdrBean oHrmSepOrderHdrBean = (HrmSepOrderHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q")) {
oDisableList.add("butApprovedBy");
oDisableList.add("remarks");
oDisableList.add("butActSepDate");
}
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U")) {
oDisableList.add("butActSepDate");
oDisableList.add("butApprovedBy");
oDisableList.add("butApplicationNo");
}
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 {
try {
String sHeaderPrimaryKey = null;
Iterator itrBean1 = oDetailBeanArray.iterator();
HrmSepOrderDtlBean oHrmSepOrderDtlBean = null;
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
if (sButtonName.equalsIgnoreCase("butApprove"))
sHeaderPrimaryKey = oHrmFacade.approveSepOrder((HrmSepOrderHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
if (sButtonName.equalsIgnoreCase("butReject"))
sHeaderPrimaryKey = oHrmFacade.rejectSepOrder((HrmSepOrderHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked, this.oUserInfo);
return sHeaderPrimaryKey;
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
}

View File

@@ -0,0 +1,94 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
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.ejb.facade.HrmFacade;
import wenrgise.hrms.ejb.facade.HrmFacadeHome;
import wenrgise.hrms.vo.HrmSettleQueryVO;
public class HrmSettleBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvSetHdrMetaInfo((HrmSettleQueryVO)oQueryVO);
} 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 {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
ArrayList oHeaderList = oHrmFacade.getHrmAdvSetHeaderInfo((HrmSettleQueryVO)oQueryVO, lStartPosition, lLastPosition);
return oHeaderList;
} 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 {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.saveHrmSettleDetail(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 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 RecordMetaInfo getTotalDetailRecordCountImpl(String lPrimaryKey, String sScreenName) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvSetDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmFacadeHome oHome = (HrmFacadeHome)ServiceLocator.getLocator().getService("HrmFacade");
HrmFacade oHrmFacade = oHome.create();
return oHrmFacade.getHrmAdvSetDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
}

View File

@@ -0,0 +1,97 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmTrngCalHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngCalQVO;
public class HrmTrngCalBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCalHeaderMetaInfo((HrmTrngCalQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngCalHeader((HrmTrngCalQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCalDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCalDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmTrngCal((HrmTrngCalHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
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("");
}
}

View File

@@ -0,0 +1,106 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngCalQVO;
public class HrmTrngCalCloseBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCalHeaderMetaInfo((HrmTrngCalQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngCalHeader((HrmTrngCalQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCalDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCalDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 getInsertDataImpl(BaseQueryVO oQueryVO) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return "Only Implementation";
}
public String saveImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
return null;
}
public Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oHashMap = new HashMap();
ArrayList oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
oDisableList.add("butHelp");
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 null;
}
public void calClose(String sButtonName, String sCalId) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
if (sButtonName.equals("CalClose"))
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
oHrmSecondFacade.calendarClose(sCalId);
} catch (CreateException oCrtExcep) {
throw new EnrgiseSystemException(oCrtExcep);
}
}
}

View File

@@ -0,0 +1,109 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmTrngCrsBudHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngCrsBudQVO;
public class HrmTrngCrsBudBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCrsBudHeaderMetaInfo((HrmTrngCrsBudQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngCrsBudHeader((HrmTrngCrsBudQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCrsBudDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCrsBudDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmTrngCrsBud((HrmTrngCrsBudHdrBean)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 oEnableList = new ArrayList();
ArrayList oDisableList = new ArrayList();
HrmTrngCrsBudHdrBean oHrmTrngCrsBudHdrBean = (HrmTrngCrsBudHdrBean)oThisPageVO.getOHeaderBean();
oDisableList.add("butDelete");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("Q"))
oDisableList.add("approvedBudget");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("U"))
oEnableList.add("approvedBudget");
if (oThisPageVO.getScreenMode().equalsIgnoreCase("N"))
oEnableList.add("approvedBudget");
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("");
}
}

View File

@@ -0,0 +1,97 @@
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.RecordMetaInfo;
import wenrgise.common.vo.BaseQueryVO;
import wenrgise.common.vo.ThisPageVO;
import wenrgise.ejb.common.utility.ServiceLocator;
import wenrgise.hrms.bean.HrmTrngCrsMstHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngCrsMstQVO;
public class HrmTrngCrsMstBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCrsHeaderMetaInfo((HrmTrngCrsMstQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngCrsHeader((HrmTrngCrsMstQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngCrsDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngcrsDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmTrngCrs((HrmTrngCrsMstHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
} 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();
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("");
}
}

View File

@@ -0,0 +1,117 @@
package wenrgise.hrms.businessdelegate;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
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.HrmTrngEmpAttDtlBean;
import wenrgise.hrms.bean.HrmTrngEmpAttHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngEmpAttQVO;
public class HrmTrngEmpAttBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpAttHeaderMetaInfo((HrmTrngEmpAttQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngEmpAttHeader((HrmTrngEmpAttQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpAttDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpAttDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmTrngEmpAtt((HrmTrngEmpAttHdrBean)oBaseHeaderBean, oWhenPicked, sScreenName, sScreenMode, bHeaderDataChanged, oDetailBeanArray, bDetailDataChanged, oDetailPicked);
} 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 oMap = new HashMap();
ArrayList arylstDisbledFields = new ArrayList();
ArrayList arylstEnabledFields = new ArrayList();
arylstDisbledFields.add("butInsert");
arylstDisbledFields.add("butAddRow");
if (oThisPageVO.getODetailList() != null) {
Iterator oIt = oThisPageVO.getODetailList().iterator();
while (oIt.hasNext()) {
HrmTrngEmpAttDtlBean oDtlBean = oIt.next();
if (oDtlBean.getTxtAttendance().equals("Y")) {
oDtlBean.setDisabtxtReasonForAbsence("true");
oDtlBean.setTxtReasonForAbsence("");
continue;
}
oDtlBean.setDisabtxtReasonForAbsence("false");
}
}
oMap.put("D", arylstDisbledFields);
oMap.put("E", arylstEnabledFields);
return oMap;
}
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("");
}
}

View File

@@ -0,0 +1,123 @@
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.HrmTrngEmpFeedBackHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngEmpFbkQVO;
public class HrmTrngEmpFeedBackBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpFbkHeaderMetaInfo((HrmTrngEmpFbkQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngEmpFbkHeader((HrmTrngEmpFbkQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpFdBkDtlMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpFdBkDetailInfo(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.saveHrmEmpFeedback(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();
HrmTrngEmpFeedBackHdrBean oHrmTrngEmpFeedBackHdrBean = (HrmTrngEmpFeedBackHdrBean)oThisPageVO.getOHeaderBean();
ArrayList oDetailList = oThisPageVO.getODetailList();
if (!oHrmTrngEmpFeedBackHdrBean.equals(null))
if (EnrgiseUtil.checkString(oHrmTrngEmpFeedBackHdrBean.getStatusFlag())) {
System.out.println(oHrmTrngEmpFeedBackHdrBean.getStatusFlag());
if (oHrmTrngEmpFeedBackHdrBean.getStatusFlag().equalsIgnoreCase("C")) {
arylstDisableList.add("txtCourseObjective");
arylstDisableList.add("txtCourseDuration");
arylstDisableList.add("txtCourseMaterial");
arylstDisableList.add("txtSkillArea");
arylstDisableList.add("txtInteraction");
arylstDisableList.add("txtPresentation");
arylstDisableList.add("txtDeliveryClarity");
arylstDisableList.add("txtTrainingAids");
arylstDisableList.add("txtTrainingArrangements");
arylstDisableList.add("txtOverallRating");
arylstDisableList.add("txtTopicsRelevant");
arylstDisableList.add("txtTopicsIrrelevant");
arylstDisableList.add("txtSuggestions");
}
}
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("");
}
}

View File

@@ -0,0 +1,106 @@
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.HrmTrngEmpHistHdrBean;
import wenrgise.hrms.ejb.facade.HrmSecondFacade;
import wenrgise.hrms.ejb.facade.HrmSecondFacadeHome;
import wenrgise.hrms.vo.HrmTrngEmpHistQVO;
public class HrmTrngEmpHistBD extends HrmBaseBD {
public RecordMetaInfo getHeaderMetaImpl(BaseQueryVO oQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpHistHeaderMetaInfo((HrmTrngEmpHistQVO)oQueryVO);
} 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 {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
ArrayList oHeaderList = oHrmSecondFacade.getHrmTrngEmpHistHeader((HrmTrngEmpHistQVO)oQueryVO, lStartPosition, lLastPosition);
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 {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpHistDetailMetaInfo(lPrimaryKey);
} catch (RemoteException oRe) {
throw new EnrgiseSystemException(oRe);
} catch (CreateException oCrt) {
throw new EnrgiseSystemException(oCrt);
}
}
public ArrayList getDetailRecordImpl(String lPrimaryKey, String sScreenName, long lAbsoluteStart, long lAbsoluteEnd) throws RemoteException, EnrgiseApplicationException, EnrgiseSystemException {
try {
HrmSecondFacadeHome oHome = (HrmSecondFacadeHome)ServiceLocator.getLocator().getService("HrmSecondFacade");
HrmSecondFacade oHrmSecondFacade = oHome.create();
return oHrmSecondFacade.getHrmTrngEmpHistDetail(lPrimaryKey, lAbsoluteStart, lAbsoluteEnd);
} 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 Map getDisabledFieldsImpl(ThisPageVO oThisPageVO) throws EnrgiseApplicationException, EnrgiseSystemException {
HashMap oMap = new HashMap();
ArrayList arylstDisbledFields = new ArrayList();
ArrayList arylstEnabledFields = new ArrayList();
arylstDisbledFields.add("butInsert");
HrmTrngEmpHistHdrBean oHrmTrngEmpHistHdrBean = (HrmTrngEmpHistHdrBean)oThisPageVO.getOHeaderBean();
if (oThisPageVO.getScreenMode().equals("Q"))
if (!EnrgiseUtil.checkString(oHrmTrngEmpHistHdrBean.getCalendarName())) {
arylstDisbledFields.add("butCourse");
arylstDisbledFields.add("butEmpNo");
} else {
arylstEnabledFields.add("butCourse");
arylstEnabledFields.add("butEmpNo");
}
oMap.put("D", arylstDisbledFields);
oMap.put("E", arylstEnabledFields);
return oMap;
}
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("");
}
}

Some files were not shown because too many files have changed in this diff Show More