package WEB-INF.classes.wenrgise.hrms.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import wenrgise.common.bean.BaseHeaderBean;
import wenrgise.hrms.bean.HrmLvApplnDtlBean;

public class HrmLvApplnHdrBean extends BaseHeaderBean implements Serializable {
  private String employeeNumber;
  
  private String firstName;
  
  private String middleName;
  
  private String lastName;
  
  private String designation;
  
  private String scaleOfPay;
  
  private String leaveCodes;
  
  private String description;
  
  private String dateApplied;
  
  private String fromAppDate;
  
  private String toAppDate;
  
  private String days;
  
  private String purpose;
  
  private String statusOfLeaves;
  
  private String remarks;
  
  private String address;
  
  private String phone;
  
  private String employeeId;
  
  private String leaveTypeId;
  
  private String buttonName;
  
  private String department;
  
  private String siteId;
  
  private String[] txtDate;
  
  private String[] txtHolidayFlag;
  
  private String[] txtHalfDayFlag;
  
  private ArrayList detailArray;
  
  private String userId;
  
  String transId;
  
  String transacId;
  
  private String grade;
  
  private String location;
  
  private String ltaAmount;
  
  private String optedFor;
  
  private String ltaFlag;
  
  private String fromYear;
  
  private String itPercentage;
  
  private String eligAmount;
  
  private String medFlag;
  
  public String getEmployeeNumber() {
    return this.employeeNumber;
  }
  
  public void setEmployeeNumber(String newEmployeeNumber) {
    this.employeeNumber = newEmployeeNumber;
  }
  
  public String getFirstName() {
    return this.firstName;
  }
  
  public void setFirstName(String newFirstName) {
    this.firstName = newFirstName;
  }
  
  public String getMiddleName() {
    return this.middleName;
  }
  
  public void setMiddleName(String newMiddleName) {
    this.middleName = newMiddleName;
  }
  
  public String getLastName() {
    return this.lastName;
  }
  
  public void setLastName(String newLastName) {
    this.lastName = newLastName;
  }
  
  public String getDesignation() {
    return this.designation;
  }
  
  public void setDesignation(String newDesignation) {
    this.designation = newDesignation;
  }
  
  public String getScaleOfPay() {
    return this.scaleOfPay;
  }
  
  public void setScaleOfPay(String newScaleOfPay) {
    this.scaleOfPay = newScaleOfPay;
  }
  
  public String getLeaveCodes() {
    return this.leaveCodes;
  }
  
  public void setLeaveCodes(String newLeaveCodes) {
    this.leaveCodes = newLeaveCodes;
  }
  
  public String getDescription() {
    return this.description;
  }
  
  public void setDescription(String newDescription) {
    this.description = newDescription;
  }
  
  public String getDateApplied() {
    return this.dateApplied;
  }
  
  public void setDateApplied(String newDateApplied) {
    this.dateApplied = newDateApplied;
  }
  
  public String getFromAppDate() {
    return this.fromAppDate;
  }
  
  public void setFromAppDate(String newFromAppDate) {
    this.fromAppDate = newFromAppDate;
  }
  
  public String getToAppDate() {
    return this.toAppDate;
  }
  
  public void setToAppDate(String newToAppDate) {
    this.toAppDate = newToAppDate;
  }
  
  public String getDays() {
    return this.days;
  }
  
  public void setDays(String newDays) {
    this.days = newDays;
  }
  
  public String getPurpose() {
    return this.purpose;
  }
  
  public void setPurpose(String newPurpose) {
    this.purpose = newPurpose;
  }
  
  public String getStatusOfLeaves() {
    return this.statusOfLeaves;
  }
  
  public void setStatusOfLeaves(String newStatusOfLeaves) {
    this.statusOfLeaves = newStatusOfLeaves;
  }
  
  public String getRemarks() {
    return this.remarks;
  }
  
  public void setRemarks(String newRemarks) {
    this.remarks = newRemarks;
  }
  
  public String getAddress() {
    return this.address;
  }
  
  public void setAddress(String newAddress) {
    this.address = newAddress;
  }
  
  public String getPhone() {
    return this.phone;
  }
  
  public void setPhone(String newPhone) {
    this.phone = newPhone;
  }
  
  public String getEmployeeId() {
    return this.employeeId;
  }
  
  public void setEmployeeId(String newEmployeeId) {
    this.employeeId = newEmployeeId;
  }
  
  public String getLeaveTypeId() {
    return this.leaveTypeId;
  }
  
