package wenrgise.hrms.ejb.business;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import wenrgise.common.bean.BaseHeaderBean;
import wenrgise.common.bean.LOVBean;
import wenrgise.common.exception.EnrgiseApplicationException;
import wenrgise.common.exception.EnrgiseSystemException;
import wenrgise.common.utility.EnrgiseUtil;
import wenrgise.common.utility.RecordMetaInfo;
import wenrgise.common.utility.UserInfo;
import wenrgise.common.vo.BaseDetailVO;
import wenrgise.common.vo.BaseHeaderVO;
import wenrgise.common.vo.LovQueryVO;
import wenrgise.common.vo.LovVO;
import wenrgise.ejb.common.helper.DBObject;
import wenrgise.ejb.common.helper.QueryRow;
import wenrgise.ejb.common.helper.QueryValue;
import wenrgise.ejb.common.utility.DBUtilitiesBean;
import wenrgise.hrms.bean.HrmTrngEmpHistDtlBean;
import wenrgise.hrms.bean.HrmTrngEmpHistHdrBean;
import wenrgise.hrms.vo.HrmTrngEmpHistQVO;

public class HrmTrngEmpHistBO extends HrmBaseBO {
  public HrmTrngEmpHistBO() {}
  
  public HrmTrngEmpHistBO(UserInfo oUserInfo) {
    super(oUserInfo);
  }
  
