Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetAccounts


    }
   
    @SuppressWarnings(value={"unchecked"})
    private void gatherAccountInformation() {
        try {
            Map <String, Account> map = (Map <String, Account>) system.query(new GetAccounts());
            SortComparator comparator = new SortComparator();
            accountList = new LinkedList <Account> (map.values());
            Collections.sort(accountList, comparator);
           
        } catch (Exception e) {
View Full Code Here


    }
   
    @SuppressWarnings(value={"unchecked"})
    private void gatherAccountInformation() {
        try {
            Map <String, Account> map = (Map <String, Account>) system.query(new GetAccounts());
            SortComparator comparator = new SortComparator();
            accountList = new LinkedList <Account> (map.values());
            Collections.sort(accountList, comparator);
           
        } catch (Exception e) {
View Full Code Here

            try {
              String accountSelected = incomingAccountCombo.getText();
              String accountId = "";
        if(!accountSelected.equals("Selecione uma conta...")) {
                String accountNameLogged = "";
                Map<String, Account> accountMap = (Map<String, Account>) system.query(new GetAccounts());
                for (Account account : accountMap.values()) {
                  if(!account.isBankAccount()){
                    if(account.getPerson().getId().equals(system.getLogged().getId())){
                      accountNameLogged = account.getName();
                      accountId = account.getId();
View Full Code Here

    @SuppressWarnings("unchecked")
  private void createAccountCombo() {
        accountsCombo = new Combo(dialog, SWT.READ_ONLY | SWT.DROP_DOWN);

        try {
            Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
            for (Account account : accounts.values()) {
                if (account.isActive() && account.isBankAccount()) {
                    accountsCombo.add(account.getName());
                }
            }
View Full Code Here

        data.left = new FormAttachment(0, 5);
        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) {
View Full Code Here

        combo.add("Cart�o cr�dito");
        combo.add("Cart�o d�bito");
      } else {
        try {
          Map<String, Account> accounts = (Map<String, Account>) system
          .query(new GetAccounts());
          for (Account account : accounts.values()) {
            if (account.isBankAccount() && account.getName().equals(nameAccount)) {
              combo.add("Dep�sito na conta " + account.getName());
            }
          }
View Full Code Here

      if(loggedRegisterMachine != null) {
        return loggedRegisterMachine;
      }
     
        try {
            Map<String, Account> accounts = (Map<String, Account>) query(new GetAccounts());
            for (Account accountFromPerson : accounts.values()) {
                if (accountFromPerson.getPerson() != null && accountFromPerson.isActive() && !accountFromPerson.isBankAccount()) {
                    if (accountFromPerson.getPerson().getId().equals(getLogged().getId())) {
                      loggedRegisterMachine = accountFromPerson;
                        return accountFromPerson;
View Full Code Here

    }
   
    @SuppressWarnings(value={"unchecked"})
    private void gatherAccountInformation() {
        try {
            Map <String, Account> map = (Map <String, Account>) system.query(new GetAccounts());
            SortComparator comparator = new SortComparator();
            accountList = new LinkedList <Account> (map.values());
            Collections.sort(accountList, comparator);
           
        } catch (Exception e) {
View Full Code Here

                    String accountId = "";
                    if(!accountSelected.equals("Selecione uma conta...")) {
                      String accountNameLogged = "";
                      Map<String, Account> accountMap;
                try {
                  accountMap = (Map<String, Account>) system.query(new GetAccounts());
                  for (Account account : accountMap.values()) {
                    if(!account.isBankAccount()){
                      if(account.getPerson().getId().equals(system.getLogged().getId())){
                        accountNameLogged = account.getName();
                        accountId = account.getId();
View Full Code Here

    public TransferBetweenAccountsDialog(Shell parent, ControlCenter registerMachineControlCenter, String moneyFromAccountId) {
        this(parent);
        this.system = GDSystem.getInstance();
        this.accountControlCenter = (AccountControlCenter) registerMachineControlCenter;
        try {
            this.moneyFromAccount = (Account) system.query(new GetAccounts(moneyFromAccountId));
        } catch (Exception e) {
        }
    }
View Full Code Here

TOP

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

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.