Package clips.delegate.doctor.certificate

Examples of clips.delegate.doctor.certificate.CertificateLocal


    }

    @Override
    public Object getValueAt(int row, int col) {
        try {
            CertificateLocal certificateLocal = list[row];
            switch (col) {
                case COL_DATE: {
                    return  certificateLocal.getDate();
                }
                case COL_COLLABORATOR: {
                    return certificateLocal.getCollaborator();
                }
                case COL_TYPE: {
                    return certificateLocal.getType().getTitle();
                }
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
View Full Code Here


private void jTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableMouseClicked
        if (evt.getClickCount() == 2) {
            int row = jTable.rowAtPoint(evt.getPoint());
            if (row >= 0 && row < jTable.getRowCount()) {
                try {
                    CertificateLocal cert = certificateList.getChildren().get(row);
                    if (getContainer() instanceof PanelEMC) {
                        ((PanelEMC) getContainer()).selectInEmc(cert);

                    }
                } catch (ClipsException ex) {
View Full Code Here

private void btDelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btDelActionPerformed
    int row = jTable.getSelectedRowSorted();
    if (row >=0 && row < jTable.getRowCount()) {
        try {
            CertificateLocal cert = certificateList.getChildren().get(row);
            cert.remove();
            reloadTable();
            certificateList.removeChild(cert);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

    private void btCertificateActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btCertificateActionPerformed
    {//GEN-HEADEREND:event_btCertificateActionPerformed
        if (isInnerPanelClear()) {
            try {
                CertificateLocal cl = new CertificateLocal(clientLocal, selectedDiseaseNode != null ? selectedDiseaseNode.getDelegate() : null);
                if (!cl.canCreate()) {
                    throw new ClipsException(SecurityChecker.getClientHasNoRightMsg(UserRightsSet.MODIFY_CERTIFICATE.id));
                }
                ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
                for (int i = 0; i < root.getChildCount(); i++) {
                    if (root.getChildAt(i) instanceof CertificateCollectorNode) {
View Full Code Here

            super(contaner);
        }

        @Override
        protected CertificateLocal createDelegate(CertificateDetails d) throws Exception {
            return new CertificateLocal(d, ClientLocal.this, getAuditListener());
        }
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.certificate.CertificateLocal

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.