Package clips.delegate.doctor.followup

Examples of clips.delegate.doctor.followup.FollowupLocal


    }

    @Override
    public Object getValueAt(int row, int col) {
        try {
            FollowupLocal followUp = ii.get(row);
            switch (col) {
                case COL_DATEUP: {
                    return followUp.getDateUp();
                }
                case COL_MKB: {
                    return followUp.getDiagnosis().getMkb();
                }
                case COL_REASON: {
                    return followUp.getReasonUp();
                }
                case COL_DAY: {
                    if (!followUp.isDown()) {
                        SelectorEditable<FollowupEventData> list = followUp.getFollowupEventList();
                        if (list != null && list.size() != 0) {
                            //Берем дату из последнего назначения
                            FollowupEventData event = list.get(list.size() - 1);
                            return (new SimpleDateFormat("dd.MM.yyyy")).format(event.getDate());
                        } else {
                            return "";
                        }
                    } else {
                        return "";
                    }
                }
                case COL_DATEDOWN: {
                    if (followUp.isDown()) {
                        return followUp.getDateDown();
                    }
                }
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
View Full Code Here


    @Override
    public void setValueAt(Object aValue, int row, int column) {       
        try {
            FollowupData data = followupList.get(row);
            FollowupLocal followUp = new FollowupLocal(data.details, new SerRenLocal(data.details.serrenUpID, am), am);
            if (column == COL_CALLED) {               
                FollowupEventData event = followUp.getLastEvent();
                event.setCalled((Boolean) aValue);
                followUp.save1();
                data.lastEventDetails.called = (Boolean) aValue;
            }
            if (column == COL_CANCELLED) {               
                FollowupEventData event = followUp.getLastEvent();
                event.setCancelled((Boolean) aValue);
                followUp.save1();
                data.lastEventDetails.cancelled = (Boolean) aValue;
            }
            fireTableCellUpdated(row, column);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

        List<FollowupLocal> followUps = emcLocal.getFollowUps();
        DefaultMutableTreeNode fupNode;
        CheckBoxNode chFup;
        for (int i = 0; i < followUps.size(); i++) {
            FollowupLocal followUp = followUps.get(i);
            chFup = new CheckBoxNode(followUp, false);
            fupNode = new DefaultMutableTreeNode(chFup);
            emcNode.add(fupNode);
        }
View Full Code Here

            } else if (aClass.equals(FollowupLocal.class)) {
                if (selectedServiceNode != null){
                    if(selectedServiceNode.getDelegate().getDiseaseLocal().getSpecificDiagnosis() == null){
                        MessageBox.showWarning(MessageBox.W_INCORRECT_DATA, "В заболевании не указан заключительный диагноз");
                    }else{
                        node = new FollowupLocal(selectedServiceNode.getDelegate());
                    }
                }else{
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA, "Необходимо выбрать услугу");
                }
            } else {
View Full Code Here

            return new ArrayList<FollowupLocal>();
        }

        @Override
        protected FollowupLocal createDelegate(FollowupDetails d) throws Exception {
            return new FollowupLocal(d, findSerrenUp(d), getAuditListener());
        }
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.followup.FollowupLocal

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.