package org.salamanca.ui;
import java.awt.BorderLayout;
import org.salamanca.broker.*;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JTabbedPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Font;
import java.awt.event.WindowEvent;
import java.awt.event.WindowAdapter;
import org.salamanca.domain.*;
import java.util.Vector;
import org.salamanca.reportes.calificacionescurso.*;
import javax.swing.*;
import org.salamanca.reportes.cursosexistentes.*;
import org.salamanca.reportes.alumnosdelinstituto.*;
import org.salamanca.reportes.alumnosdeuncurso.*;
import org.salamanca.reportes.alumnosporcurso.*;
import org.salamanca.commands.CommandLogger;
import java.util.logging.Level;
import java.io.*;
import org.salamanca.reportes.cobrosporcurso.CobrosPorCurso;
import org.salamanca.reportes.alumnosmorosos.AlumnosMorosos;
import javax.swing.event.AncestorEvent;
import javax.swing.event.AncestorListener;
import org.salamanca.reportes.alumnosmorosos.AlumnosMorososDeUnCurso;
import org.salamanca.reportes.alumnosmorosos.AlumnosMorososListadoGeneral;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class MainFrame extends JFrame {
public static boolean pageOrientationLandScape = false;
private int actualRole = User.PROFESOR;
BorderLayout borderLayout1 = new BorderLayout();
JMenuBar jMenuBar1 = new JMenuBar();
JMenu jMenu1 = new JMenu();
JMenu jMenu2 = new JMenu();
JMenu jMenu3 = new JMenu();
JMenu jMenu4 = new JMenu();
JMenu jMenu5 = new JMenu();
JMenu jMenu6 = new JMenu();
JMenu jMenu7 = new JMenu();
JMenuItem jMenuItem1 = new JMenuItem();
JMenuItem jMenuItem3 = new JMenuItem();
JMenuItem jMenuItem4 = new JMenuItem();
JMenuItem jMenuItem5 = new JMenuItem();
JMenuItem jMenuItem6 = new JMenuItem();
JMenuItem jMenuItem7 = new JMenuItem();
JMenuItem jMenuItem8 = new JMenuItem();
JMenuItem jMenuItem9 = new JMenuItem();
JMenuItem jMenuItem10 = new JMenuItem();
JMenuItem jMenuItem11 = new JMenuItem();
JMenuItem jMenuItem14 = new JMenuItem();
UserFrame userFrame;
LoginFrame loginFrame;
LoginFrame changePassword;
CursoFrame cursoFrame;
AlumnoFrame alumnoFrame;
public PersonaFrame personaFrame;
SelectCursoFrame selectCursoFrame;
CalificacionesFrame calificacionesFrame;
SelectCursoFrame selectReporteCalificacionesCursoFrame;
SelectCursoFrame selectReporteCalificacionesCursoFrameListado;
SelectCursoFrame selectReporteAlumnosCursoFrame;
ConfiguracionGeneralFrame configuracionGeneralFrame;
SelectCursoFrame selectPagosFrame;
PagosFrame pagosFrame;
FacturaFrame facturaFrame;
HistorialPagosFrame historialPagosFrame;
public FrameDescuentosPersona frameDescuentosPersona;
public ValeFrame valeFrame;
public RecargosTarjetasFrame recargosTarjetasFrame;
SelectCursoFrame selectCursoFrameMorosos;
JMenuItem jMenuItem12 = new JMenuItem();
JMenuItem jMenuItem13 = new JMenuItem();
JMenuItem jMenuItem2 = new JMenuItem();
JMenuItem jMenuItem15 = new JMenuItem();
JMenuItem jMenuItem16 = new JMenuItem();
JMenuItem jMenuItem17 = new JMenuItem();
JMenuItem jMenuItem18 = new JMenuItem();
JMenuItem jMenuItem19 = new JMenuItem();
JMenuItem jMenuItem20 = new JMenuItem();
JMenuItem jMenuItem21 = new JMenuItem();
JMenuItem jMenuItem22 = new JMenuItem();
public MainFrame() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
public MainFrame(boolean nada) {
userFrame = new UserFrame();
loginFrame = new LoginFrame(this, false);
changePassword = new LoginFrame(this, true);
cursoFrame = new CursoFrame(this);
alumnoFrame = new AlumnoFrame(this);
personaFrame = new PersonaFrame(this);
calificacionesFrame = new CalificacionesFrame();
selectCursoFrame = new SelectCursoFrame(this.calificacionesFrame);
CalificacionesCurso reporteCalificacionesCurso = new
CalificacionesCurso();
selectReporteCalificacionesCursoFrame = new SelectCursoFrame(
reporteCalificacionesCurso);
CalificacionesCursoLandscape reporteCalificacionesCursoListado = new
CalificacionesCursoLandscape();
selectReporteCalificacionesCursoFrameListado = new SelectCursoFrame(
reporteCalificacionesCursoListado);
AlumnosDeUnCurso reporteAlumnosDeUnCurso = new
AlumnosDeUnCurso();
selectReporteAlumnosCursoFrame = new SelectCursoFrame(
reporteAlumnosDeUnCurso);
configuracionGeneralFrame = new ConfiguracionGeneralFrame();
pagosFrame = new PagosFrame(this);
selectPagosFrame = new SelectCursoFrame(this.pagosFrame);
facturaFrame = new FacturaFrame(this);
historialPagosFrame = new HistorialPagosFrame();
frameDescuentosPersona = new FrameDescuentosPersona(this);
valeFrame = new ValeFrame();
recargosTarjetasFrame = new RecargosTarjetasFrame(this);
selectCursoFrameMorosos = new SelectCursoFrame();
try {
jbInit();
this.initUserFrame();
this.initLoginFrame();
this.initChangePasswordFrame();
this.initCursoFrame();
this.initPersonaFrame();
this.initAlumnoFrame();
this.initSelectCursoFrame();
this.initCalificacionesFrame();
this.initReporteCalificacionesCurso();
this.initReporteCalificacionesCursoFrameListado();
this.initReporteAlumnosCurso();
this.initConfiguracionGeneral();
this.initSelectPagosFrame();
this.initPagosFrame();
this.initFacturaFrame();
this.initHistorialPagosFrame();
this.initFrameDescuentosPersona();
this.initValeFrame();
this.initRecargosTarjetasFrame();
initSelectCursoFrameMorosos();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
getContentPane().setLayout(null);
this.setJMenuBar(jMenuBar1);
this.setTitle("Saint Thomas - Sistema de Administraci�n");
this.addWindowListener(new MainFrame_this_windowAdapter(this));
jMenu1.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu1.setText("Seguridad");
jMenu1.addActionListener(new MainFrame_jMenu1_actionAdapter(this));
jMenu2.setEnabled(false);
jMenu2.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu2.setText("Configuraci�n");
jMenu3.setEnabled(false);
jMenu3.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu3.setText("Administraci�n");
jMenu4.setEnabled(false);
jMenu4.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu4.setText("Profesores");
jMenu5.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu5.setText("Reportes");
jMenu6.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu6.setText("Ventana");
jMenu7.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenu7.setText("?");
jMenuItem1.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem1.setText("Cursos");
jMenuItem1.addActionListener(new MainFrame_jMenuItem1_actionAdapter(this));
jMenuItem3.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem3.setText("Descuentos y Recargo morosos");
jMenuItem3.addActionListener(new MainFrame_jMenuItem3_actionAdapter(this));
jMenuItem4.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem4.setText("Inscripci�n alumnos");
jMenuItem4.addActionListener(new MainFrame_jMenuItem4_actionAdapter(this));
jMenuItem5.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem5.setText("Facturaci�n");
jMenuItem5.addActionListener(new MainFrame_jMenuItem5_actionAdapter(this));
jMenuItem6.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem6.setText("Cursos existentes");
jMenuItem6.addActionListener(new MainFrame_jMenuItem6_actionAdapter(this));
jMenuItem7.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem7.setText("Calificaciones Libreta");
jMenuItem7.addActionListener(new MainFrame_jMenuItem7_actionAdapter(this));
jMenuItem8.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem8.setText("Calificaciones");
jMenuItem8.addActionListener(new MainFrame_jMenuItem8_actionAdapter(this));
jMenuItem9.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem9.setText("Alumnos del instituto");
jMenuItem9.addActionListener(new MainFrame_jMenuItem9_actionAdapter(this));
jMenuItem10.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem10.setText("Alumnos por curso");
jMenuItem10.addActionListener(new MainFrame_jMenuItem10_actionAdapter(this));
jMenuItem11.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem11.setText("Ayuda");
jMenuItem14.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem14.setText("Crear Usuario");
jMenuItem14.addActionListener(new MainFrame_jMenuItem14_actionAdapter(this));
jMenuItem12.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem12.setText("Cambiar Password");
jMenuItem12.addActionListener(new MainFrame_jMenuItem12_actionAdapter(this));
jMenuItem13.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem13.setText("Login");
jMenuItem13.addActionListener(new MainFrame_jMenuItem13_actionAdapter(this));
jMenuItem2.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem2.setText("Alumnos de un curso");
jMenuItem2.addActionListener(new MainFrame_jMenuItem2_actionAdapter(this));
jMenuItem15.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem15.setText("Historial facturaci�n");
jMenuItem15.addActionListener(new MainFrame_jMenuItem15_actionAdapter(this));
jMenuItem16.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem16.setText("Recargo formas de pago");
jMenuItem16.addActionListener(new MainFrame_jMenuItem16_actionAdapter(this));
jMenuItem17.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem17.setText("Log");
jMenuItem17.addActionListener(new MainFrame_jMenuItem17_actionAdapter(this));
jMenuItem18.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem18.setText("Dinero a cobrar por curso");
jMenuItem18.addActionListener(new MainFrame_jMenuItem18_actionAdapter(this));
jMenuItem19.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem19.setText("Alumnos morosos por curso");
jMenuItem19.addActionListener(new MainFrame_jMenuItem19_actionAdapter(this));
jMenuItem20.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem20.setText("Alumnos morosos de un curso");
jMenuItem20.addAncestorListener(new
MainFrame_jMenuItem20_ancestorAdapter(this));
jMenuItem20.addActionListener(new MainFrame_jMenuItem20_actionAdapter(this));
jMenuItem21.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem21.setText("Alumnos morosos listado general");
jMenuItem21.addActionListener(new MainFrame_jMenuItem21_actionAdapter(this));
jMenuItem22.setFont(new java.awt.Font("Arial", Font.PLAIN, 11));
jMenuItem22.setText("Calificaciones Listado");
jMenuItem22.addActionListener(new MainFrame_jMenuItem22_actionAdapter(this));
jMenuBar1.add(jMenu1);
jMenuBar1.add(jMenu2);
jMenuBar1.add(jMenu3);
jMenuBar1.add(jMenu4);
jMenuBar1.add(jMenu5);
jMenuBar1.add(jMenu6);
jMenuBar1.add(jMenu7);
jMenu2.add(jMenuItem1);
jMenu2.add(jMenuItem3);
jMenu2.add(jMenuItem16);
jMenu2.addSeparator();
jMenu2.add(jMenuItem14);
jMenu3.add(jMenuItem4);
jMenu3.add(jMenuItem5);
jMenu3.add(jMenuItem15);
jMenu3.add(jMenuItem17);
jMenu5.add(jMenuItem6);
jMenu5.add(jMenuItem7);
jMenu5.add(jMenuItem22);
jMenu5.add(jMenuItem9);
jMenu5.add(jMenuItem10);
jMenu5.add(jMenuItem2);
jMenu5.add(jMenuItem18);
jMenu5.add(jMenuItem19);
jMenu5.add(jMenuItem20);
jMenu5.add(jMenuItem21);
jMenu4.add(jMenuItem8);
jMenu7.add(jMenuItem11);
jMenu1.add(jMenuItem13);
jMenu1.add(jMenuItem12);
}
public void jMenu1_actionPerformed(ActionEvent e) {
}
public void jMenuItem14_actionPerformed(ActionEvent e) {
userFrame.show();
}
/**
* initUserFrame
*/
private void initUserFrame() {
userFrame.setSize(340, 235);
userFrame.setClosable(true);
userFrame.setIconifiable(false);
this.getContentPane().add(userFrame);
}
private void initLoginFrame() {
loginFrame.setSize(255, 175);
loginFrame.setClosable(true);
loginFrame.setIconifiable(false);
this.getContentPane().add(loginFrame);
}
private void initChangePasswordFrame() {
changePassword.setSize(255, 175);
changePassword.setClosable(true);
changePassword.setIconifiable(false);
this.getContentPane().add(changePassword);
}
private void initAlumnoFrame() {
alumnoFrame.setSize(590, 520);
alumnoFrame.setClosable(true);
alumnoFrame.setIconifiable(false);
this.getContentPane().add(alumnoFrame);
}
private void initCursoFrame() {
cursoFrame.setSize(520, 463);
cursoFrame.setClosable(true);
cursoFrame.setIconifiable(false);
this.getContentPane().add(cursoFrame);
}
private void initPersonaFrame() {
personaFrame.setSize(520, 463);
personaFrame.setClosable(true);
personaFrame.setIconifiable(false);
this.getContentPane().add(personaFrame);
}
private void initSelectCursoFrame() {
selectCursoFrame.setSize(520, 463);
selectCursoFrame.setClosable(true);
selectCursoFrame.setIconifiable(false);
this.getContentPane().add(selectCursoFrame);
}
private void initCalificacionesFrame() {
calificacionesFrame.setSize(520, 463);
calificacionesFrame.setClosable(true);
calificacionesFrame.setIconifiable(false);
this.getContentPane().add(calificacionesFrame);
}
private void initReporteCalificacionesCurso() {
selectReporteCalificacionesCursoFrame.setSize(520, 463);
selectReporteCalificacionesCursoFrame.setClosable(true);
selectReporteCalificacionesCursoFrame.setIconifiable(false);
this.getContentPane().add(selectReporteCalificacionesCursoFrame);
}
private void initReporteCalificacionesCursoFrameListado() {
selectReporteCalificacionesCursoFrameListado.setSize(520, 463);
selectReporteCalificacionesCursoFrameListado.setClosable(true);
selectReporteCalificacionesCursoFrameListado.setIconifiable(false);
this.getContentPane().add(selectReporteCalificacionesCursoFrameListado);
}
private void initReporteAlumnosCurso() {
selectReporteAlumnosCursoFrame.setSize(520, 463);
selectReporteAlumnosCursoFrame.setClosable(true);
selectReporteAlumnosCursoFrame.setIconifiable(false);
this.getContentPane().add(selectReporteAlumnosCursoFrame);
}
private void initConfiguracionGeneral() {
configuracionGeneralFrame.setSize(520, 463);
configuracionGeneralFrame.setClosable(true);
configuracionGeneralFrame.setIconifiable(false);
this.getContentPane().add(configuracionGeneralFrame);
}
private void initSelectPagosFrame() {
selectPagosFrame.setSize(520, 463);
selectPagosFrame.setClosable(true);
selectPagosFrame.setIconifiable(false);
this.getContentPane().add(selectPagosFrame);
}
private void initPagosFrame() {
pagosFrame.setSize(520, 463);
pagosFrame.setClosable(true);
pagosFrame.setIconifiable(false);
this.getContentPane().add(pagosFrame);
}
private void initFacturaFrame() {
facturaFrame.setSize(450, 463);
facturaFrame.setClosable(true);
facturaFrame.setIconifiable(false);
this.getContentPane().add(facturaFrame);
}
private void initHistorialPagosFrame() {
historialPagosFrame.setSize(450, 540);
historialPagosFrame.setClosable(true);
historialPagosFrame.setIconifiable(false);
this.getContentPane().add(historialPagosFrame);
}
private void initFrameDescuentosPersona() {
frameDescuentosPersona.setSize(450, 540);
frameDescuentosPersona.setClosable(true);
frameDescuentosPersona.setIconifiable(false);
this.getContentPane().add(frameDescuentosPersona);
}
private void initValeFrame() {
valeFrame.setSize(450, 540);
valeFrame.setClosable(true);
valeFrame.setIconifiable(false);
this.getContentPane().add(valeFrame);
}
private void initRecargosTarjetasFrame() {
recargosTarjetasFrame.setSize(450, 540);
recargosTarjetasFrame.setClosable(true);
recargosTarjetasFrame.setIconifiable(false);
this.getContentPane().add(recargosTarjetasFrame);
}
private void initSelectCursoFrameMorosos() {
selectCursoFrameMorosos.setSize(520, 463);
selectCursoFrameMorosos.setClosable(true);
selectCursoFrameMorosos.setIconifiable(false);
this.getContentPane().add(selectCursoFrameMorosos);
}
public void login(User user) {
try {
CommandLogger.log(Level.FINE, "----LOGIN:=>" + user.getName());
} catch (SecurityException ex) {
} catch (IOException ex) {
}
if (user.getRole() == User.ADMINISTRADOR) {
actualRole = User.ADMINISTRADOR;
this.jMenu2.setEnabled(true);
this.jMenu3.setEnabled(false);
this.jMenu4.setEnabled(false);
}
if (user.getRole() == User.ADMINISTRATIVO) {
actualRole = User.ADMINISTRATIVO;
this.jMenu2.setEnabled(false);
this.jMenu3.setEnabled(true);
this.jMenu4.setEnabled(false);
}
if (user.getRole() == User.PROFESOR) {
actualRole = User.PROFESOR;
this.jMenu2.setEnabled(false);
this.jMenu3.setEnabled(false);
this.jMenu4.setEnabled(true);
}
}
public void this_windowClosing(WindowEvent e) {
org.salamanca.broker.BrokerServer.instance().getPMF().close();
}
public void jMenuItem12_actionPerformed(ActionEvent e) {
this.changePassword.show();
}
public void jMenuItem13_actionPerformed(ActionEvent e) {
this.loginFrame.show();
}
public void jMenuItem1_actionPerformed(ActionEvent e) {
cursoFrame.show();
}
public void jMenuItem4_actionPerformed(ActionEvent e) {
this.alumnoFrame.show();
}
public int getActualRole() {
return actualRole;
}
public void setActualRole(int actualRole) {
this.actualRole = actualRole;
}
public void jMenuItem8_actionPerformed(ActionEvent e) {
this.selectCursoFrame.show();
}
public void jMenuItem7_actionPerformed(ActionEvent e) {
selectReporteCalificacionesCursoFrame.show();
}
public void jMenuItem6_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
BrokerServer.instance().
getYearPreference());
try {
int a�o = Integer.parseInt(str);
CursosExistentes reporteCursosExistentes =
new CursosExistentes();
reporteCursosExistentes.setA�o(a�o);
reporteCursosExistentes.display();
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "A�o incorrecto");
}
}
public void jMenuItem9_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
BrokerServer.instance().
getYearPreference());
try {
int a�o = Integer.parseInt(str);
AlumnosdelInstituto alumnosdelInstituto =
new AlumnosdelInstituto();
alumnosdelInstituto.setA�o(a�o);
alumnosdelInstituto.display();
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "A�o incorrecto");
}
}
public void jMenuItem10_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
BrokerServer.instance().
getYearPreference());
try {
int a�o = Integer.parseInt(str);
AlumnosPorCurso alumnosPorCurso =
new AlumnosPorCurso();
alumnosPorCurso.setA�o(a�o);
alumnosPorCurso.display();
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "A�o incorrecto");
}
}
public void jMenuItem3_actionPerformed(ActionEvent e) {
configuracionGeneralFrame.show();
}
public void jMenuItem2_actionPerformed(ActionEvent e) {
selectReporteAlumnosCursoFrame.show();
}
public void jMenuItem5_actionPerformed(ActionEvent e) {
this.selectPagosFrame.show();
}
public void jMenuItem15_actionPerformed(ActionEvent e) {
this.historialPagosFrame.show();
}
public void jMenuItem16_actionPerformed(ActionEvent e) {
this.recargosTarjetasFrame.show();
}
public void jMenuItem17_actionPerformed(ActionEvent e) {
LogFrame logFrame = new LogFrame();
logFrame.setSize(640, 480);
logFrame.show();
}
public void jMenuItem18_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
BrokerServer.instance().
getYearPreference());
int a�o = 0;
int mes = 0;
boolean conPagosExtra = false;
try {
a�o = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "A�o incorrecto");
return;
}
str = JOptionPane.showInputDialog(this, "Ingrese el mes",
"1");
try {
mes = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Mes incorrecto");
return;
}
int opcion = JOptionPane.showConfirmDialog(
this,
"�Incluir pagos extra?", "Seleccione opcion",
JOptionPane.YES_NO_OPTION);
try {
if (opcion == 0) {
conPagosExtra = true;
}
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Opcion incorrecta");
return;
}
CobrosPorCurso reporteCobrosPorCurso =
new CobrosPorCurso();
reporteCobrosPorCurso.setPagoextraIncuido(conPagosExtra);
reporteCobrosPorCurso.setA�o(a�o);
reporteCobrosPorCurso.setMes(mes);
reporteCobrosPorCurso.display();
}
public void jMenuItem19_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
BrokerServer.instance().
getYearPreference());
int a�o = 0;
int mes = 0;
try {
a�o = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "A�o incorrecto");
return;
}
str = JOptionPane.showInputDialog(this,
"Ingrese el mes hasta el cual se exigiran los pagos",
"1");
try {
mes = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Mes incorrecto");
return;
}
AlumnosMorosos reporteAlumnosMorosos =
new AlumnosMorosos();
reporteAlumnosMorosos.setA�o(a�o);
reporteAlumnosMorosos.setMes(mes);
reporteAlumnosMorosos.display();
}
public void jMenuItem20_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this,
"Ingrese el mes hasta el cual se exigiran los pagos",
"1");
int mes;
try {
mes = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Mes incorrecto");
return;
}
AlumnosMorososDeUnCurso reporte = new AlumnosMorososDeUnCurso();
reporte.setMes(mes);
selectCursoFrameMorosos.setSelectable(reporte);
selectCursoFrameMorosos.show();
}
public void jMenuItem20_ancestorAdded(AncestorEvent event) {
}
public void jMenuItem21_actionPerformed(ActionEvent e) {
String str = JOptionPane.showInputDialog(this, "Ingrese el a�o",
BrokerServer.instance().
getYearPreference());
int a�o = 0;
int mes = 0;
try {
a�o = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "A�o incorrecto");
return;
}
str = JOptionPane.showInputDialog(this,
"Ingrese el mes hasta el cual se exigiran los pagos",
"1");
try {
mes = Integer.parseInt(str);
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Mes incorrecto");
return;
}
AlumnosMorososListadoGeneral reporteAlumnosMorosos =
new AlumnosMorososListadoGeneral();
reporteAlumnosMorosos.setA�o(a�o);
reporteAlumnosMorosos.setMes(mes);
reporteAlumnosMorosos.display();
}
public void jMenuItem22_actionPerformed(ActionEvent e) {
selectReporteCalificacionesCursoFrameListado.show();
}
}
class MainFrame_jMenuItem22_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem22_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem22_actionPerformed(e);
}
}
class MainFrame_jMenuItem20_ancestorAdapter implements AncestorListener {
private MainFrame adaptee;
MainFrame_jMenuItem20_ancestorAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void ancestorAdded(AncestorEvent event) {
adaptee.jMenuItem20_ancestorAdded(event);
}
public void ancestorRemoved(AncestorEvent event) {
}
public void ancestorMoved(AncestorEvent event) {
}
}
class MainFrame_jMenuItem20_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem20_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem20_actionPerformed(e);
}
}
class MainFrame_jMenuItem19_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem19_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem19_actionPerformed(e);
}
}
class MainFrame_jMenuItem21_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem21_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem21_actionPerformed(e);
}
}
class MainFrame_jMenuItem18_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem18_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem18_actionPerformed(e);
}
}
class MainFrame_jMenuItem17_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem17_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem17_actionPerformed(e);
}
}
class MainFrame_jMenuItem16_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem16_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem16_actionPerformed(e);
}
}
class MainFrame_jMenuItem15_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem15_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem15_actionPerformed(e);
}
}
class MainFrame_jMenuItem5_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem5_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem5_actionPerformed(e);
}
}
class MainFrame_jMenuItem2_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem2_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem2_actionPerformed(e);
}
}
class MainFrame_jMenuItem3_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem3_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem3_actionPerformed(e);
}
}
class MainFrame_jMenuItem10_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem10_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem10_actionPerformed(e);
}
}
class MainFrame_jMenuItem9_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem9_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem9_actionPerformed(e);
}
}
class MainFrame_jMenuItem6_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem6_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem6_actionPerformed(e);
}
}
class MainFrame_jMenuItem7_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem7_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem7_actionPerformed(e);
}
}
class MainFrame_jMenuItem8_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem8_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem8_actionPerformed(e);
}
}
class MainFrame_jMenuItem4_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem4_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem4_actionPerformed(e);
}
}
class MainFrame_jMenuItem1_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem1_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem1_actionPerformed(e);
}
}
class MainFrame_jMenuItem13_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem13_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem13_actionPerformed(e);
}
}
class MainFrame_jMenuItem12_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem12_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem12_actionPerformed(e);
}
}
class MainFrame_this_windowAdapter extends WindowAdapter {
private MainFrame adaptee;
MainFrame_this_windowAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void windowClosing(WindowEvent e) {
adaptee.this_windowClosing(e);
}
}
class MainFrame_jMenuItem14_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenuItem14_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenuItem14_actionPerformed(e);
}
}
class MainFrame_jMenu1_actionAdapter implements ActionListener {
private MainFrame adaptee;
MainFrame_jMenu1_actionAdapter(MainFrame adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jMenu1_actionPerformed(e);
}
}