  public void setLeaveTypeId(String newLeaveTypeId) {
    this.leaveTypeId = newLeaveTypeId;
  }
  
  public String getButtonName() {
    return this.buttonName;
  }
  
  public void setButtonName(String newButtonName) {
    this.buttonName = newButtonName;
  }
  
  public String getDepartment() {
    return this.department;
  }
  
  public void setDepartment(String newDepartment) {
    this.department = newDepartment;
  }
  
  public String getSiteId() {
    return this.siteId;
  }
  
  public void setSiteId(String newSiteId) {
    this.siteId = newSiteId;
  }
  
  public String[] getTxtDate() {
    return this.txtDate;
  }
  
  public void setTxtDate(String[] newTxtDate) {
    this.txtDate = newTxtDate;
  }
  
  public String[] getTxtHolidayFlag() {
    return this.txtHolidayFlag;
  }
  
  public void setTxtHolidayFlag(String[] newTxtHolidayFlag) {
    this.txtHolidayFlag = newTxtHolidayFlag;
  }
  
  public String[] getTxtHalfDayFlag() {
    return this.txtHalfDayFlag;
  }
  
  public void setTxtHalfDayFlag(String[] newTxtHalfDayFlag) {
    this.txtHalfDayFlag = newTxtHalfDayFlag;
  }
  
  public ArrayList getDetailArray() {
    this.detailArray = new ArrayList();
    for (int iIndex = 0; iIndex < this.txtDate.length; iIndex++) {
      HrmLvApplnDtlBean oDtlBean = new HrmLvApplnDtlBean();
      oDtlBean.setTxtDate(this.txtDate[iIndex]);
      oDtlBean.setTxtHolidayFlag(this.txtHolidayFlag[iIndex]);
      oDtlBean.setTxtHalfDayFlag(this.txtHalfDayFlag[iIndex]);
      this.detailArray.add(oDtlBean);
    } 
    return this.detailArray;
  }
  
  public void setDetailArray(ArrayList detailArray) {
    int iIndex = 0;
    if (detailArray != null) {
      Iterator itrDetailArray = detailArray.iterator();
      while (itrDetailArray.hasNext()) {
        HrmLvApplnDtlBean oDtlBean = itrDetailArray.next();
        this.txtDate[iIndex] = oDtlBean.getTxtDate();
        this.txtHolidayFlag[iIndex] = oDtlBean.getTxtHolidayFlag();
        this.txtHalfDayFlag[iIndex] = oDtlBean.getTxtHalfDayFlag();
        iIndex++;
      } 
    } 
  }
  
  public String getUserId() {
    return this.userId;
  }
  
  public void setUserId(String newUserId) {
    this.userId = newUserId;
  }
  
  public String getTransId() {
    return this.transId;
  }
  
  public void setTransId(String newTransId) {
    this.transId = newTransId;
  }
  
  public String getTransacId() {
    return this.transacId;
  }
  
  public void setTransacId(String newTransacId) {
    this.transacId = newTransacId;
  }
  
  public String getGrade() {
    return this.grade;
  }
  
  public void setGrade(String newGrade) {
    this.grade = newGrade;
  }
  
  public String getLocation() {
    return this.location;
  }
  
  public void setLocation(String newLocation) {
    this.location = newLocation;
  }
  
  public String getLtaAmount() {
    return this.ltaAmount;
  }
  
  public void setLtaAmount(String newLtaAmount) {
    this.ltaAmount = newLtaAmount;
  }
  
  public String getOptedFor() {
    return this.optedFor;
  }
  
  public void setOptedFor(String newOptedFor) {
    this.optedFor = newOptedFor;
  }
  
  public String getLtaFlag() {
    return this.ltaFlag;
  }
  
  public void setFromYear(String newFromYear) {
    this.fromYear = newFromYear;
  }
  
  public String getFromYear() {
    return this.fromYear;
  }
  
  public void setLtaFlag(String newLtaFlag) {
    this.ltaFlag = newLtaFlag;
  }
  
  public String getItPercentage() {
    return this.itPercentage;
  }
  
  public void setItPercentage(String newItPercentage) {
    this.itPercentage = newItPercentage;
  }
  
  public String getEligAmount() {
    return this.eligAmount;
  }
  
  public void setEligAmount(String newEligAmount) {
    this.eligAmount = newEligAmount;
  }
  
  public String getMedFlag() {
    return this.medFlag;
  }
  
  public void setMedFlag(String newMedFlag) {
    this.medFlag = newMedFlag;
  }
}
