コード例 #1
0
 /** @param employee */
 public OutstandingImprovementItem(OutstandingImprovement improvement) {
   super(improvement.getEmployee());
   setId(improvement.getId());
   setSourceSchool(improvement.getSourceSchool().getTitle());
   setTargetSchool(improvement.getTargetSchool().getTitle());
   setImprovementRegion(improvement.getSourceSchool().getRegionCode());
 }
コード例 #2
0
 public void updateValueDueToEmployee() {
   Employee selectedEmployee = getInstance().getEmployee();
   if (selectedEmployee != null) {
     info("updating values due to employee modification #0", selectedEmployee);
     OutstandingImprovement instance = getInstance();
     Employment employment = instance.getEmployee().getCurrentEmployment();
     instance.setSourcePYSDE(employment.getSchool().getPysde());
     instance.setSourceSchool(employment.getSchool());
   } else {
     warn("updateValueDueToEmployee called, but no employee is selected.");
   }
 }
コード例 #3
0
 /** @see org.jboss.seam.framework.Home#createInstance() */
 @Override
 protected OutstandingImprovement createInstance() {
   OutstandingImprovement instance = new OutstandingImprovement();
   instance.setIsProcessed(Boolean.FALSE);
   return instance;
 }