Package br.com.visualmidia.persistence

Examples of br.com.visualmidia.persistence.GetOperation


                    TableItem[] item = checkTable.getCheckTable().getSelection();
                    if (item.length == 0) {
                        setErrorMessage("Voc� deve selecionar pelo menos um cheque.");
                    } else if (item.length == 1) {
                        setErrorMessage("");
                        Operation operation  = ((Operation) system.query(new GetOperation(item[0].getText(1))));
                        PaymentCheck check = (PaymentCheck) operation.getPaymentType();
                        new ObservationCheckDialog(mainPanel.getShell(), check, operation, getMySelf()).open();
                    } else {
                      setErrorMessage("");
                      Map<String, PaymentCheck> checkMap = new HashMap<String, PaymentCheck>();
                      for (TableItem it : item) {
                        Operation operation  = ((Operation) system.query(new GetOperation(it.getText(1))));
                            PaymentCheck check = (PaymentCheck) operation.getPaymentType();
                            checkMap.put(operation.getId(), check);
            }
                      new ObservationCheckDialog(mainPanel.getShell(), checkMap, getMySelf()).open();
                    }
View Full Code Here


  }

  @SuppressWarnings("unchecked")
  private Operation getRelatedOperation(String bankOperationNumber, String description, String value, GDDate date) {
    try {
      Map<String, Operation> operationMap = (Map<String, Operation>) system.query(new GetOperation());

      for (Operation operation : operationMap.values()) {
        if(operation.getAccount().isBankAccount()) {
          if((new GDDate(operation.getDateTime()).equals(date)
              && new Money(operation.getValue()).equals(new Money(value)) )
View Full Code Here

    @SuppressWarnings(value = { "unchecked" })
    public void updateTable(String typeOfFilter, GDDate startDate, GDDate endDate, String selectedLocalization, String nameSearch) {
        checkTable.removeAll();
      Map<String, Operation> operations;
    try {
      operations = (Map<String, Operation>) system.query(new GetOperation());
      if(typeOfFilter.equals("Todos")) {
        for (Operation operation : operations.values()) {
          if (operation.getPaymentType() instanceof PaymentCheck) {
            PaymentCheck check = (PaymentCheck) operation.getPaymentType();
            if ((condition(selectedLocalization, check)) && ((nameSearch.equals("")) ? true : match(check.getResponsable(), nameSearch))) {
View Full Code Here

    @SuppressWarnings("unchecked")
  private void updatePossibleTable() {
        table.removeAll();
        try {
      Map<String, Operation> operationMap = (Map<String, Operation>) system.query(new GetOperation());
      for (Operation operation : operationMap.values()) {
        if(operation.getAccount().isBankAccount() && !operation.isOperationLinked() && (extractBankItem.getAccount() == null ? true : extractBankItem.getAccount().getId().equals(operation.getAccount().getId()))) {
          float operationBeginValue = operation.getValue() - 20;
          float operationEndValue = operation.getValue() + 20;
          float extractBankItemValue = new Money(extractBankItem.getValue()).getFloatValue();
View Full Code Here

   
    @SuppressWarnings("unchecked")
  private void updateExistTable() {
        table.removeAll();
        try {
      Map<String, Operation> operationMap = (Map<String, Operation>) system.query(new GetOperation());
      for (Operation operation : operationMap.values()) {
        if(operation.getAccount().isBankAccount() && !operation.isOperationLinked() && (extractBankItem.getAccount() == null ? true : extractBankItem.getAccount().getId().equals(operation.getAccount().getId()))) {
          TableItem item = new TableItem(table, SWT.NONE);
                 
          item.setText(0, operation.getId());
View Full Code Here

TOP

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

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.