Package clips.delegate.doctor.sicklist

Examples of clips.delegate.doctor.sicklist.SicklistLocal


        if (isInnerPanelClear()) {
            try {
                DialogSicklistCreate dlg = new DialogSicklistCreate(MainWindow.mainWindow, clientLocal, selectedServiceNode.getDelegate(), getAuditManager());
                dlg.setVisible(true);
                if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                    SicklistLocal sicklistLocal = dlg.getSicklist();
                    ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
                    for (int i = 0; i < root.getChildCount(); i++) {
                        if (root.getChildAt(i) instanceof SicklistCollectorNode) {
                            root.getChildAt(i).getDelegate().addChild(sicklistLocal);
                            return;
View Full Code Here


        }
        SicklistDetails details = getBean().getSickListData(serIds);
        if (details == null) {
            return null;
        }
        return new SicklistLocal(details, getAuditListener());
    }
View Full Code Here

                data.put("diagnosis_complication_code", compl.getDiseaseCode());
                data.put("diagnosis_complication_encounter", client.getDiagnosisCharacter(compl, specDiag.getDate()));
            }
        }

        SicklistLocal sicklist = getSickListState(serrensInTap);
        if (sicklist != null) {
            DirectoryDisabilityTypeItem ddti = sicklist.getDisability();
            if (ddti != null && ddti.getID() != 0) {
                data.put("sicklist_reason", sicklist.getDisability().getExternalKey());
            }
            int state = 0;
            if (sicklist.isClosed()) {
                state = CONST_3;
                data.put("sicklist_close_date", Converter.dateToString(sicklist.getTill().getTime(), "dd.MM.yy"));
            }
//            else {
            if (sicklist.getProlongationCount() > 1) {
                if (state != CONST_3){
                    state = CONST_2;
                }
            }
            else {
                if (state != CONST_3){
                    state = CONST_1;
                }
                data.put("sicklist_open_date", Converter.dateToString(sicklist.getDateOpen().getTime(), "dd.MM.yy"));
            }
//            }
            data.put("sicklist_open_type", state);
            if (ddti.isDiseatedSupport()){
                data.put("sicklist_care_sex", client.getSex().getID());
View Full Code Here

            super(contaner);
        }

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

    @Override
    protected SicklistLocal init() throws Exception {
        if (child.getDetails().refID == 0) {
            return null;
        } else {
            return new SicklistLocal(child.getDetails().refID, child.getClient(), al);
        }
    }
View Full Code Here

    public ArrayList<SicklistLocal> getSicklistsInCurrentYear() throws ClipsException {
        ArrayList<SicklistLocal> sicklistLocals = new ArrayList<SicklistLocal>();
        try {
            List<SicklistDetails> list = getBean().getSicklistsInCurrentYear();
            for(SicklistDetails d : list) {
                SicklistLocal sicklistLocal = new SicklistLocal(d, this, getAuditListener());
                sicklistLocals.add(sicklistLocal);
            }
        } catch (Exception ex) {
            clearBean();
            throw new ClipsException("Не удалось загрузить список больничных листов",ex);
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.sicklist.SicklistLocal

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.