Examples of BOTaskLog


Examples of com.zycus.dotproject.bo.BOTaskLog

      return task.getTaskLogs().size();
    }

    @Override
    public Object getValueAt(int row, int column) {
      BOTaskLog taskLog = task.getTaskLogs().toArray(new BOTaskLog[] {})[row];
      if (column == -1) {
        return taskLog;
      }
      if (column == 0) {// name
        return taskLog.getTaskLogName();
      } else if (column == 1) {// description
        return taskLog.getTaskLogDescription();
      } else if (column == 2) {// duration
        return taskLog.getTaskLogHours();
      } else if (column == 3) {// date
        if(taskLog != null && taskLog.getTaskLogDate() != null) {
          if(dateFormatter == null) {
            return taskLog.getTaskLogDate() + "";
          }else {
            return dateFormatter.format(taskLog.getTaskLogDate())
          }           
        }       
      } else if (column == 4) {// user
        return task.getTaskLogs().toArray(new BOTaskLog[] {})[row].getTaskLogCreator();
      }
View Full Code Here

Examples of com.zycus.dotproject.bo.BOTaskLog

    if (Double.parseDouble(taskPercentage.getText()) > 100) {
      JOptionPane.showMessageDialog(this, "Task completion percentage can't be more then 100%", "Validation Error", JOptionPane.ERROR_MESSAGE);
      return;
    }
    if (log == null) {
      log = new BOTaskLog();
      log.setEnhancedTaskLogID(-System.currentTimeMillis());
    }
    log.setTaskLogName(logName.getText());
    log.setTaskLogDescription(logDescription.getText());
    log.setTaskLogDate(logDate.getDate());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.