Examples of ClientNode


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

Examples of clips.doctor.newEMC.nodes.ClientNode

        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

Examples of clips.doctor.newEMC.nodes.ClientNode

            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

Examples of clips.doctor.newEMC.nodes.ClientNode

            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

Examples of clips.doctor.newEMC.nodes.ClientNode

//                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

Examples of clips.doctor.newEMC.nodes.ClientNode

     * Переводит выделение на заданный делегат в эмк, если он в ней есть
     * @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

Examples of com.catify.processengine.core.data.model.entities.ClientNode

   * @see com.catify.processengine.core.data.services.ClientNodeRepositoryService#delete(java.lang.String)
   */
  @Override
  public void delete(String uniqueClientId) {

    ClientNode clientNode = findByUniqueClientId(uniqueClientId);

    if (clientNode != null) {
      clientNodeRepository.delete(clientNode);
    }

View Full Code Here

Examples of com.catify.processengine.core.data.model.entities.ClientNode

   * @see com.catify.processengine.core.data.services.ClientNodeRepositoryService#getOrCreateClientNode(java.lang.String)
   */
  @Override
  public ClientNode getOrCreateClientNode(String uniqueClientId) {

    ClientNode node = findByUniqueClientId(uniqueClientId);

    if (node == null) {
      node = new ClientNode(uniqueClientId);
    }
    clientNodeRepository.save(node);

    return node;
  }
View Full Code Here

Examples of com.catify.processengine.core.data.model.entities.ClientNode

   */
  private void createEntities(String clientId, TProcess processJaxb,
      List<TFlowNode> flowNodesJaxb, List<TSequenceFlow> sequenceFlowsJaxb) {

    // create the client context
    ClientNode clientNode = this.createClientContext(clientId);

    // create the running process node or get it from the db (eg. restart of the process engine)
    ProcessNode runningProcess = this.createRunningProcessNode(clientId, clientNode, processJaxb);
   
    // create the archived process node or get it from the db (eg. restart of the process engine)
View Full Code Here

Examples of com.catify.processengine.core.data.model.entities.ClientNode

    // FIXME: provide RootNode implementation
    // create root node or get it from the db
    RootNode rootNode = createRootContext();
   
    // create client node or get it from the db
    ClientNode clientNode = clientNodeRepositoryService
        .getOrCreateClientNode(clientId);

    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        clientNode, clientNode.getGraphId()));

    // create relationship between root and client
    rootNode.addRelationshipToClientNode(clientNode);
    rootNodeRepositoryService.save(rootNode);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.