Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.Person


        return (String) employeeIds.get(attendanceResponsableCombo.getSelectionIndex());
    }

    public void fillAttendanceResponsable(String attendanceResponsable) {
        try {
          Person person = (Person) system.query(new GetPerson(attendanceResponsable));
          if(!((Employee)person.getPersonType("employee")).isActivated()){
            employeeIds.add(person.getId());
            attendanceResponsableCombo.add(person.getName());
          }
            attendanceResponsableCombo.select(attendanceResponsableCombo.indexOf(person.getName()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here


          //---------------------------------------
            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()) {
                        if(parcel.isPayed()) {
                            parcelPayDate = new GDDate(parcel.getPayDate());
View Full Code Here

        nameStyle.setPdfEncoding("Cp1252");
        nameStyle.setPdfEmbedded(false);
        jasperPrint.addStyle(nameStyle);

        try {
            Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
            String genderChar = (person.getGender().equals("Masculino")?"o":"a");
           
            if(isSimpleCertifyd){
               
                JRPrintPage page = new JRBasePrintPage();
               
                JRPrintText text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("Certificamos que "+genderChar+" alun"+genderChar);
                text.setX(convert(20));
                text.setY(convert(65) + 10);
                text.setWidth(730);
                text.setHeight(27);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(person.getName());
                text.setX(convert(20));
                text.setY(convert(65) + 43);
                text.setWidth(730);
                text.setHeight(53);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(nameStyle);
                page.addElement(text);
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText("concluiu o  programa de cursos OPERADOR DE COMPUTADOR e est� apto para ocupar e exercer atividades relacionadas aos treinamentos descritos abaixo:");
                text.setX(convert(20));
                text.setY(convert(65) + 120);
                text.setWidth(730);
                text.setHeight(65);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(bodyStyle);
                page.addElement(text);
               
                String listCourses = "";
                for (int i = 0; i < courses.size(); i++) {
                  system.execute(new SetCourseAsPrinted(registration, courses.get(i)));
                  listCourses += courses.get(i);
                    if(i != courses.size() - 1) {
                        listCourses += ", ";
                    }
                }
               
                text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(listCourses);
                text.setX(convert(20));
                text.setY(convert(65) + 210);
                text.setWidth(730);
                text.setHeight(75);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
                text.setLineSpacingFactor(2.0f);
                text.setLeadingOffset(-4.0f);
                text.setStyle(boldStyle);
                page.addElement(text);
               
                jasperPrint.addPage(page);
            }
            else {
               
                JRPrintPage page = new JRBasePrintPage();
               
                JRPrintText text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                text.setText(person.getName());
                text.setX(convert(20));
                text.setY(convert(45) + 6);
                text.setWidth(730);
                text.setHeight(53);
                text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_CENTER);
View Full Code Here

        item.setText(0, (i + 1) + "");
        item.setText(1, parcel.getDate());
        item.setText(2, new Money(parcel.getValueBeforeParcelDateExpiration()).getFormatedValue());
        item.setText(3, new Money(parcel.getValueAfterParcelDateExpiration()).getFormatedValue());
        if(parcel.getIdPersonReceived() != null) {
          Person person = (Person) system.query(new GetPerson(parcel.getIdPersonReceived()));
          item.setText(4, person.getName());
        } else {
          item.setText(4, "");
        }
      } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

    public List<Occurrence> getOccurrence() {
        TableItem[] items = occurrenceTable.getItems();
        List<Occurrence> ocurrenceList = new ArrayList<Occurrence>();
        for (int i = 0; i < items.length; i++) {
            try {
                Person person = (Person) system.query(new GetPersonByName(items[i].getText(1)));
                ocurrenceList.add(new Occurrence(person, new GDDate(items[i].getText(0)), items[i].getText(2)));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
View Full Code Here

            Map<String, Registration> registrationMap = (Map<String, Registration>) system.query(new GetRegistration());
              int index = 0;
              for (Registration registration : registrationMap.values()) {
                if (registration.getParcels().isEmpty())
                    registrationWithoutParcels.add(registration);
                  Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                  int numberOfParcel = 1;
                 
                  for (Parcel parcel : registration.getParcels()) {
                      parcelDate = new GDDate(parcel.getDate());
                          if (parcelDate.afterOrEqualsDay(this.startDate) && parcelDate.beforeOrEqualsDay(this.finishDate)) {
View Full Code Here

        page.addElement(printImage("corporateLogo.jpg", posX+456, posY, 77, 45));
       
        posY += 50;
       
        try {
                Person student = (Person) system.query(new GetStudent(idStudent));
                page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
                page.addElement(insertTitle(boldStyle, "Aluno: " + student.getName(), posX+5, posY+5));
               
                posY += 25;
               
                page.addElement(drawRectangle(posX, posY, 535, 15, 0));
                page.addElement(insertCenterBoldText("Data", posX+5, posY, 80));
View Full Code Here

            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);
                   
                    JRPrintText text = new JRBasePrintText(jasperPrint.getDefaultStyleProvider());
                    text.setText("Prezad"+genderChar+" alun"+genderChar+"\n"+person.getName());
                    text.setX(200);
                    text.setY(250);
                    text.setWidth(470);
                    text.setHeight(50);
                    text.setHorizontalAlignment(JRAlignment.HORIZONTAL_ALIGN_LEFT);
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());

      close();
    } catch (Exception e) {
      e.printStackTrace();
    }
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

TOP

Related Classes of br.com.visualmidia.business.Person

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.