Package cli_fmw.utils

Examples of cli_fmw.utils.EmptyDialog


     * @param evt
     */
private void chbClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chbClientActionPerformed
    if (chbClient.isSelected()) {
// Показываем диалог выбора человека
        EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", 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)) {
            }
            MessageBox.showException(ex);
            return;
        }
        if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
            ClientLocal cl = pus.getSelectedClient();
            if (cl != null){
                tfClient.setText(cl.toString());
                jPanel2.revalidate();
                filter.clientId = cl.getID();
View Full Code Here


* смена клиенту
* @param evt
*/
private void btClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btClientActionPerformed
// Показываем диалог выбора человека
    EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", 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) {
        ClientLocal cl = pus.getSelectedClient();
        tfClient.setText(cl.toString());
        jPanel2.revalidate();
        filter.clientId = chbClient.isSelected() ? cl.getID() : 0;
    }
View Full Code Here

    }//GEN-LAST:event_jScrollPane1ComponentResized

    private void btAddPolisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddPolisActionPerformed
        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор члена договора", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_MULTISELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            if(dialog.getDlgResult() == ModalDialog.DLG_OK) {
                ArrayList<ClientLocal> clientList = panel.getSelectedClientList();
                DirectoryInsurerItem insItem;
                if (polisList.size() > 0) {
                    insItem = polisList.get(0).getInsurer();
                }
View Full Code Here

        }
    }//GEN-LAST:event_btServiceActionPerformed

    private void btContractActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btContractActionPerformed
        try {
            EmptyDialog dlg = new EmptyDialog(MainWindow.mainWindow, "Выбор контракта", getAuditManager());
            PanelContractSearch panel = new PanelContractSearch(dlg, true);
            dlg.addNewPage(panel, null);
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                contract = panel.getSelectedContract();
                if (contract != null) {
                    tfContract.setText(contract.getInfo());
                }
                else {
View Full Code Here

}//GEN-LAST:event_btCancelActionPerformed

    private void cbClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbClientActionPerformed
        try {
            if (cbClient.isSelected()) {
                EmptyDialog dlg = new EmptyDialog(this, "Поиск пациента", 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 {
                    client = null;
View Full Code Here

        }
}//GEN-LAST:event_cbClientActionPerformed

    private void btClientActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btClientActionPerformed
        try {
            EmptyDialog dlg = new EmptyDialog(null, "Выбор пациента", 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);
            }
        } catch (ClipsException ex) {
View Full Code Here

            try {
                ClientLocal client = null;
                if(defaultClient != null) {
                    client = defaultClient;
                } else {
                    EmptyDialog dialog = new EmptyDialog(null, "Выбор пациента", getAuditManager());
                    PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
                    dialog.addNewPage(panel, null);
                    dialog.setVisible(true);
                    if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                        client = panel.getSelectedClient();
                    } else {
                        return;
                    }
                }
View Full Code Here

        if (row < 0 || evt.getClickCount() < 2 || col != TableModelPollingCollabData.COL_CLIENT) {
            return;
        }
        ColDataKey key = keyList.get(row);
        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            String surName = dirSurname.getItemFromID(key.surnameID).getTitle();
            String name = dirName.getItemFromID(key.nameID).getTitle();
            String pathron = dirPathron.getItemFromID(key.pathronID).getTitle();
            panel.setFIO(surName + " " + name + " " + pathron);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal client = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                ArrayList<ClientLocal> clientList = new ArrayList<ClientLocal>(1);
                if (client != null) {
                    clientList.add(client);
                }
                map.put(key, clientList);
View Full Code Here

}//GEN-LAST:event_btDelActionPerformed

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 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);
        }
    } catch (ClipsException ex) {
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.