Package br.com.visualmidia.system

Examples of br.com.visualmidia.system.GDSystem.query()


import br.com.visualmidia.system.GDSystem;

public class Exportacao {
  public static void main(String[] args) throws Exception {
    GDSystem system = GDSystem.getInstance();
    List<Person> users = (List<Person>) system.query(new GetAllStudent());

    // aluno;rg; cpf;data nasc; endere�o + numero, bairro, cidade, estado,
    // cep; telefones
    String export = "ALUNO;RG;CPF;DATA NASCIMENTO;ENDERECO;BAIRRO;CIDADE;ESTADO;CEP;TELEFONE;CELULAR\n";
    for (Person person : users) {
View Full Code Here


    // cep; telefones
    String export = "ALUNO;RG;CPF;DATA NASCIMENTO;ENDERECO;BAIRRO;CIDADE;ESTADO;CEP;TELEFONE;CELULAR\n";
    for (Person person : users) {
     
      try {
        List<Registration> registrations = (List<Registration>) system.query(new GetRegistrationByPerson(person.getId()));
        if(registrations.size() > 0) {
          export += "" +
            person.getName() + ";" +
            person.getRg() + ";" +
            person.getCpf() + ";" +
View Full Code Here

          //--------------------------------------------------------------------------------------
          /*
          O c�digo abaixo exibe os alunos que tem muitas matriculas
          OBs: Isso pode acontecer quando a secret�ria vai adicionar parcelas, pois ela erra no nro de parcelas
          */
          Map<String, Registration> registrations = (Map<String, Registration>) system.query(new GetRegistration());
          List<String> lista = new ArrayList<String>();
         
          for (Registration registration : registrations.values()) {
            List<Parcel> parcels = registration.getParcels();
            if(parcels.size() > 30) {
View Full Code Here

//    }
//       
        try {
         
          System.out.println("**************** Lista de Usu�rios ******************");
      List<Person> users = (List<Person>) system.query(new GetUsers());
      for (Person person : users) {
        System.out.println("*******************");
        User personType = (User) person.getPersonType("user");
        System.out.println("Usuario: "+personType.getUserName());
        System.out.println("Senha: "+personType.getPassword());
View Full Code Here

        User personType = (User) person.getPersonType("user");
        System.out.println("Usuario: "+personType.getUserName());
        System.out.println("Senha: "+personType.getPassword());
     
      }
      Map<String, Person> persons = (Map<String, Person>)system.query(new GetStudent());

           System.out.println("**************** Lista de Usu�rios ******************");
         
          
          
View Full Code Here

    @SuppressWarnings("unchecked")
  public void run() {
      GDSystem system = GDSystem.getInstance();
      try {
      Map<String, Object> properties = (Map<String, Object>) system.query(new GetProperty());
      if(properties.get("timezone") == null) {
        system.execute(new SetProperty("timezone", "America/Sao_Paulo"));
      }
      DateTimeZone zone = DateTimeZone.forID(String.valueOf(properties.get("timezone")));
      DateTimeZone.setDefault(zone);
View Full Code Here

        this.description = description;
        this.value = value;
        this.categoryId = categoryId;
        try {
          GDSystem system = GDSystem.getInstance();
            billCategory = (BillCategory) system.query(new GetBillCategory(categoryId));
        } catch (Exception e) {
          logger.warn("N�o foi poss�vel recuperar a categoria do Plano de Contas!", e);
        }
    }
View Full Code Here

        this.startWorkTime = gd.getWorktime("start");
        this.endWorkTime = gd.getWorktime("end");
        this.isReplacement = isReplacement;
       
        try {
            this.registration = (Registration) system.query(new GetRegistration(idRegistration));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
   
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.