Examples of GetRegistration


Examples of br.com.visualmidia.persistence.GetRegistration

                    TableItem[] item = paymentTable.getSelection();
                    String[] idRegistration = item[0].getText(0).split("/");
                   
                    Registration registration;
                    try {
                        registration = (Registration) system.query(new GetRegistration(idRegistration[0]));
                       
                        List <Parcel> list =  registration.getParcels();
                       
                        Parcel parcel = list.get(Integer.parseInt(idRegistration[1])-1);
                       
View Full Code Here

Examples of br.com.visualmidia.persistence.GetRegistration

                if (paymentTable.getSelectionIndex() >= 0) {
                    setMessage(MESSAGE, IMessageProvider.INFORMATION);
                    try {
                        TableItem[] item = paymentTable.getSelection();
                        String[] idRegistration = item[0].getText(0).split("/");
                        Registration registration = (Registration) system.query(new GetRegistration(idRegistration[0]));
                        List<Parcel> list = registration.getParcels();
                        if(list.size() > 0){
                      MergeSortAlgorithm sort = new MergeSortAlgorithm();
                      sort.sortParcelByDate(list);
                      int counter = Integer.valueOf(idRegistration[1])-1;
View Full Code Here

Examples of br.com.visualmidia.persistence.GetRegistration

        super(parent, style);
        system = GDSystem.getInstance();
        this.mainScreen = mainScreen;
        this.idPerson = idPerson;
        try {
      this.selectedRegistration = (Registration) system.query(new GetRegistration(idRegistrations));
    } catch (Exception e) {
      e.printStackTrace();
    }
        gdWindow = GDWindowControl.getInstance();
    }
View Full Code Here

Examples of br.com.visualmidia.persistence.GetRegistration

        });
       
        studentRegistrationTable.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event arg0) {
                try {
                    selectedRegistration = (Registration) system.query(new GetRegistration(studentRegistrationTable.getSelection()[0].getText(0)));
                    parcelTable.setEnabled(true);
                    updateParcelTable(selectedRegistration.getParcels());
                } catch (Exception e) {
                    logger.error("GetRegistration Error",e);
                }
View Full Code Here

Examples of br.com.visualmidia.persistence.GetRegistration

    protected void buttonPressed(int event) {
        if(event == OK) {
            try {
                if(registrationTable.getSelectionCount() != 0) {
                    TableItem[] item = registrationTable.getSelection();
                    Registration registration = (Registration) system.query(new GetRegistration(item[0].getText()));
                   
                    if(!registrationMap.isPersonHasAppointmentsOrReplacementsOnThatDate(date, registration.getStudent())) {
                      registrationMap.addAppointment(date, registration);
                        close();
                    } else {
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.