Ejemplo n.º 1
0
 private void paymentButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_paymentButtonActionPerformed
   // TODO add your handling code here:
   Client client = (Client) clienteTableFrame.getSelectRow();
   if (client != null) {
     paymentWindow.setClient(client);
     paymentWindow.setVisible(true);
   } else {
     JOptionPane.showMessageDialog(this, "Não há um cliente selecionado");
   }
 } // GEN-LAST:event_paymentButtonActionPerformed
Ejemplo n.º 2
0
  private void financeButtonActionPerformed(
      java.awt.event.ActionEvent evt) { // GEN-FIRST:event_financeButtonActionPerformed
    // TODO add your handling code here:
    Client client = (Client) clienteTableFrame.getSelectRow();
    if (client != null) {
      financeClienWindow.setClient(client);
      financeClienWindow.setVisible(rootPaneCheckingEnabled);

    } else {
      JOptionPane.showMessageDialog(this, "Não há um cliente selecionado");
    }
  } // GEN-LAST:event_financeButtonActionPerformed
Ejemplo n.º 3
0
 /** Creates new form SmartGymEmployeePanel */
 public MainWindow() {
   initComponents();
   // Controladores
   clientController = new ClientJpaController(PersistenceUnit.getEntityManagerFactory());
   // Janela Auxiliares
   clientCrudWindow =
       new ClientCrudWindow(
           this, true, CrudWindowType.CREATE, PersistenceUnit.getEntityManagerFactory());
   paymentWindow =
       new PaymentWindow(this, true, PersistenceUnit.getEntityManagerFactory(), employee);
   financeClienWindow =
       new FinanceClientWindow(this, true, PersistenceUnit.getEntityManagerFactory(), employee);
   // Tabela da janela principal
   clienteTableFrame = new ClientTableFrame();
   clienteTableFrame.setVisible(true);
   tablePane.add(clienteTableFrame);
 }
Ejemplo n.º 4
0
 private void searchButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_searchButtonActionPerformed
   // TODO add your handling code here:
   clienteTableFrame.setObjectList(
       clientController.findClinteEntitiesByName(searchClientNameTextField.getText()));
 } // GEN-LAST:event_searchButtonActionPerformed