Package br.com.visualmidia.business

Examples of br.com.visualmidia.business.GDDate


        Button printReport = new Button(buttons, SWT.PUSH);
        printReport.setText("Visualizar");
        printReport.addListener(SWT.MouseDown, new Listener(){
           
            public void handleEvent(Event arg0) {
              if(new GDDate(initialDateText.getText()).afterDay(new GDDate(finalDateText.getText()))){
                setErrorMessage("A data inicial deve ser menor que a data final.");
                initialDateText.setFocus();
                } else {
                  setScreenMessage("");
                  if(expendituresRadioButton.getSelection()) {
                    CreateReports.createExpendituresOrIncomingReport(0, new GDDate(initialDateText.getText()), new GDDate(finalDateText.getText()));
                  } else if(incomingRadioButton.getSelection()) {
                    CreateReports.createExpendituresOrIncomingReport(1, new GDDate(initialDateText.getText()), new GDDate(finalDateText.getText()));
                  }
                }
            }
        });
       
View Full Code Here


            if(checkFields()){
              float parentValue = 0f;
              if(!parentText.getText().equals("")){
                parentValue = new Money(parentText.getText()).getFloatValue();
                if(new Money(receivedValueText.getText()).getFloatValue() >= parentValue) {
                  paymentCheck = new PaymentCheck(new GDDate(checkDateText.getText()), getBankText(), getAgencyText(), getAccountNumberText(), getCheckNumberText(), getAccountOwnerText(), getPhoneText(), getObservationText(), localization, new Money(receivedValueText.getText()));
                  parentText.setText(receivedValueText.getText());
                  close();
                } else {
                  setMessage("O valor do cheque tem que ser maior ou igual ao valor a ser pago", IMessageProvider.ERROR);
                }
              }else{
                paymentCheck = new PaymentCheck(new GDDate(checkDateText.getText()), getBankText(), getAgencyText(), getAccountNumberText(), getCheckNumberText(), getAccountOwnerText(), getPhoneText(), getObservationText(), localization, new Money(receivedValueText.getText()));
                parentText.setText(receivedValueText.getText());
                close();
              }
            }else{
                return;
View Full Code Here

        checkDateLabel.setText("Data do Cheque:");

        checkDateText = new DateText(dialog, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
       
        if(!isGoodForCheck){
            checkDateText.setValue((paymentDialog == null || paymentDialog.getDate() == null ? new GDDate().getDate() : paymentDialog.getDate().getDate()));
        }

        GridData data = new GridData(GridData.FILL);
        data.widthHint = 100;
        checkDateText.setLayoutData(data);
View Full Code Here

    public String getCheckDateText() {
        return checkDateText.getText();
    }

    public void setCheckDateText(String checkDateText) {
        this.checkDateText.setValue(new GDDate(checkDateText).getDate());
    }
View Full Code Here

            }
            new MergeSortAlgorithm().sortRegistrationByName(registrationList);
           
            for (Registration registration : registrationList) {
               
              GDDate dateRegistration = new GDDate(registration.getRegistrationDate());
               
                if(dateRegistration.beforeOrEqualsDay(finishDate) && dateRegistration.afterOrEqualsDay(startDate)){
                    Person person = (Person) system.query(new GetPerson(registration.getIdPerson()));
                    String genderChar = (person.getGender().equals("Masculino")?"o":"a");
                   
                    JRPrintPage page = new JRBasePrintPage();
                   
View Full Code Here

        });
    }

    private void createEndDateText() {
        endDateText = new DateText(registrationComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        endDateText.setValue(new GDDate().getDate());
       
        FormData data = new FormData();
        data.top = new FormAttachment(endDateLabel, 1);
        data.left = new FormAttachment(initialDateText, 5);
        data.right = new FormAttachment(50, 0);
View Full Code Here

        createIgnoreDateCheck();
    }

    private void createInitialDateText() {
        initialDateText = new DateText(registrationComposite, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
        initialDateText.setValue(new GDDate().getDate());

        FormData data = new FormData();
        data.top = new FormAttachment(inicialDateLabel, 1);
        data.left = new FormAttachment(0, 0);
        data.right = new FormAttachment(25, 0);
View Full Code Here

        Button print = new Button(buttons, SWT.PUSH);
        print.setText("Visualizar");
        print.addListener(SWT.MouseDown, new Listener() {
            public void handleEvent(Event arg0) {
              if(new GDDate(initialDateText.getText()).afterDay(new GDDate(endDateText.getText()))){
                setErrorMessage("A data inicial deve ser menor que a data final.");
                initialDateText.setFocus();
              } else {
                if(getStatusList().size() == 0 && registrationFinalityRadio.getSelection()){
                  screenMessageLabel.setText("Voc� deve selecionar pelo menos um estado de aluno finalizado.");
                  screenMessageLabel.redraw();
                } else {
                  screenMessageLabel.setVisible(false);
                  setScreenMessage("");
                  screenMessageLabel.setText("");
                  screenMessageLabel.redraw();
                  if(notRegisteredRadio.getSelection()){
                    CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), null, 4, ignoreDateCheck.getSelection());
                  } else if (registrationRadio.getSelection()){
                    if(optionRadioButton1.getSelection()){
                      CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), null, 1, ignoreDateCheck.getSelection());
                    } else if (optionRadioButton2.getSelection()){
                      CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), null, 2, ignoreDateCheck.getSelection());
                    } else if (optionRadioButton3.getSelection()){
                      CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), null, 3, ignoreDateCheck.getSelection());
                    } else if (optionRadioButton4.getSelection()) {
                      CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), null, 6, ignoreDateCheck.getSelection());
                    } else if (optionRadioButton5.getSelection()) {
                      CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), null, 7, ignoreDateCheck.getSelection());
                }
                  } else if(registrationFinalityRadio.getSelection()){
                    CreateReports.createStudentRegistrationWithRestrictionReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()),getStatusList()5, ignoreDateCheck.getSelection());
                  } else {
                    CreateReports.createStudentRegistrationWithoutParcelsReport(new GDDate(initialDateText.getText()), new GDDate(endDateText.getText()), ignoreDateCheck.getSelection());
                  }
                  screenMessageLabel.setVisible(true);
                }
              }
            }
