Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetAccounts


      system.execute(new UpdateRegistrationAppointment());
  }

  private void updateAmountAccount() {
      try {
        Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
        for (Account account : accounts.values()) {
          Money money = new Money(0);
          Map<String, Operation> operations = (Map<String, Operation>) system.query(new GetOperationByAccountId(account.getId()));
          for (Operation operation : operations.values()) {
            if(operation.isCredit()){
View Full Code Here


    @SuppressWarnings("unchecked")
  private void createAccountsTable(Composite composite) {
        accountsTable = new Table(composite, SWT.SIMPLE | SWT.BORDER | SWT.CHECK | SWT.LEFT_TO_RIGHT | SWT.HORIZONTAL | SWT.VERTICAL);
       
        try {
            Map<String, Account> accountsMap = (Map<String, Account>) system.query(new GetAccounts());
           
            for (Account account : accountsMap.values()) {
                if( account.isActive() &&  ( account.getPerson() == null ? system.hasAccess(account.getName()) : true)){
                    TableItem item = new TableItem(accountsTable, SWT.NONE);
                    item.setText(account.getName());
View Full Code Here

      text = new PaymentMoney().getType();
    }else{
      if(operation.getPaymentType().getType().equals("Dep�sito em Conta")){
        try {
          PaymentBankAccountPayed paymentBank = (PaymentBankAccountPayed) operation.getPaymentType();
          Account account = (Account) system.query(new GetAccounts(paymentBank.getAccountId()));
          text = "Dep�sito na conta "+account.getName();
        } catch (Exception e) {
          logger.error("GetAccounts Exception: ",e);
        }
      }else{
View Full Code Here

    @SuppressWarnings("unchecked")
    public void openInicialConfiguration() {
        if (mainPanel != null) {
            try {
                Map<String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
                Map<String, Person> employee = (Map<String, Person>) system.query(new GetEmployee());
                Map<String, ClassRoom> classRoom = (Map<String, ClassRoom>) system.query(new GetClassRoom());
                Map<String, Course> courses = (Map<String, Course>) system.query(new GetCourse());

                float contValueOfCourses = 0;
View Full Code Here

    @SuppressWarnings("unchecked")
  public void updateTable() {
        accountsTable.removeAll();
        try {
            Map<String, Account> accountsMap = (Map<String, Account>) system.query(new GetAccounts());
            List<Account> accounts = new ArrayList<Account>();
            accounts.addAll(accountsMap.values());

            SortComparator comparator = new SortComparator();
            Collections.sort(accounts, comparator);
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

              posY += 20;
              page.addElement(drawGrayRectangle(posX, posY, 535, 20, 3));
              page.addElement(insertTitleBox("OBS : Usu�rios com perfil Administrador n�o ser�o exibidos"));
                  //NOme do Caixa (usu�rio) - Nome do aluno - matricula/parcela - data do pagamento crescente ordenada - Valor do desconto
              posY += 33;
              Map<String, Account> map = (Map<String, Account>) system.query(new GetAccounts());
              for (Account account : map.values()) {
                if (account.getPerson() == null)
                  continue;
                User user = (User) account.getPerson().getPersonType("user");
                if (user != null) {
View Full Code Here

    @SuppressWarnings("unchecked")
  private void updateItems() {
        accountTable.removeAll();
        account.clear();
        try {
            Map<String, Account> accountMap = (Map<String, Account>) system.query(new GetAccounts());
            for (Account myDailyAccount : accountMap.values()) {
                if ((myDailyAccount.isActive()) && !(myDailyAccount.isBankAccount())) {
                    if (myDailyAccount.getPerson().getId().equals(loggedUser.getId())) {
                      TableItem item = new TableItem(accountTable, SWT.NULL);
                        item.setText(myDailyAccount.getName());
View Full Code Here

                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());
                for (Account account : accounts.values()) {
                  if(!account.isBankAccount()){
                    if(account.getPerson().getId().equals(id)){
                      account.setActive(false);
                    }
View Full Code Here

    @SuppressWarnings("unchecked")
  public void setChecked(TableItem item) {
        try {
          Person userLogged = system.getLogged();
          Account accountThisUser = null;
          Map <String, Account> accounts = (Map<String, Account>) system.query(new GetAccounts());
          for (Account account : accounts.values()) {
            if(!account.isBankAccount()){
              if(account.getPerson().getId().equals(userLogged.getId())){
                accountThisUser = account;
                break;
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.