Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetPerson


            for (Registration registration : registrationList) {
               
              GDDate dateRegistration = new GDDate(registration.getRegistrationDate());
               
                if(dateRegistration.beforeOrEqualsDay(finishDate) && dateRegistration.afterOrEqualsDay(startDate)){
                    Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                    String genderChar = (person.getGender().equals("Masculino")?"o":"a");
                   
                    JRPrintPage page = new JRBasePrintPage();
                   
                    page.addElement(image);
View Full Code Here


  }

  @Override
  public void loadScreen(String idStudent) {
    try {
      Person person = (Person) system.query(new GetPerson(idStudent));
      fillName(person.getName());

      HomeControlCenter homeControlCenter = GDWindowControl.getInstance().getHomeControlCenter();
      homeControlCenter.typeBarCode("300001.00000" + person.getId());
View Full Code Here

          try {
           
            Map<String, Registration> registrationMap = (Map<String, Registration>) system.query(new GetRegistration());
              int index = 0;
              for (Registration registration : registrationMap.values()) {
                  Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                  int numberOfParcel = 1;
                  for (Parcel parcel : registration.getParcels()) {
                          if(parcel.isPayed() && parcel.getDiscount() > 0.0f) {
                              parcelPayDate = new GDDate(parcel.getPayDate());
                              if (parcelPayDate.afterOrEqualsDay(startDate) && parcelPayDate.beforeOrEqualsDay(finishDate)) {
View Full Code Here

        idText.setEditable(false);
        idText.addListener(SWT.Modify, new Listener() {
            public void handleEvent(Event arg0) {
                if (idText.getText() != null) {
                    try {
                        Person person = (Person) system.query(new GetPerson(idText.getText()));
                        if (person.isPersonType("employee")) {
                            bankingBilletButton.setEnabled(true);
                        } else {
                            bankingBilletButton.setEnabled(false);
                        }
View Full Code Here

    }

    public void loadScreen(String idPerson) {
        Person person;
        try {
            person = (Person) system.query(new GetPerson(idPerson));
            fillId(person.getId());
            fillName(person.getName());
            fillGender(person.getGender());
            fillBirthdate(person.getBirthDate());
            fillCivilState(person.getCivilState());
View Full Code Here

        try {
            String obs = " - (*) Referente a taxa de matr�cula.";
          Map<String, Registration> registrationMap = (Map<String, Registration>) system.query(new GetRegistration());
            int index = 0;
            for (Registration registration : registrationMap.values()) {
                Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                int numberOfParcel = 1;
               
                for (Parcel parcel : registration.getParcels()) {
                    parcelDate = new GDDate(parcel.getDate());
//                    if (status == 0) {
View Full Code Here

    return null;
  }

  public void loadScreen(String id) {
    try {
      Person person = (Person) system.query(new GetPerson(id));
      idText.setText(person.getId());
      nameText.setText(person.getName());

      loadTableData(person);
    } catch (Exception e) {
View Full Code Here

            } catch (Exception e) {
                e.printStackTrace();
            }
        } else {
            try {
                    Map<String, Person> personMap = (Map<String, Person>) system.query(new GetPerson());
                    for (Person person : personMap.values()) {
                        if (person.isPersonType(USER_STRING)) {
                            TableItem groupItem = new TableItem(securityTable, SWT.NONE);
                            groupItem.setText(0, person.getId());
                            groupItem.setImage(1, new Image(null, "img/userUserIco.png"));
View Full Code Here

            public void handleEvent(Event arg0) {
                TableItem[] selection = studentTable.getSelection();
                Map<String, Person> personMap = new HashMap<String, Person>();
                if(selection.length > 0) {
                    try {
                        Person person = (Person) system.query(new GetPerson(selection[0].getText(0)));
                        personMap.put(person.getId(), person);
                        GDWindowControl.getInstance().openLabelMailingReport(personMap, "com c�digo de barras do aluno " + person.getName());
                    } catch (Exception e) {
                       logger.error("GetPerson Exception: ", e);
                    }
View Full Code Here

    @SuppressWarnings("unchecked")
  public void updateTable() {
        studentTable.removeAll();
        try {
            if(searchText.getText().equals("")) {
                Map<String, Person> students = (Map<String, Person>) system.query(new GetPerson());
                List<Person> studentsList = new ArrayList<Person>();
                studentsList.addAll(students.values());
               
                SortComparator comparator = new SortComparator();
                Collections.sort(studentsList, comparator);
View Full Code Here

TOP

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

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.