Package clips.delegate.doctor.prescription

Examples of clips.delegate.doctor.prescription.PrescriptionItemData


    }

    @Override
    public Object getValueAt(int r, int c) {
        try {
            PrescriptionItemData item = prescriptionItems.get(r);
            switch (c) {
                case COL_VIDAL:
                    return item.getVidal();
                case COL_TAKE_DRUG:
                    return item.getTakeDrug();
                case COL_DESC:
                    return item.getDescription();
                default:
                    return null;
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
View Full Code Here


      StateSaver.setDefaultState(this, tablePrescription, state);
    }

    private boolean isFieldsOK() throws ClipsException {
        for (int i = 0; i < prescriptionItems.size(); i++) {
            PrescriptionItemData itemData = prescriptionItems.get(i);
            if (itemData.getTakeDrug().getID() == 0 || itemData.getVidal().getID() == 0) {
                return false;
            }
        }
        return prescriptionLocal.getPrescriptionItemList().size() != 0;
    }
View Full Code Here

                    }
                }
                if (badVidal && MessageBox.showConfirmYesNo(MessageBox.C_BAD_VIDAL) != MessageBox.ANSWER_YES) {
                    return;
                }
                PrescriptionItemData item = new PrescriptionItemData(prescriptionLocal);
                item.setVidal(vidal);
                item.setDescription("");
                prescriptionLocal.getPrescriptionItemList().append(item);
            }
            refreshTable();
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

                    }

                    if (badVidal && MessageBox.showConfirmYesNo(MessageBox.C_BAD_VIDAL) != MessageBox.ANSWER_YES) {
                        return;
                    }
                    PrescriptionItemData item = new PrescriptionItemData(prescriptionLocal);
                    item.setVidal(vidal);
                    item.setDescription("");
                    prescriptionLocal.getPrescriptionItemList().append(item);
                }
            }
            refreshTable();
        } catch (ClipsException ex) {
View Full Code Here

}//GEN-LAST:event_tablePrescriptionMouseClicked

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
    try {
        int k = tablePrescription.getSelectedRowSorted();
        PrescriptionItemData itemData = prescriptionItems.get(k);
        prescriptionLocal.itemPrint(itemData);
    } catch (ClipsException ex) {
        MessageBox.showExceptionOnly(ex);
    }
}//GEN-LAST:event_jMenuItem1ActionPerformed
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.prescription.PrescriptionItemData

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.