Examples of PanelUserSearch


Examples of clips.userseach.PanelUserSearch

}//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) {
        MessageBox.showException(ex);
View Full Code Here

Examples of clips.userseach.PanelUserSearch

}//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 {
                tfClient.setText("");
View Full Code Here

Examples of clips.userseach.PanelUserSearch

        }
       
        //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;
                    }
                    //попытка найти сотрудника из уже имеющихся
                    Integer collID = dirCollab.getByClientID(pus.getSelectedClient().getID());
                    if (collID == 0) {
                        collabLoc = new CollaboratorLocal(pus.getSelectedClient());
                        panelSelColl.setSelectedCollaborator(null);
                        setState(STATE_CREATING);
                        addListeners();
                        collabToScreen();
                        resetPanel();
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.