Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetPersonID


    @SuppressWarnings("unchecked")
  public void addRegister() {
        try {
            String id = idText.getText();
            if (id.equals("")) {
                id = (String) system.query(new GetPersonID());
            }
            if (!(employmentData.getDismissedDate().equals("") || employmentData.getDismissedDate().equals("  /  /    "))) {
                setFinishDateOfEmployee(finantialInfo.getFinantialInfo());

                Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
View Full Code Here


        permissionsList.add("Impress�o de Etiquetas");
       
        system.execute(new AddGroup("Secret�ria Geral",permissionsList));
        List<Group> groups = new ArrayList(((Map<String, Group>) system.query(new GetGroup())).values());
       
        system.execute(new AddUser((String) system.query(new GetPersonID()), "Desenvolvedor do Sistema", "developer", "simpsons", groups));
        system.execute(new AddUser((String) system.query(new GetPersonID()), "Administrador do Sistema", "admin", "gdadmin", groups));
        system.execute(new AddHowDoYouKnowVisualmidia("Carro de som"));
        system.execute(new AddHowDoYouKnowVisualmidia("Radio"));
       
        Person user = (Person) system.query(new GetPersonByName("Desenvolvedor do Sistema"));
        system.execute(new AddUserToGroup("Secret�ria Geral", user));
View Full Code Here

  public void addRegister() {
    try {
      String id = idText.getText();
      if (id.equals("")) {
        id = (String) system.query(new GetPersonID());
      }
           
            propertyChangeSupport.firePropertyChange("change", 0, 5);
           
      Person person = (Person) system.executeAndQuery(new AddAndReturnStudent(id,
View Full Code Here

        return true;
    }

    private void addUserToTheSystem() {
        try {
            system.execute(new AddUser((String) system.query(new GetPersonID()), "Administrador do Sistema", "admin", adminPassword.getPassword(), null));

            Person person = (Person) system.query(new GetPersonByName("Administrador do Sistema"));
            system.execute(new AddUserToGroup("Administrador", person));
        } catch (TransactionDateException e) {
      MessageBox box = new MessageBox(getShell(), IMessageProvider.INFORMATION);
View Full Code Here

TOP

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

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.