Examples of BillCategory


Examples of br.com.visualmidia.business.BillCategory

    system.execute(new RemoveAllPresences());
  }

  private void updateBillPlan(String parentDescription, String description){
    try {
      BillCategory bill = (BillCategory) system.query(new GetBillCategory(parentDescription));
      int i = 0;
      for (BillCategory b : bill.getAll()) {
        if(b.getDescription().equals(description)) {
          i++;
        }
      }
      for (int j = 0; j < i; j++) {
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

                    }
                    if (descriptionText.getText().equals("")) {
                      setErrorMessage("Entre com a Descri��o da Conta.");
                      return;
                    }
                    BillCategory billCategory = system.getBillPlan().get(billPlanComboTree.getText());
                    String categoryId = billCategory.getId();
                   
                  
                    if(categoryId.charAt(0) == '2'){
                        Money valueComp = new Money(valueText.getText());
                        if(balanceValue.getFloatValue() >= valueComp.getFloatValue()){
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

              if (!billPlanComboTree.getText().equals("Transfer�ncia entre contas ")) {
                    boolean visible;
                    String billPlanText = billPlanComboTree.getText();
                    if (!billPlanText.equals("")) {
                        BillPlan billPlan = system.getBillPlan();
                        BillCategory billCategory = billPlan.get(billPlanText);
                        visible = billCategory.isIncoming();
                    } else {
                        visible = false;
                    }
                    paymentTypeCombo.setVisible(visible);
                    paymentTypeLabel.setVisible(visible);
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

                    page.addElement(drawRectangle(posX, posY, convert(190), 15, 0));
                    page.addElement(insertNormalText(operation.getId(), posX+2, posY, 35, 15));
                    page.addElement(drawVerticalLine(posX+40, posY, 15));
          page.addElement(insertNormalText(new SimpleDateFormat("dd/MM/yyyy HH:mm").format(operation.getDateTime().getDate()), posX+42, posY, 75, 15));
                    page.addElement(drawVerticalLine(posX+120, posY, 15));
                    BillCategory billCategory = (BillCategory) system.query(new GetBillCategory(operation.getCategoryId()));
                    page.addElement(insertNormalText( operation.getDescription().trim().equals("") ? billCategory.getDescription() : operation.getDescription() , posX+122, posY, 217, 15));
                    page.addElement(drawVerticalLine(posX+335, posY, 15));
                    page.addElement(insertRightText(operation.isCredit() ? new Money(operation.getValue()).getFormatedValue():"", posX+337, posY, 60));
                    page.addElement(drawVerticalLine(posX+400, posY, 15));
                    page.addElement(insertRightText(operation.isCredit() ? "" : new Money(operation.getValue()).getFormatedValue(), posX+402, posY, 60));
                    page.addElement(drawVerticalLine(posX+465, posY, 15));
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

    return systemConfigure;
  }

  public BillCategory getBillCategory() {
    if(billCategory == null){
      billCategory = new BillCategory();
    }
    return billCategory;
  }
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

        setReturnCode(buttonId);
    }

    private void addNewOperation() {
      if((extractBankItem.getAccount() == null ? new AccountsDialog(getShell(), this).open() == TitleAreaDialog.OK : true)) {
        BillCategory billCategory = system.getBillPlan().get(billPlanCombo.getText());
          String categoryId = billCategory.getId();
          new MoneyTransaction().accountOperationAndLinkExtractItem(account, categoryId, new GDDate(dateText.getText()), descriptionText.getText(), new Money(valueText.getText()).getFloatValue(), new PaymentMoney(), extractBankItem.getId());
          close();
      }
  }
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

        this.description = description;
    }

    @Override
    protected void execute(PrevalentSystem system) throws BusinessException {
        BillCategory parentBill = system.billCategory.get(parentDescription);
        BillCategory bill = system.billCategory.get(description);
        if(parentBill != null && bill != null) {
          parentBill.remove(bill);
        } else if(parentBill != null) {
          system.billCategory.remove(parentBill);
        }
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

    }


    @Override
    protected void execute(PrevalentSystem system) throws BusinessException {
        BillCategory billCategory = new BillCategory(description);
       
        if (parentDescription == null){
            system.getBillCategory().add(billCategory);
        } else {
            if(system.getBillCategory().get(description) == null)
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

       
        okButton.addListener(SWT.Selection, new Listener(){
            private String categoryIdReversal;

            public void handleEvent(Event arg0) {
                BillCategory billCategory = system.getBillPlan().get(billPlanCombo.getText());
                String categoryId = billCategory.getId();
                if(buttonPressed.equals("add")){
                    if((account.getLimit().getFloatValue() + account.getAmount().getFloatValue()) >= new Money(valueText.getText()).getFloatValue() || categoryId.charAt(0) == '1') {
                      TypeOfPayment paymentType = typeOfPaymentCombo.getPaymentType();
                      new MoneyTransaction().accountOperation(account, categoryId, new GDDate(dateText.getText()), descriptionText.getText(), new Money(valueText.getText()).getFloatValue(), paymentType);
                      clearTextFields();
View Full Code Here

Examples of br.com.visualmidia.business.BillCategory

  private boolean billPlanIsCredit() {
    boolean isCredit = false;
    String billPlanText = billPlanCombo.getText();
    if (!billPlanText.equals("")) {
        BillPlan billPlan = system.getBillPlan();
        BillCategory billCategory = billPlan.get(billPlanText);
        isCredit = billCategory.isIncoming();
    }
    return isCredit;
  }
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.