Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetCourse


        if (mainPanel != null) {
            try {
                Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
                Map<String, Person> employee = (Map<String, Person>) system.query(new GetEmployee());
                Map<String, ClassRoom> classRoom = (Map<String, ClassRoom>) system.query(new GetClassRoom());
                Map<String, Course> courses = (Map<String, Course>) system.query(new GetCourse());

                float contValueOfCourses = 0;
                for (Course course : courses.values()) {
                    contValueOfCourses += course.getValue();
                }
View Full Code Here


                col.setWidth(110);
            }
        }

        try {
            Map<String, Course> courses = (Map <String, Course>) system.query(new GetCourse(null));
           
            List<Course> courseList = new ArrayList<Course>(courses.values());
            SortComparator comparator = new SortComparator();
            Collections.sort(courseList, comparator);
           
View Full Code Here

    super(parent);
    this.system = GDSystem.getInstance();
    this.coursesCotrolCenter = (CourseControlCenter) coursesCotrolCenter;
    this.courses = courses;
    try {
      this.course = (Course) system.query(new GetCourse(courseId));
    } catch (Exception e) {
      logger.error("Get Course Error: ", e);
    }
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  protected boolean alreadyExistCourse() {
    try {
      Map<String, Course> mapcourses = (Map<String, Course>) system
          .query(new GetCourse());
      for (Course itenlistlistcourses : mapcourses.values()) {
        if (itenlistlistcourses.getDescription().toLowerCase().equals(
            descriptionText.getText().toLowerCase())) {
          setMessage("Pacote j� cadastrado com esta Descri��o.",
              IMessageProvider.ERROR);
View Full Code Here

      int numberOfLessons = 0;
      int duration = 0;
      for (int i = 0; i < courses.length; i++) {
        try {
          Course activatedCourse;
          activatedCourse = (Course) system.query(new GetCourse(
              courses[i].getText(0)));
          if (activatedCourse.isActive()) {
            TableItem item = new TableItem(coursesTable, SWT.NONE);
            item.setImage(courses[i].getImage());
            item.setText(courses[i].getText(1));
View Full Code Here

           
            page.addElement(printTitleText("Cursos", posX+2, posY+292, 47));
           
            posY += 311;
           
            Map<String, Course> courses = (Map <String, Course>) system.query(new GetCourse(null));
            List<Course> coursesList = new ArrayList<Course>(courses.values());
            SortComparator comparator = new SortComparator();
            Collections.sort(coursesList, comparator);
            int cont=0;
            for (int i=0; i<coursesList.size(); i++) {
View Full Code Here

      String courseId) {
    super(parent);
    this.system = GDSystem.getInstance();
    this.coursesCotrolCenter = (CourseControlCenter) coursesCotrolCenter;
    try {
      this.course = (Course) system.query(new GetCourse(courseId));
    } catch (Exception e) {
      logger.error("Add Course Error: ", e);
    }
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  protected boolean alreadyExistCourse() {
    try {
      Map<String, Course> mapcourses = (Map<String, Course>) system
          .query(new GetCourse());
      for (Course itenlistlistcourses : mapcourses.values()) {
        if (itenlistlistcourses.getDescription().toLowerCase().equals(
            descriptionText.getText().toLowerCase())) {
          setMessage("Course j� cadastrado com esta Descri��o.",
              IMessageProvider.ERROR);
View Full Code Here

       
        try {
            Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
            Map<String, Person> employees = (Map<String, Person>) system.query(new GetEmployee());
            Map<String, ClassRoom> classRooms = (Map<String, ClassRoom>) system.query(new GetClassRoom());
            Map <String, Course> courses = (Map <String, Course>) system.query(new GetCourse());

            if(employees.size() == 0) {
                createEmployeeMessage();
            }
            if(accounts.size() == 0) {
View Full Code Here

    @SuppressWarnings(value = { "unchecked" })
    public void updateTable() {
        courseTable.removeAll();

        try {
            Map<String, Course> map = (Map<String, Course>) system.query(new GetCourse());
            List<Course> list = new ArrayList<Course>(map.values());
            SortComparator comparator = new SortComparator();
            Collections.sort(list, comparator);

            for (Course course : list) {
View Full Code Here

TOP

Related Classes of br.com.visualmidia.persistence.GetCourse

Copyright © 2018 www.massapicom. 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.