Package clips.delegate.doctor.checkup

Examples of clips.delegate.doctor.checkup.CheckupLocal$DICOMList


    }

    @Override
    public Object getValueAt(int row, int col) {
        try {
            CheckupLocal checkUpLocal = ii.get(row);
            SerRenLocal serRenLocal = checkUpLocal.getSerrenLocal();
            switch (col) {
                case COL_DATE: {
                    //Датой назначения анализа будем считать дату назначения Соответствующей услуги
                    return serRenLocal.getSerDate();
                }
                case COL_DIRECTOR: {
                    return serRenLocal.getSerRenDirector();
                }
                case COL_RENDERER: {
                    if (serRenLocal.isRendered()) {
                        return serRenLocal.getCollaboratorFunctions();
                    } else {
                        return "";
                    }
                }
                case COL_TYPE: {
                    return checkUpLocal.getType();
                }
            }           
        } 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.getSelectedRowSorted();
                if (row >=0 ) {
                CheckupLocal ch = checkupList.get(row);
                if (getContainer() instanceof PanelEMC) {
                    try {
                        ((PanelEMC) getContainer()).selectInEmc(ch);
                    } catch (ClipsException ex) {
                        ex.printStackTrace();
View Full Code Here

            throw new PageException("Не удалось получить цифровую подпись", ex);
        }
    }

    private CheckupLocal getSelectedCheckup() {
        CheckupLocal checkup = null;
        EmcTreeNode node = getCurrentSelectedNode();
        if (node != null){
            if (node instanceof CheckupNode) {
                checkup = (CheckupLocal) node.getDelegate();
            } else {
View Full Code Here

            try {
                DelegateNode leaf = null;
                if (aClass.equals(ContraindicationLocal.class)) {
                    leaf = new ContraindicationLocal(selectedService);
                } else if (aClass.equals(CheckupLocal.class)) {
                    leaf = new CheckupLocal(selectedService);
                } else if (aClass.equals(PrescriptionLocal.class)) {
                    leaf = new PrescriptionLocal(selectedService);
                } else if (aClass.equals(DirectionLocal.class)) {
                    leaf = new DirectionLocal(selectedService);
                } else if (aClass.equals(RecommendationLocal.class)) {
View Full Code Here

    }
}//GEN-LAST:event_btQuickInputActionPerformed

private void miDICOMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miDICOMActionPerformed

    CheckupLocal checkup = getSelectedCheckup();

    if (checkup != null) {
        try {
            DialogSelectDicomObjects dsdo = new DialogSelectDicomObjects(MainWindow.mainWindow);
            dsdo.setVisible(true);
            if (dsdo.getDlgResult() == ModalDialog.DLG_OK) {
                List<AgregatorItem> items = dsdo.getItems();
                for (AgregatorItem agregatorItem : items) {
                    checkup.addChild(new CheckupDICOMLocal(checkup, agregatorItem));
                }
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

                CheckupDetails d = it.next();
                int serrenID = d.serviceRenderID;
                if (serrenMap.get(serrenID) == null) {
                    serrenMap.put(serrenID, new SerRenLocal(serrenID, getAuditListener()));
                }
                res.add(new CheckupLocal(d, serrenMap.get(serrenID), getAuditListener()));
            }
            return res;
        }
View Full Code Here

        @Override
        protected  void saveDB() throws Exception {
            Set<Integer> idSet = new HashSet<Integer>();
            Iterator<CheckupLocal> it = get().iterator();
            while (it.hasNext()) {
                CheckupLocal checkup = it.next();
                idSet.add(checkup.getID());
            }
            ModificationInfo mi = getBean().setCheckupList(idSet);
            auditDetailsList.addAll(mi.getAudit());
            fireAuditEvent();
        }
View Full Code Here

                        parCreator.setUpReport(null, options, null);
                        FormReportCreator creator;
                        CombinedReportCreator subCreator;
                        CombinedReportOptions ops;
                        for (int i = 0; i < newSerrenList.size(); i++) {
                            CheckupLocal checkupLocal = newSerrenList.get(i).getAnalysis();
                            if (checkupLocal != null) {
                                subCreator = parCreator.createCombinedReporter(getClass(), 2);
                                ops = new CombinedReportOptions();
                                ops.leftMargin = 0;
                                ops.rightMargin = 0;
                                ops.topMargin = 0;
                                ops.bottomMargin = 0;
                                subCreator.setUpReport(null, ops, null);

                                creator = subCreator.createFormReporter(PrintCreators.class, 1);
                                creator.createReport(new HashMap<String, Object>(), null);
                                creator.finish();
                                checkupLocal.print(subCreator);
                                subCreator.finish();
                            }
                        }
                        parCreator.finish();
                    } catch (ClipsException ex) {
View Full Code Here

            if (sheduleMap.get(item) != null) {
                for (CheckupSheduleLocal csl : sheduleMap.get(item)) {
                    Iterator<CheckupLocal> chi = csl.getCheckupSet().iterator();
                    while (chi.hasNext()) {
                        CheckupLocal cl = chi.next();
                        if (minWLDate == null) {
                            minWLDate = cl.getWorkingLifeDate();
                        } else if (cl.getDate() != null) {
                            if (cl.getWorkingLifeDate().before(minWLDate)) {
                                minWLDate = cl.getWorkingLifeDate();
                            }
                        }
                    }
                }
            }
View Full Code Here

    @Override
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        if (columnIndex == COL_IN_SEDULE){
            try {
                CheckupLocal cl = checkupList.get(rowIndex);
                boolean b = (Boolean) aValue;
                if (b) {
                    checkupsInSedule.add(cl);
                } else {
                    checkupsInSedule.remove(cl);
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.checkup.CheckupLocal$DICOMList

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.