Package clips.delegate.doctor

Examples of clips.delegate.doctor.DiseaseLocal$DECMedexam


            case COL_DATE: {
                return event.getDate();
            }
            case COL_ORDERED: {
                try {
                    DiseaseLocal disease = event.getDisease();
                    return disease != null ? disease.getCreated() : null;
                } catch (ClipsException ex) {
                    ex.printStackTrace();
                    return false;
                }
            }
View Full Code Here


    }

    private void initDiseasePanel() throws ClipsException {
        List<DiseaseLocal> dList = emc.getDiseaseList();
        diseaseList = new ArrayList<DiseaseLocal>();
        selectedDisease = new DiseaseLocal(emc);
        diseaseList.add(selectedDisease);
        for (DiseaseLocal diseaseLocal : dList) {
            if (diseaseLocal.getClosed() == null
                    && !diseaseLocal.isProfcheckup()
                    && !diseaseLocal.isMedexam()) {
View Full Code Here

            MessageBox.showWarning(MessageBox.W_LIST_ELEMENT_NOT_SELECT);
            return;
        }
        try {
            ClientLocal clientLocal = medexamList.get(tabMedexam.getSelectedRowSorted()).getClientLocal();
            DiseaseLocal disease = medexamList.get(tabMedexam.getSelectedRowSorted()).getDiseaseLocal();
            PanelEMC panel = new PanelEMC(getContainer(), clientLocal);
            getContainer().addNewPage(panel, this);
            panel.selectInEmc(disease);
        } catch (PageException ex) {
            MessageBox.showException(ex);
View Full Code Here

    public void print() {
        try {
            if (readyForPrint()) {
                DirectoryCollaboratorFunctionsItem collab = null;

                DiseaseLocal diseaseLocal = medexamLocal.getDiseaseLocal();

                ArrayList<DirectoryCollaboratorFunctionsItem> collabs = diseaseLocal.getCollabsIn();
                if (collabs.isEmpty()) {
                    JOptionPane.showMessageDialog(this, "В заболевании нет оказанных услуг");
                    return;
                }
                if (collabs.size() > 1) {
                    DirectoryCollaboratorFunctionsItem[] a = new DirectoryCollaboratorFunctionsItem[collabs.size()];
                    a = collabs.toArray(a);
                    collab =
                        (DirectoryCollaboratorFunctionsItem) JOptionPane.showInputDialog(this,
                        "В заболевании несколько ТАПов.\nВыберите сотрудника (специальность), по которому печатать ТАП.",
                        "Выберите сотрудника", JOptionPane.PLAIN_MESSAGE, null, a, null);
                    if (collab == null) {
                        return;
                    }
                }
                else {
                    collab = collabs.get(0);
                }
                CombinedReportCreator parCreator = ReporterFactory.createCombinedReporter(getClass(), 1);
                CombinedReportOptions ops = new CombinedReportOptions();
                ops.topMargin =0;
                ops.bottomMargin = 0;
                ops.leftMargin =0;
                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);

                diseaseLocal.formPrintFields(collab);
                diseaseLocal.print(parCreator);
                parCreator.finish();

            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

            diagnosisLocal.save1();
            for (DiagnosisLocal dl : diagnosis2delete) {
                dl.remove();
            }
            DiseaseLocal diseaseLocal = diagnosisLocal.getSerrenLocal().getDiseaseLocal();
            for (SerRenLocal serren : diseaseLocal.getSerrenList()) {
                for (DiagnosisLocal diagnosis : serren.getDiagnosisList()) {
                    diagnosis.reload();
                }
            }
            diagnosis2delete.clear();
View Full Code Here

                ops.rightMargin = 0;
                ops.setPageA5();
                ops.setOrentation(PageOrentation.horizontal);
                parCreator.setUpReport(null, ops, null);

                DiseaseLocal diseaseLocal = serRenLocal.getDiseaseLocal();

                diseaseLocal.formPrintFields(serRenLocal.getCollaboratorFunctions());
                diseaseLocal.print(parCreator);
                parCreator.finish();
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

                    diseaseLocal.addChild(serRenLocal);
                }
                diseaseLocal.save1();
            }
            if (dlg.getDlgResult() == ModalDialog.DLG_NEXTRESULT) {
                DiseaseLocal diseaseMedexam = dlg.getNewDiseaseLocal();
                diseaseLocal.getEmcLocal().addChild(diseaseMedexam);
            }
        } catch (Exception ex) {
            MessageBox.showExceptionOnly(ex);
        }
View Full Code Here

        List<DiseaseLocal> diseaseList = emcLocal.getDiseaseList();
        DefaultMutableTreeNode statNode;

        for (int i = 0; i < diseaseList.size(); i++) {
            DiseaseLocal disease = diseaseList.get(i);
            statNode = makeDisease(disease);
            emcNode.add(statNode);
        }

        List<FollowupLocal> followUps = emcLocal.getFollowUps();
View Full Code Here

    private void btSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSelectActionPerformed
        try {
            int row = tabSerRens.getSelectedRowSorted();
            DiseaseChunk dc = diseaseList.get(row);
            ClientLocal client = new ClientLocal(dc.clientID, getAuditManager());
            DiseaseLocal disease = new DiseaseLocal(dc.details.id, getAuditManager());
            PanelEMC panel = new PanelEMC(getContainer(), client);
            getContainer().addNewPage(panel, this);
            panel.selectInEmc(disease);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

            if (evt.getClickCount() == 2) {
                int row = tabSerRens.getSelectedRowSorted();
                if (row >=0 && row < diseaseList.size()) {
                    DiseaseChunk dc = diseaseList.get(row);
                    ClientLocal client = new ClientLocal(dc.clientID, getAuditManager());
                    DiseaseLocal disease = new DiseaseLocal(dc.details.id, getAuditManager());
                    PanelEMC panel = new PanelEMC(getContainer(), client);
                    getContainer().addNewPage(panel, this);
                    panel.selectInEmc(disease);

                }
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.DiseaseLocal$DECMedexam

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.