예제 #1
0
 public void createOrUpdate() {
   if (current.getPkid() != null) {
     super.update();
   } else {
     super.create();
   }
   sendNotification();
 }
예제 #2
0
  public void prepareCreate(Employee empl, TimeOffStatus to) {
    super.prepareCreate();
    if (current != null) {
      TimeOffStatus status = null;
      if (to == null) {
        ConfigurationDataManager configDM = ConfigurationDataManager.getInstance();

        configDM.updateTimeOffStatusData();
        status = configDM.getDefaultStatus();
      } else {
        status = to;
      }
      current.setEmployeeid(empl);
      current.setTimeOffStatusid(status);
    }
  }
예제 #3
0
 @Override
 public void create() {
   super.create();
   sendNotification();
 }