Package clips.doctor.newEMC.nodes

Examples of clips.doctor.newEMC.nodes.ClientNode


    protected PanelPrescriptionDlo initPanel(PrescriptionDloLocal delegate, PageContainer pageContainer) throws ClipsException {
        TreeNode  node = this;
        while (node.getParent() != null) {
            node = node.getParent();
        }
        ClientNode root = (ClientNode) node;
        return new PanelPrescriptionDlo(pageContainer, delegate, root.getDelegate());
    }
View Full Code Here


        this.clientLocal = (ClientLocal) clientLocal;
        this.emcLocal = this.clientLocal.getEMC();         //взяли у клиента ЕМС
        emcLocal.getDiseaseList();
        Date t1 = new Date();

        final DefaultTreeModel model = new EmcTreeModel(new ClientNode(this.clientLocal));
        model.addTreeModelListener(new TreeModelListenerImpl(model));
        treeEMC.setModel(model);
        treeEMC.setCellRenderer(new TreeCellRendererImpl());
        DefaultTreeSelectionModel selectionModel = new DefaultTreeSelectionModelImpl();
        selectionModel.setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
View Full Code Here

            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;
                        }
                    }
                }
            } catch (ClipsException ex) {
View Full Code Here

            try {
                CertificateLocal cl = new CertificateLocal(clientLocal, selectedDiseaseNode != null ? selectedDiseaseNode.getDelegate() : null);
                if (!cl.canCreate()) {
                    throw new ClipsException(SecurityChecker.getClientHasNoRightMsg(UserRightsSet.MODIFY_CERTIFICATE.id));
                }
                ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
                for (int i = 0; i < root.getChildCount(); i++) {
                    if (root.getChildAt(i) instanceof CertificateCollectorNode) {
                        root.getChildAt(i).getDelegate().addChild(cl);
                        return;
                    }
                }
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
View Full Code Here

//                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 {
                    selectedDisease = newDisease;
View Full Code Here

     * Переводит выделение на заданный делегат в эмк, если он в ней есть
     * @param object
     * @throws ClipsException
     */
    public  void selectInEmc(DelegateNode object) throws ClipsException{
        ClientNode root = (ClientNode) treeEMC.getModel().getRoot();
        EmcTreeNode node = null;
        if (object instanceof CertificateLocal){
            for (int i = 0; i < root.getChildCount() && node == null; i++) {
                if (root.getChildAt(i) instanceof CertificateCollectorNode){
                    node = root.getChildAt(i).findNode((DelegateNode) object);
                }
            }
        }else if(object instanceof SicklistLocal){
            for (int i = 0; i < root.getChildCount() && node == null; i++) {
                if (root.getChildAt(i) instanceof SicklistCollectorNode){
                    node = root.getChildAt(i).findNode((DelegateNode) object);
                }
            }
        }else{
            node = root.findNode(object);
        }
        if (node == null){
            MessageBox.showError(MessageBox.E_MAKE_FUCKING_EXCEPTION, "Объект \"" + object + "\" не найден в ЭМК" );
        }else{
            selectNode(node);
View Full Code Here

TOP

Related Classes of clips.doctor.newEMC.nodes.ClientNode

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.