View Full Code Here

    private void gatherExpenditureInformation() {
        try {
            expenditure = (Expenditure) system.query(new GetExpenditures(expenditureId));
            expenditureDescription = expenditure.getDescription();
            expenditureTotal = MoneyMask.format(expenditure.getValue().getValue());
            expenditureDate = new GDDate(expenditure.getNextPaymentDate()).getFormatedDate();
        } catch (Exception e) {
            e.printStackTrace();
        }
       
    }
View Full Code Here

         * 6 - Trimestral
         * 7 - Quadrimestral
         * 8 - Semestral
         * 9 - Anual
         */
      GDDate nextExpenditurePaymentDate = expenditure.getNextPaymentDate();
         int frequency = expenditure.getFrequency();
         if (frequency == 1)
             nextExpenditurePaymentDate.addDays(1);//(Calendar.DAY_OF_MONTH, 1);
         else if (frequency == 2)
             nextExpenditurePaymentDate.addDays(7);//(Calendar.DAY_OF_MONTH, 7);
         else if (frequency == 3)
             nextExpenditurePaymentDate.addDays(14);//(Calendar.DAY_OF_MONTH, 14);
         else if (frequency == 4)
             nextExpenditurePaymentDate.addMonth(1);//(Calendar.MONTH, 1);
         else if (frequency == 5)
             nextExpenditurePaymentDate.addMonth(5);//(Calendar.MONTH, 2);
         else if (frequency == 6)
             nextExpenditurePaymentDate.addMonth(3);//(Calendar.MONTH, 3);
         else if (frequency == 7)
             nextExpenditurePaymentDate.addMonth(4);//(Calendar.MONTH, 4);
         else if (frequency == 8)
             nextExpenditurePaymentDate.addMonth(6);//(Calendar.MONTH, 6);
         else if (frequency == 9)
             nextExpenditurePaymentDate.addYear(1);//(Calendar.YEAR, 1);
        
         return nextExpenditurePaymentDate;
    }
View Full Code Here

TOP

Related Classes of br.com.visualmidia.business.GDDate

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.