Package clips.delegate.doctor

Examples of clips.delegate.doctor.DiseaseLocal


     */
    private void addDelegateToEMC(Class<? extends DelegateNode> aClass){
        DelegateNode node = null;
        try{
            if (aClass.equals(DiseaseLocal.class)) {
                node = new DiseaseLocal(clientLocal.getEMC());
            } else if (aClass.equals(FollowupLocal.class)) {
                if (selectedServiceNode != null){
                    if(selectedServiceNode.getDelegate().getDiseaseLocal().getSpecificDiagnosis() == null){
                        MessageBox.showWarning(MessageBox.W_INCORRECT_DATA, "В заболевании не указан заключительный диагноз");
                    }else{
View Full Code Here


    if (!isInnerPanelClear()) {
        MessageBox.showWarning(MessageBox.W_NOT_CLOSE_EDITING);
    } else {
        try {
            //Попытка найти текущее заболевание
            DiseaseLocal selectedDisease = selectedDiseaseNode != null ? selectedDiseaseNode.getDelegate() : null;
            DialogQuickInput dlg = new DialogQuickInput(MainWindow.mainWindow, emcLocal, selectedDisease, getAuditManager());
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK && dlg.getResult() != null) {
                DisSerDiagAuditChunk result = dlg.getResult();
//                AuditFrame auditDlg = AuditFrame.getDialog();
//                auditDlg.showMe(result.auditDetailsList);
                getAuditManager().needDSA(new AuditList(result.auditDetailsList));


                ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
                DiseaseLocal newDisease = new DiseaseLocal(emcLocal, result.diseaseDetails, getAuditManager());
                EmcTreeNode findNode = root.findNode(newDisease);
                boolean needAddToEmc = false;
                if (findNode != null) {
                    selectedDisease = (DiseaseLocal) findNode.getDelegate();
                } else {
View Full Code Here

        } else if (col == TableModelSerRenList.COL_DISCOUNT) {
            return;
        } else if (col == TableModelSerRenList.COL_REST) {
            return;
        } else if (col == TableModelSerRenList.COL_STT) {
            DiseaseLocal stt = serRen.getDiseaseLocal();
            render().setText("");
            if (stt != null) {
                if (stt.isProfcheckup()) {
                    render().setIcon(PROFCHECKUP_ICON);
                } else {
                    render().setIcon(stt.getIcon());
                }
            }
            return;
        } else {
            return;
View Full Code Here

                }
                SerRenLocal serRen = new SerRenLocal(auditList.get(i).getEntityId, getAuditManager());
                newSerrenList.add(serRen);
            }
            if (isMedexam) {
                newDiseaseLocal = new DiseaseLocal(info.getId(), getAuditManager());
            }

            if (needDlg) {
                int res = MessageBox.showConfirmYesNo(MessageBox.C_PRINT_DIRECTION_TO_CHECKUP);
                if (res == MessageBox.ANSWER_YES) {
View Full Code Here

    private void initDisease(int id, Integer mkbSpecId, AuditListener al) throws ClipsException{
        if (id == 0){
            diseaseCashe.set(null);
        }else{
            DiseaseLocal diseaseLocal;
            if (mkbSpecId == null){
                diseaseLocal = new DiseaseLocal(followup.getSerrenUp().getDiseaseLocal().getEmcLocal(), id, al);
            }else{
                diseaseLocal = new DiseaseLocal(followup.getSerrenUp().getDiseaseLocal().getEmcLocal(), id, mkbSpecId, al);
            }
            diseaseCashe.set(diseaseLocal);
        }
    }
View Full Code Here

       
        @Override
        protected List<ProfcheckupItemLocal> init() throws Exception {
            List<ProfcheckupItemLocal> res = new ArrayList<ProfcheckupItemLocal>();
            for(ProfcheckupItemDetails d: getBean().getItems()) {
                res.add(new ProfcheckupItemLocal(new DiseaseLocal(d.diseaseID, getAuditListener()), ProfcheckupLocal.this, d));
            }
            return res;
        }
View Full Code Here

                getDetails().passed = details.passed;
                getDetails().polisID = details.polisID;
                getDetails().profcheckupID = details.profcheckupID;
                getDetails().resultExtra = details.resultExtra;
                getDetails().resultID = details.resultID;
                setDisease(new DiseaseLocal(getDetails().diseaseID, getAuditListener()));
                //подменим на сервере ид, что б не пытался создать новых сущностей
                getBean().initByID(details.id, getBean().getSessionId());
                auditDetailsList.addAll(transportData.auditList);
                fireAuditEvent();
            } catch (Exception ex) {
View Full Code Here

    public void createDiseaseForEvent(FollowupEventData event) throws ClipsException {
        try {
            ModDisease modDisease = getBean().createDisease(event.getDetails());
            DiseaseDetails dd = modDisease.diseaseDetails;
            DiseaseLocal disease = new DiseaseLocal(getClient().getEMC(), dd, getAuditListener());
            getClient().getEMC().addDisease(disease);
            event.setDisease(disease);
            fireContentStateEvent();
            super.addChild(disease);
            auditDetailsList.addAll(modDisease.auditDetList);
View Full Code Here

    protected void removeChildImpl(DiseaseLocal child) throws ClipsException {
        //do nothing
        SelectorEditable<FollowupEventData> se = this.getFollowupEventList();
        for (int i = 0; i < se.size(); i++) {
            FollowupEventData followupEventData = se.get(i);
            DiseaseLocal dis = followupEventData.getDisease();
            if (dis != null && dis.getID() == child.getID()){
                se.remove(followupEventData);
                followupEventList.clearCache();
                return;
            }
        }
View Full Code Here

    @Override
    protected DiseaseLocal init() throws Exception {
        if(dl2.getDetails().getDisease() == 0) {
            return null;
        }
        return new DiseaseLocal(dl2.getDetails().getDisease(), al);
    }
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.DiseaseLocal

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.