Package clips.doctor.newEMC.init.generic

Examples of clips.doctor.newEMC.init.generic.DelegateNode


            }else{
                EmcTreeNode node = getCurrentSelectedNode();
                if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_OBJECT) == MessageBox.ANSWER_YES){
                    if (node != null){
                        if (node.getDelegate() instanceof DelegateNode) {
                            DelegateNode child = (DelegateNode) node.getDelegate();
                            if (child instanceof SerRenLocal && ((SerRenLocal)child).getPacketServiceID() != 0) {
                                if (MessageBox.showConfirmYesNo(MessageBox.C_DEL_SERV_FROM_PACK) != MessageBox.ANSWER_YES) {
                                    return;
                                }
                                ((SerRenLocal)child).removeAndBreakPacket();
                            } else if (child instanceof DiseaseLocal && ((DiseaseLocal)child).isMedexam()) {
                                ((DiseaseLocal)child).getMedexamLocal().remove();
                            } else {
                                child.remove();
                            }
                            try{
                                if (isPathContains(lastSelectionPath, node)){
                                    lastSelectionPath = null;
                                }
View Full Code Here


     * Добавляет делегата в ЭМК
     * @param aClass
     * @throws ClipsException
     */
    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){
View Full Code Here

     */
    private void addDelegateToService(Class<? extends DelegateNode> aClass) {
        if (selectedServiceNode != null) {
            SerRenLocal selectedService = selectedServiceNode.getDelegate();
            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)) {
View Full Code Here

TOP

Related Classes of clips.doctor.newEMC.init.generic.DelegateNode

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.