  public RecordMetaInfo getHrmTrngEmpHistHdrMetaInfo(HrmTrngEmpHistQVO oHrmTrngEmpHistQVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    ArrayList oParameters = new ArrayList();
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    Timestamp oWhenPicked = null;
    int count = 0;
    BaseHeaderVO oBaseHeaderVO = new BaseHeaderVO();
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, 12, oHrmTrngEmpHistQVO.getHeaderPrimaryKey()));
    oParameters.add(new DBObject(2, 1, 12, oHrmTrngEmpHistQVO.getEmpNo()));
    oParameters.add(new DBObject(3, 1, 12, oHrmTrngEmpHistQVO.getCalendarName()));
    oParameters.add(new DBObject(4, 1, 12, oHrmTrngEmpHistQVO.getCourse()));
    oParameters.add(new DBObject(5, 2, -5));
    oParameters.add(new DBObject(6, 2, 93));
    oParameters.add(new DBObject(7, 2, 12));
    oParameters.add(new DBObject(8, 2, 12));
    oParameters.add(new DBObject(9, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_HrEmpTrngHisHdrCount(?,?,?,?,?,?,?,?,?)");
    RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
    DBObject oTimeObject = oOutArray.get(1);
    oRecordMetaInfo.setOWhenPicked((Timestamp)oTimeObject.getObject());
    DBObject oTotalRecord = oOutArray.get(0);
    oRecordMetaInfo.setRecordCount(((Long)oTotalRecord.getObject()).longValue());
    return oRecordMetaInfo;
  }
  
  public ArrayList getHrmTrngEmpHistHeaderInfo(HrmTrngEmpHistQVO oHrmTrngEmpHistQVO, long lStartPosition, long lLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    ArrayList oParameters = new ArrayList();
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    Timestamp oWhenPicked = null;
    int count = 0;
    BaseHeaderVO oBaseHeaderVO = new BaseHeaderVO();
    ArrayList oHeaderList = null;
    if (oHrmTrngEmpHistQVO == null)
      oHrmTrngEmpHistQVO = new HrmTrngEmpHistQVO(); 
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, -5, new Long(lStartPosition)));
    oParameters.add(new DBObject(2, 1, -5, new Long(lLastPosition)));
    oParameters.add(new DBObject(3, 1, 12, oHrmTrngEmpHistQVO.getHeaderPrimaryKey()));
    oParameters.add(new DBObject(4, 1, 12, oHrmTrngEmpHistQVO.getEmpNo()));
    oParameters.add(new DBObject(5, 1, 12, oHrmTrngEmpHistQVO.getCalendarName()));
    oParameters.add(new DBObject(6, 1, 12, oHrmTrngEmpHistQVO.getCourse()));
    oParameters.add(new DBObject(7, 2, -10));
    oParameters.add(new DBObject(8, 2, 12));
    oParameters.add(new DBObject(9, 2, 12));
    oParameters.add(new DBObject(10, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_HrEmpTrngHisHdr(?,?,?,?,?,?,?,?,?,?)");
    DBObject oOutObject = oOutArray.get(0);
    ArrayList oList = (ArrayList)oOutObject.getObject();
    if (oList.size() == 0)
      throw new EnrgiseApplicationException("wenrgise.hrms.norecordfound", "M"); 
    QueryRow oRow = null;
    HashMap oColumns = null;
    Iterator oIt = oList.iterator();
    SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
    while (oIt.hasNext()) {
      if (count == 0)
        oHeaderList = new ArrayList(); 
      count++;
      oRow = oIt.next();
      HrmTrngEmpHistHdrBean oHrmTrngEmpHistHdrBean = new HrmTrngEmpHistHdrBean();
      oHrmTrngEmpHistHdrBean.setHeaderPrimaryKey(oRow.get("CAL_DTL_ID").getString());
      oHrmTrngEmpHistHdrBean.setCalendarName(oRow.get("CAL_NAME").getString());
      oHrmTrngEmpHistHdrBean.setCourse(oRow.get("CRS_NAME").getString());
      oHrmTrngEmpHistHdrBean.setEmpNoId(oRow.get("sEmpId").getString());
      oHrmTrngEmpHistHdrBean.setCalId(oRow.get("calDtlId").getString());
      oHrmTrngEmpHistHdrBean.setInstitutionName(oRow.get("INST_NAME").getString());
      oHrmTrngEmpHistHdrBean.setFromDate(EnrgiseUtil.convertToString(oRow.get("START_DATE").getDate()));
      oHrmTrngEmpHistHdrBean.setToDate(EnrgiseUtil.convertToString(oRow.get("END_DATE").getDate()));
      oHeaderList.add(oHrmTrngEmpHistHdrBean);
    } 
    return oHeaderList;
  }
  
  public RecordMetaInfo getHrmTrngEmpHistDetailMetaInfo(String lPrimaryKey) throws EnrgiseApplicationException, EnrgiseSystemException {
    ArrayList oParameters = new ArrayList();
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, 12, lPrimaryKey));
    oParameters.add(new DBObject(2, 2, -5));
    oParameters.add(new DBObject(3, 2, 93));
    oParameters.add(new DBObject(4, 2, 12));
    oParameters.add(new DBObject(5, 2, 12));
    oParameters.add(new DBObject(6, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_HrEmpTrngHisDtlCount(?,?,?,?,?,?)");
    RecordMetaInfo oRecordMetaInfo = new RecordMetaInfo();
    DBObject oTotalRecord = oOutArray.get(0);
    oRecordMetaInfo.setRecordCount(((Long)oTotalRecord.getObject()).longValue());
    DBObject oTimeObject = oOutArray.get(1);
    oRecordMetaInfo.setOWhenPicked((Timestamp)oTimeObject.getObject());
    return oRecordMetaInfo;
  }
  
  public ArrayList getHrmTrngEmpHistDetail(String lPrimaryKey, long lDetailFirstPosition, long lDetailLastPosition) throws EnrgiseApplicationException, EnrgiseSystemException {
    ArrayList oParameters = new ArrayList();
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    int count = 0;
    BaseDetailVO oBaseDetailVO = null;
    ArrayList oHrmTrngEmpHistDetail = null;
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, -5, new Long(lDetailFirstPosition)));
    oParameters.add(new DBObject(2, 1, -5, new Long(lDetailLastPosition)));
    oParameters.add(new DBObject(3, 1, 12, lPrimaryKey));
    oParameters.add(new DBObject(4, 2, -10));
    oParameters.add(new DBObject(5, 2, 12));
    oParameters.add(new DBObject(6, 2, 12));
    oParameters.add(new DBObject(7, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_HrEmpTrngHisDtlInfo(?,?,?,?,?,?,?)");
    DBObject oOutObject = oOutArray.get(0);
    ArrayList oList = (ArrayList)oOutObject.getObject();
    if (oList.size() == 0)
      throw new EnrgiseApplicationException("wenrgise.hrms.norecordfound", "M"); 
    QueryRow oRow = null;
    QueryValue oValue = null;
    HashMap oColumns = null;
    Iterator oIt = oList.iterator();
    while (oIt.hasNext()) {
      if (count == 0)
        oHrmTrngEmpHistDetail = new ArrayList(); 
      count++;
      oRow = oIt.next();
      HrmTrngEmpHistDtlBean oHrmTrngEmpHistDtlBean = new HrmTrngEmpHistDtlBean();
      oHrmTrngEmpHistDtlBean.setDetailId(oRow.get("ID").getString());
      oHrmTrngEmpHistDtlBean.setTxtEmployeeNo(oRow.get("EMP_NO").getString());
      oHrmTrngEmpHistDtlBean.setEmpId(oRow.get("sEmpId").getString());
      oHrmTrngEmpHistDtlBean.setCalId(oRow.get("calDtlId").getString());
      oHrmTrngEmpHistDtlBean.setTxtName(oRow.get("EMPNAME").getString());
      oHrmTrngEmpHistDtlBean.setTxtReasonForNonParticipation(oRow.get("NONPART_REASON").getString());
      oHrmTrngEmpHistDtlBean.setTxtRating(oRow.get("EMPLOYEE_RATING").getString());
      oHrmTrngEmpHistDtlBean.setTxtParticipation(oRow.get("NONPART_FLAG").getString());
      oHrmTrngEmpHistDetail.add(oHrmTrngEmpHistDtlBean);
    } 
    return oHrmTrngEmpHistDetail;
  }
  
  public LovVO getHrmEmpHistEmpLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    LovVO oLovVO = new LovVO();
    ArrayList arylstHeaderNames = new ArrayList();
    arylstHeaderNames.add("Employee Id");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.employeeNo");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.employeeName");
    oLovVO.setHeaderList(arylstHeaderNames);
    ArrayList arylstVisibility = new ArrayList();
    arylstVisibility.add("H");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    oLovVO.setVisibilityList(arylstVisibility);
    int count = 0;
    ArrayList oParameters = new ArrayList();
    String sQuerySearch1 = new String();
    String sQuerySearch2 = new String();
    if (oLovQueryVO.getSearchField1() != null) {
      sQuerySearch1 = oLovQueryVO.getSearchField1();
      System.out.println(sQuerySearch1);
    } 
    if (oLovQueryVO.getSearchField2() != null) {
      sQuerySearch2 = oLovQueryVO.getSearchField2();
      System.out.println(sQuerySearch2);
    } 
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, 12, sQuerySearch1));
    oParameters.add(new DBObject(2, 1, 12, sQuerySearch2));
    oParameters.add(new DBObject(3, 2, -10));
    oParameters.add(new DBObject(4, 2, 12));
    oParameters.add(new DBObject(5, 2, 12));
    oParameters.add(new DBObject(6, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_GetTrngempHistEmpLOV(?,?,?,?,?,?)");
    DBObject oOutObject = oOutArray.get(0);
    ArrayList oList = (ArrayList)oOutObject.getObject();
    QueryRow oRow = null;
    Iterator iter = oList.iterator();
    while (iter.hasNext()) {
      if (count == 0)
        oList = new ArrayList(); 
      count++;
      oRow = iter.next();
      LOVBean oLOVBean = new LOVBean();
      oLOVBean.setDetailField1(oRow.get("ID").getString());
      oLOVBean.setDetailField2(oRow.get("EMP_NO").getString());
      oLOVBean.setDetailField3(oRow.get("EMP_NAME").getString());
      oList.add(oLOVBean);
    } 
    oLovVO.setDetailList(oList);
    return oLovVO;
  }
  
  public LovVO getHrmEmpHistCrsLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    LovVO oLovVO = new LovVO();
    ArrayList arylstHeaderNames = new ArrayList();
    arylstHeaderNames.add("Calendar Id");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.calendarName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.courseName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.instName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.startDate");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.endDate");
    oLovVO.setHeaderList(arylstHeaderNames);
    ArrayList arylstVisibility = new ArrayList();
    arylstVisibility.add("H");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    oLovVO.setVisibilityList(arylstVisibility);
    int count = 0;
    ArrayList oParameters = new ArrayList();
    String sQuerySearch1 = new String();
    String sQuerySearch2 = new String();
    String loginUserId = "102313";
    String sCalName = new String();
    if (oLovQueryVO.getProperty("calendarName") != null)
      sCalName = oLovQueryVO.getProperty("calendarName"); 
    if (oLovQueryVO.getSearchField1() != null) {
      sQuerySearch1 = oLovQueryVO.getSearchField1();
      System.out.println(sQuerySearch1);
    } 
    if (oLovQueryVO.getSearchField2() != null) {
      sQuerySearch2 = oLovQueryVO.getSearchField2();
      System.out.println(sQuerySearch2);
    } 
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, 12, loginUserId));
    oParameters.add(new DBObject(2, 1, 12, sQuerySearch1));
    oParameters.add(new DBObject(3, 1, 12, sQuerySearch2));
    oParameters.add(new DBObject(4, 1, 12, sCalName));
    oParameters.add(new DBObject(5, 2, -10));
    oParameters.add(new DBObject(6, 2, 12));
    oParameters.add(new DBObject(7, 2, 12));
    oParameters.add(new DBObject(8, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_GetTrngempHistCrsLOV(?,?,?,?,?,?,?,?)");
    DBObject oOutObject = oOutArray.get(0);
    ArrayList oList = (ArrayList)oOutObject.getObject();
    QueryRow oRow = null;
    Iterator iter = oList.iterator();
    while (iter.hasNext()) {
      if (count == 0)
        oList = new ArrayList(); 
      count++;
      oRow = iter.next();
      LOVBean oLOVBean = new LOVBean();
      oLOVBean.setDetailField1(oRow.get("ID").getString());
      oLOVBean.setDetailField2(oRow.get("cal_name").getString());
      oLOVBean.setDetailField3(oRow.get("crs_name").getString());
      oLOVBean.setDetailField4(oRow.get("inst_name").getString());
      oLOVBean.setDetailField5(EnrgiseUtil.convertToString(oRow.get("START_DATE").getDate()));
      oLOVBean.setDetailField6(EnrgiseUtil.convertToString(oRow.get("END_DATE").getDate()));
      oList.add(oLOVBean);
    } 
    oLovVO.setDetailList(oList);
    return oLovVO;
  }
  
  public LovVO getHrmEmpHistCalLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    LovVO oLovVO = new LovVO();
    ArrayList arylstHeaderNames = new ArrayList();
    arylstHeaderNames.add("Calendar Id");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.calendarName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.startDate");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.endDate");
    oLovVO.setHeaderList(arylstHeaderNames);
    ArrayList arylstVisibility = new ArrayList();
    arylstVisibility.add("H");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    oLovVO.setVisibilityList(arylstVisibility);
    int count = 0;
    ArrayList oParameters = new ArrayList();
    String sQuerySearch1 = new String();
    String sQuerySearch2 = new String();
    if (oLovQueryVO.getSearchField1() != null) {
      sQuerySearch1 = oLovQueryVO.getSearchField1();
      System.out.println(sQuerySearch1);
    } 
    if (oLovQueryVO.getSearchField2() != null) {
      sQuerySearch2 = oLovQueryVO.getSearchField2();
      System.out.println(sQuerySearch2);
    } 
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, 12, sQuerySearch1));
    oParameters.add(new DBObject(2, 1, 12, sQuerySearch2));
    oParameters.add(new DBObject(3, 2, -10));
    oParameters.add(new DBObject(4, 2, 12));
    oParameters.add(new DBObject(5, 2, 12));
    oParameters.add(new DBObject(6, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_GetTrngempHistCalLOV(?,?,?,?,?,?)");
    DBObject oOutObject = oOutArray.get(0);
    ArrayList oList = (ArrayList)oOutObject.getObject();
    QueryRow oRow = null;
    Iterator iter = oList.iterator();
    while (iter.hasNext()) {
      if (count == 0)
        oList = new ArrayList(); 
      count++;
      oRow = iter.next();
      LOVBean oLOVBean = new LOVBean();
      oLOVBean.setDetailField1(oRow.get("ID").getString());
      oLOVBean.setDetailField2(oRow.get("NAME").getString());
      oLOVBean.setDetailField3(EnrgiseUtil.convertToString(oRow.get("START_DATE").getDate()));
      oLOVBean.setDetailField4(EnrgiseUtil.convertToString(oRow.get("END_DATE").getDate()));
      oList.add(oLOVBean);
    } 
    oLovVO.setDetailList(oList);
    return oLovVO;
  }
  
  public LovVO getHrmAttendanceDtlLOV(LovQueryVO oLovQueryVO) throws EnrgiseApplicationException, EnrgiseSystemException {
    LovVO oLovVO = new LovVO();
    ArrayList arylstHeaderNames = new ArrayList();
    arylstHeaderNames.add("hrm.HrmEmpTrngHist.empNo");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.calendarName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.CourseCode");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.CourseName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.InstName");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.TrainDate");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.presentlag");
    arylstHeaderNames.add("hrm.HrmEmpTrngHistForm.nonpartReason");
    oLovVO.setHeaderList(arylstHeaderNames);
    ArrayList arylstVisibility = new ArrayList();
    arylstVisibility.add("V");
    arylstVisibility.add("H");
    arylstVisibility.add("H");
    arylstVisibility.add("H");
    arylstVisibility.add("H");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    arylstVisibility.add("V");
    oLovVO.setVisibilityList(arylstVisibility);
    int count = 0;
    ArrayList oParameters = new ArrayList();
    String sEmpId = new String();
    String sCalDtlId = new String();
    if (oLovQueryVO.getProperty("empId") != null)
      sEmpId = oLovQueryVO.getProperty("empId"); 
    if (oLovQueryVO.getProperty("calId") != null)
      sCalDtlId = oLovQueryVO.getProperty("calId"); 
    DBUtilitiesBean oBean = new DBUtilitiesBean();
    oParameters = new ArrayList();
    oParameters.add(new DBObject(1, 1, 12, sEmpId));
    oParameters.add(new DBObject(2, 1, 12, sCalDtlId));
    oParameters.add(new DBObject(3, 2, -10));
    oParameters.add(new DBObject(4, 2, 12));
    oParameters.add(new DBObject(5, 2, 12));
    oParameters.add(new DBObject(6, 2, 4));
    ArrayList oOutArray = oBean.callProc(oParameters, "HRMEMPTRNGHIS.proc_GetHrmTrngHisAttLOVdata(?,?,?,?,?,?)");
    DBObject oOutObject = oOutArray.get(0);
    ArrayList oList = (ArrayList)oOutObject.getObject();
    QueryRow oRow = null;
    Iterator iter = oList.iterator();
    while (iter.hasNext()) {
      if (count == 0)
        oList = new ArrayList(); 
      count++;
      oRow = iter.next();
      LOVBean oLOVBean = new LOVBean();
      oLOVBean.setDetailField1(oRow.get("EMP_NO").getString());
      oLOVBean.setDetailField2(oRow.get("CAL_NAME").getString());
      oLOVBean.setDetailField3(oRow.get("CRS_CODE").getString());
      oLOVBean.setDetailField4(oRow.get("CRS_NAME").getString());
      oLOVBean.setDetailField5(oRow.get("INST_NAME").getString());
      oLOVBean.setDetailField6(EnrgiseUtil.convertToString(oRow.get("TRAIN_DATE").getDate()));
      oLOVBean.setDetailField7(oRow.get("PRESENT_FLAG").getString());
      oLOVBean.setDetailField8(oRow.get("NONPART_REASON").getString());
      oList.add(oLOVBean);
    } 
    oLovVO.setDetailList(oList);
    return oLovVO;
  }
  
  public void initializeBOImpl() {
    this.headerTable = "";
  }
  
  public void saveDetailImpl(String sHeaderPrimaryKey, String sScreenName, ArrayList oDetailBeanArray) throws EnrgiseSystemException {
    System.out.println("Save Ille!");
  }
  
  public void updateHeaderImpl(BaseHeaderBean oBaseHeaderBean) throws EnrgiseSystemException {
    System.out.println("Update ille!");
  }
  
  public String saveHeaderImpl(BaseHeaderBean oBaseHeaderBean, String param1) throws EnrgiseSystemException {
    return "saveHeaderImpl toBeDone";
  }
  
  public String saveNewHeaderImpl(BaseHeaderBean oBaseHeaderBean) throws EnrgiseSystemException {
    return "saveNewHeaderImpl ille!";
  }
  
  public void additionalFieldValidationImpl(BaseHeaderBean oBaseHeaderBean, Timestamp oWhenPicked, String sScreenName, String sScreenMode, boolean bHeaderDataChanged, ArrayList oDetailBeanArray, boolean bDetailDataChanged, Timestamp oDetailPicked) throws EnrgiseApplicationException, EnrgiseSystemException {
    ArrayList oErrorList = new ArrayList();
    if (bHeaderDataChanged)
      if (!sScreenMode.equalsIgnoreCase("D")); 
    reportError(oErrorList);
  }
  
  public void additionalTimestampValidationImpl(BaseHeaderBean param1, Timestamp param2, String param3, String param4, boolean param5, ArrayList param6, boolean param7, Timestamp param8) {}
  
  public void additionalBusinessValidationImpl(BaseHeaderBean param1, Timestamp param2, String param3, String param4, boolean param5, ArrayList param6, boolean param7, Timestamp param8) {}
}
