Examples of BOProject


Examples of com.zycus.dotproject.bo.BOProject

  private void onSave() {
    if (validateEntry() == false) {
      return;
    }

    BOProject project = new BOProject();
    if (lstProjects.getSelectedValue() != null) {
      project = (BOProject) lstProjects.getSelectedValue();
    }

    project.setProjectName(projectName.getText());

    BOUser oldOwner = project.getProjectOwner();
    project.setProjectOwner((BOUser) projectOwner.getSelectedItem());
    project.setProjectCompany((BOCompany) projectCompany.getSelectedItem());
    project.setProjectStartDate(projectStartDate.getDate());
    project.setProjectEndDate(projectEndDate.getDate());
    project.setProjectType((ProjectType) projectType.getSelectedItem());
    project.setProjectStatus((ProjectStatus) projectStatus.getSelectedItem());
    project.setProjectPriority((Priority) projectPriority.getSelectedItem());
    project.setProjectDescription(projectDescription.getText());
    project.setContactUsers(currentUsers);

    Set<BODepartment> projectDepartments = new LinkedHashSet<BODepartment>();
    projectDepartments.add((BODepartment) departmentCombo.getSelectedItem());
    project.setProjectDepartments(projectDepartments);

    projectManager.saveProjectInfo(ApplicationContext.getCurrentUser(), oldOwner, project);

    initReload(project);
  }
View Full Code Here

Examples of com.zycus.dotproject.bo.BOProject

    //JOptionPane.showMessageDialog(null, "Feature not implemented yet :P");
  }
 
  static class SaveProjectAction extends AbstractAction{
    public void actionPerformed(ActionEvent actionEvent) {
      BOProject project = ApplicationContext.getCurrentProjet();
      try {
     
          IProjectManager projectManager = ProjectManagerFactory.getProjectManager();
          projectManager.saveProjectTasks(ApplicationContext.getCurrentUser(), project);
          //ApplicationContext.projectChanged(project);
View Full Code Here

Examples of com.zycus.dotproject.bo.BOProject

  private void onSave() {
    if (validateEntry() == false) {
      return;
    }

    BOProject project = new BOProject();
    if (lstProjects.getSelectedValue() != null) {
      project = (BOProject) lstProjects.getSelectedValue();
    }

    project.setProjectName(projectName.getText());

    BOUser oldOwner = project.getProjectOwner();
    project.setProjectOwner((BOUser) projectOwner.getSelectedItem());
    project.setProjectCompany((BOCompany) projectCompany.getSelectedItem());
    project.setProjectStartDate(projectStartDate.getDate());
    project.setProjectEndDate(projectEndDate.getDate());
    project.setProjectType((ProjectType) projectType.getSelectedItem());
    project.setProjectStatus((ProjectStatus) projectStatus.getSelectedItem());
    project.setProjectPriority((Priority) projectPriority.getSelectedItem());
    project.setProjectDescription(projectDescription.getText());
    project.setContactUsers(currentUsers);

    Set<BODepartment> projectDepartments = new LinkedHashSet<BODepartment>();
    projectDepartments.add((BODepartment) departmentCombo.getSelectedItem());
    project.setProjectDepartments(projectDepartments);

    projectManager.saveProjectInfo(ApplicationContext.getCurrentUser(), oldOwner, project);

    initReload(project);
  }
View Full Code Here

Examples of com.zycus.dotproject.bo.BOProject

   * tasks, as that is not being set from 2) have to keep track or recursion
   * in parent child relations, as that is not being checked from UI and take
   * some decision
   */
  public static void calculateProject() {
    BOProject project = ApplicationContext.getCurrentProjet();
    System.out.println(Thread.currentThread().getName() + "ProjectCalculator.calculateProject()");
  }
View Full Code Here

Examples of com.zycus.dotproject.bo.BOProject

      }
      childTask.setParentTask(parentTask);
      parentTask.getChildTasks().add(childTask);
      parentTask.getPreviousTasks().clear();
    } else if (selectedObject instanceof BOProject) {
      BOProject project = (BOProject) selectedObject;
      if (project.canAddTasks(ApplicationContext.getCurrentUser()) == false) {
        StatusBar.showWarningStatusMessage("You do not have sufficient privilege to add task");
        return;
      }
      childTask.setParentTask(childTask);
      project.getTasks().add(childTask);
    }
    childTask.setOwner(ApplicationContext.getCurrentUser());
    childTask.setTaskName("New task");
    // TODO temporary bug fix
    childTask.setEnhancedTaskID(-System.currentTimeMillis());
View Full Code Here

Examples of com.zycus.dotproject.bo.BOProject

    Session session = null;
    try {
      sessionFactory = HibernateSessionFactory.getInstance();
      session = sessionFactory.openSession();

      BOProject project = (BOProject) session.get(BOProject.class, projectId);
      System.out.println(project.getTasks());

      return project;

    } catch (Exception a_th) {
      throw new RuntimeException(a_th);
View Full Code Here

Examples of com.zycus.dotproject.bo.BOProject

      ApplicationContext.currentProjet = null;
      projectChanged(null);
      return;
    }
    IProjectManager projectManager = ProjectManagerFactory.getProjectManager();
    BOProject project = projectManager.getCompleteProject(a_project.getProjectID());
    ApplicationContext.currentProjet = project;
    projectChanged(currentProjet);
  }
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.