Package cli_fmw.utils

Examples of cli_fmw.utils.EmptyDialog


    }//GEN-LAST:event_btClientEditActionPerformed

private void cbClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbClientActionPerformed
  try {
        if (cbClient.isSelected()) {
            EmptyDialog dlg = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dlg, PanelUserSearch.MODE_SELECT);
            dlg.addNewPage(panel, null);
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                client = panel.getSelectedClient();
                tfClient.setText(client.toString());
                btClient.setEnabled(true);
            }
            else {
View Full Code Here


    }
}//GEN-LAST:event_cbClientActionPerformed

private void btClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btClientActionPerformed
    try {
        EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", getAuditManager());
        PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
        dialog.addNewPage((PageGeneric) panel, null);
        dialog.setVisible(true);
        if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
            client = panel.getSelectedClient();
            tfClient.setText(client.toString());
            btClient.setEnabled(true);
        }
    } catch (ClipsException ex) {
View Full Code Here

        selectClient();
}//GEN-LAST:event_btClientActionPerformed

private void selectClient() {
    try {
        EmptyDialog dlg = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", getAuditManager());
        PanelUserSearch panel = new PanelUserSearch(dlg, PanelUserSearch.MODE_SELECT);
        dlg.addNewPage(panel, null);
        dlg.setVisible(true);
        if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
            client = panel.getSelectedClient();
            if (client != null) {
                tfClient.setText(client.toString());
                btClient.setEnabled(true);
            } else {
View Full Code Here

            return;
        }
       
        //CollaboratorLocal newCollab=null;   
        // Показываем диалог выбора человека
        EmptyDialog dialog = new EmptyDialog(null, "", getAuditManager());
        PanelUserSearch pus = null;
        try {
            pus = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage(pus, null);
            dialog.setVisible(true);
        } catch (Exception ex) {
            if ((ex instanceof ClipsException) && !(ex instanceof PageException)) {
                setErrorMode();
            }
            MessageBox.showException(ex);
            return;
        }
        //Если выбор сделан
        if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
            if (!isDirty()) {
                try {
                    if (pus.getSelectedClient() == null) {
                        return;
                    }
View Full Code Here

        }
}//GEN-LAST:event_formWindowClosed

private void btcontraindicationsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btcontraindicationsActionPerformed
        try {
            EmptyDialog dialog = new EmptyDialog(this, "Непереносимость", getAuditManager());
            PanelContraindicationList panel = new PanelContraindicationList(dialog, checkUp.getSerrenLocal().getPolisData().getClient(getAuditManager()));
            dialog.addNewPage(panel, null);
                        dialog.setVisible(true);                                                  
        } catch (ClipsException ex) {
            ex.printStackTrace();
        }
}
View Full Code Here

     * мать
     * @param evt
     */
    private void btMotherSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btMotherSelectActionPerformed
        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор матери пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal mother = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                clientLocal.setMother(mother);
                if (mother != null) {
                    editMother.setText(mother.getSurname() + " " +
                            mother.getName() +
                            " " + mother.getPathron());
View Full Code Here

     * мать
     * @param evt
     */
    private void btFatherSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btFatherSelectActionPerformed
        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор отца пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal father = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                clientLocal.setFather(father);
                if (father != null) {
                    editFather.setText(father.getSurname() + " " +
                            father.getName() +
                            " " + father.getPathron());
View Full Code Here

//            }
  }//GEN-LAST:event_btSocialCardLinkActionPerformed

    private void btRepresentativeSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRepresentativeSelectActionPerformed
        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор представителя пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal representative = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                clientLocal.setRepresentative(representative);
                if (representative != null) {
                    editRepresentative.setText(representative.getSurname() + " " +
                            representative.getName() +
                            " " + representative.getPathron());
View Full Code Here

TOP

Related Classes of cli_fmw.utils.EmptyDialog

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.