Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetEmployee


    @SuppressWarnings("unchecked")
    public void openInicialConfiguration() {
        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()) {
View Full Code Here


        personLabel.setText("Conta caixa de: ");

        personCombo = new Combo(componentsComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);

        try {
            Map<String, Person> employees = (Map<String, Person>) system.query(new GetEmployee());

            for (Person person : employees.values()) {
                Employee employee = (Employee) person.getPersonType("employee");
                if (!accountCotrolCenter.isPersonHasRegisterMachineAccount(person.getName()) && employee.isActivated()) {
                    personCombo.add(person.getName());
View Full Code Here

    @SuppressWarnings("unchecked")
  private void updateUserTable() {
        userTable.removeAll();
        try {
            Map<String, Person> employeeMap = (Map<String, Person>) system.query(new GetEmployee());
//            List<String> listUser = new ArrayList<String>();
            for (Person person : employeeMap.values()) {
                if (person.isPersonType("user")) {
//                    listUser.add(person.getName());
//                }
View Full Code Here

                        orderPersonList();
                        printResponsable = false;
                        printCodeBar = true;
                    } else if(viewEmployeeRadio.getSelection()){
                        personList.clear();
                        Map<String, Person> personMap = (Map<String, Person>) system.query(new GetEmployee());
                        for (Person person : personMap.values()) {
                            personList.add(person);
                        }
                        orderPersonList();
                        printResponsable = false;
View Full Code Here

        data.right = new FormAttachment(100, -5);
        items.setLayoutData(data);
       
        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();
View Full Code Here

        this.type = type;
       
        try {
          Map<String, Person> persons = new HashMap<String, Person>();
            if(type.equals("Funcion�rios")){
                persons = (Map<String, Person>)system.query(new GetEmployee());
            }else{
                persons = (Map<String, Person>)system.query(new GetStudent());
            }
           
            for (Person person : persons.values()) {
View Full Code Here

  private void updateTable() {
    employsyeetable.removeAll();

    try {
      Map<String, Person> employees = (Map<String, Person>) system
          .query(new GetEmployee());

      int bgColorControl = 0;
      for (Person employee : employees.values()) {
        // if (employee.isPersonType("employee")) {
        // List<Person> listperson = (List<Person>) person;
View Full Code Here

              }                 
              if(registrationList.size()>0){
                MergeSortAlgorithm sortAlgorithm = new MergeSortAlgorithm();
                sortAlgorithm.sortRegistrationByDate(registrationList);
              }
              Map <String, Person> attendantMap = (Map<String, Person>) system.query(new GetEmployee());
              for (Person attendant : attendantMap.values()) {
                total = 0;
                int i = 0;
                totalPerAttendant = 0;
                for (Registration registration : registrationList) {
View Full Code Here

    @SuppressWarnings("unchecked")
  public void updateTable() {
        employeeTable.removeAll();
        try {
            if(searchText.getText().equals("")) {
                Map<String, Person> employeesMap = (Map<String, Person>) system.query(new GetEmployee());
               
                List<Person> employees = new ArrayList<Person>();
                employees.addAll(employeesMap.values());
               
                SortComparator comparator = new SortComparator();
View Full Code Here

        footerStyle.setPdfEmbedded(false);
        jasperPrint.addStyle(footerStyle);
        try {
            List<Person> employeeList = new ArrayList<Person>();
            if(idEmployee == null){
                Map<String, Person> employeesMap = (Map<String, Person>) system.query(new GetEmployee());
                for (Person person : employeesMap.values()) {
                    Employee employee = (Employee) person.getPersonType("employee");
                   
//                    if (date.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(employee.getPaymentDay()) && employee.isActivated()) {
                    if (employee.isActivated()) {
                        employeeList.add(person);
                    }
                }
            } else
//              if(date == null){
//                Person person = (Person) system.query(new GetEmployee(idEmployee));
//                employeeList.add(person);
//            } else
              {
                Person person = (Person) system.query(new GetEmployee(idEmployee));
                Employee employee = (Employee) person.getPersonType("employee");
                if (employee.isActivated()) {
//                  if (date.get(Calendar.DAY_OF_MONTH) == Integer.parseInt(employee.getPaymentDay()) && employee.isActivated()) {
                    employeeList.add(person);
                }
View Full Code Here

TOP

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

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.