/* * Created on 12/Nov/2003 * */ package net.sourceforge.fenixedu.dataTransferObject.guide.reimbursementGuide; import java.util.Calendar; import net.sourceforge.fenixedu.dataTransferObject.InfoEmployee; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.domain.gratuity.ReimbursementGuideState; import net.sourceforge.fenixedu.domain.reimbursementGuide.ReimbursementGuideSituation; import net.sourceforge.fenixedu.util.State; /** * * * This class contains all the information regarding a Reimbursement Guide.
* * @author Joćo Mota * */ public class InfoReimbursementGuideSituation extends InfoObject { protected State state; protected InfoReimbursementGuide infoReimbursementGuide; protected String remarks; protected InfoEmployee infoEmployee; protected Calendar modificationDate; protected Calendar officialDate; protected ReimbursementGuideState reimbursementGuideState; /** * @return */ public InfoEmployee getInfoEmployee() { return infoEmployee; } /** * @param infoEmployee */ public void setInfoEmployee(InfoEmployee infoEmployee) { this.infoEmployee = infoEmployee; } /** * @return */ public InfoReimbursementGuide getInfoReimbursementGuide() { return infoReimbursementGuide; } /** * @param infoReimbursementGuide */ public void setInfoReimbursementGuide(InfoReimbursementGuide infoReimbursementGuide) { this.infoReimbursementGuide = infoReimbursementGuide; } /** * @return */ public Calendar getModificationDate() { return modificationDate; } /** * @param modificationDate */ public void setModificationDate(Calendar modificationDate) { this.modificationDate = modificationDate; } /** * @return */ public ReimbursementGuideState getReimbursementGuideState() { return reimbursementGuideState; } /** * @param reimbursementGuideState */ public void setReimbursementGuideState(ReimbursementGuideState reimbursementGuideState) { this.reimbursementGuideState = reimbursementGuideState; } /** * @return */ public String getRemarks() { return remarks; } /** * @param remarks */ public void setRemarks(String remarks) { this.remarks = remarks; } /** * @return */ public State getState() { return state; } /** * @param state */ public void setState(State state) { this.state = state; } /** * @return Returns the officialDate. */ public Calendar getOfficialDate() { return officialDate; } /** * @param officialDate * The officialDate to set. */ public void setOfficialDate(Calendar officialDate) { this.officialDate = officialDate; } public void copyFromDomain(ReimbursementGuideSituation reimbursementGuideSituation) { super.copyFromDomain(reimbursementGuideSituation); if (reimbursementGuideSituation != null) { setInfoEmployee(InfoEmployee.newInfoFromDomain(reimbursementGuideSituation.getEmployee())); // setInfoReimbursementGuide(null); setModificationDate(reimbursementGuideSituation.getModificationDate()); setOfficialDate(reimbursementGuideSituation.getOfficialDate()); setReimbursementGuideState(reimbursementGuideSituation.getReimbursementGuideState()); setRemarks(reimbursementGuideSituation.getRemarks()); setState(reimbursementGuideSituation.getState()); } } public static InfoReimbursementGuideSituation newInfoFromDomain(ReimbursementGuideSituation reimbursementGuideSituation) { InfoReimbursementGuideSituation infoReimbursementGuideSituation = null; if (reimbursementGuideSituation != null) { infoReimbursementGuideSituation = new InfoReimbursementGuideSituation(); infoReimbursementGuideSituation.copyFromDomain(reimbursementGuideSituation); } return infoReimbursementGuideSituation; } }