Package clips.delegate.directory.complex

Examples of clips.delegate.directory.complex.DirectoryLaboratory


    StateSaver.attachTo(this);
    }

  private void initList() throws ClipsException{
    labListModel = new LabListModel();
    DirectoryLaboratory ds = DirectoryLocator.getDirectory(DirectoryLaboratory.class);
    ROList<DirectoryLaboratoryItem> list = ds.getFilteredItems(UserInfo.get().getCollaborator().getLpu());
    for (DirectoryLaboratoryItem directoryLaboratoryItem : list) {
      labListModel.addElement(directoryLaboratoryItem);
    }
    lstLabs.setModel(labListModel);
  }
View Full Code Here


    }
    try {
      LaboratoryDetails det = new LaboratoryDetails();
      det.title = "новая лаборатория";
      det.lpuId = UserInfo.get().getCollaborator().getLpu().getID();
      DirectoryLaboratory    dir = DirectoryLocator.getDirectory(DirectoryLaboratory.class);
      DirectoryLaboratoryItem    item = new DirectoryLaboratoryItem(det);
      dir.getItems().append(item);
      DirectoryLocator.getDirectory(DirectoryLaboratory.class, true);
      initList();
    }
    catch (ClipsException ex) {
      MessageBox.showException(ex);
View Full Code Here

  }//GEN-LAST:event_btAddActionPerformed

  private void btRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRemoveActionPerformed
    try {
      DirectoryLaboratory    dir = DirectoryLocator.getDirectory(DirectoryLaboratory.class);
      if (selected != null) {
        save();
        dir.getItems().remove(selected);
      }
      DirectoryLocator.getDirectory(DirectoryLaboratory.class, true);
      initList();
    } catch(ClipsException e) {
      MessageBox.showException(e);
View Full Code Here

        super(container);
        initComponents();
        cfl = new CheckupFactoryLocal(getAuditManager());
        //заполнение комбо
       
        DirectoryLaboratory dirLab = DirectoryLocator.getDirectory(DirectoryLaboratory.class);
    ROList<DirectoryLaboratoryItem> list = dirLab.getFilteredItems(UserInfo.get().getCollaborator().getLpu());
        jComboBox1.setModel(new DefaultComboBoxModel(dirLab.toArray()));
        jTable1.setModel(new TableModelAnalyseList(new ArrayList<CheckupLocal>()));
        jTable1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
            @Override
            public void valueChanged(ListSelectionEvent e) {
                if (jTable1.getSelectedRowSorted() >= 0) {
View Full Code Here

TOP

Related Classes of clips.delegate.directory.complex.DirectoryLaboratory

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.