Package clips.delegate.doctor.profchekup

Examples of clips.delegate.doctor.profchekup.ProfcheckupItemLocal$ProfcheckupCache


           
            while (it.hasNext()) {
                PolisData cmd = it.next();
                for (DirectoryDangerItem ddi : polisMap.get(cmd)) {

                    ProfcheckupItemLocal pil =
                            new ProfcheckupItemLocal(profcheckup,
                            new ArrayList<ServiceCheckupChunk>(),
                            ddi.getID(),
                            cmd);

                    profcheckupItemList.add(pil);
View Full Code Here


private void btRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRemoveActionPerformed
    try {
        int[] selected = tblProfcheckupItemList.getSelectedRowsSorted();//берём индексы выделенных элементов
        //удаляем профчекапитемы по индексу начиная с конца списка
        for (int i = selected.length - 1; i >= 0; i--) {
            ProfcheckupItemLocal pil = profcheckupItemList.get(selected[i]);
            profcheckupItemDeletedList.add(pil);
            profcheckupItemList.remove(selected[i]);
        }
        profcheckup.setItems(profcheckupItemList);
        resetTable();//обновляем таблицу
View Full Code Here

     */
    private Map<Integer, Set<Integer>> initSelectedPolises() throws ClipsException{
        Map<Integer, Set<Integer>> res
                = new HashMap<Integer, Set<Integer>>();
        for (int i = 0; i < itemList.size(); i++) {
            ProfcheckupItemLocal pil = itemList.get(i);
            if (res.get(pil.getPolisData().getId()) == null){
                res.put(pil.getPolisData().getId(), new HashSet<Integer>());
            }
            res.get(pil.getPolisData().getId()).add(pil.getDanger().getID());
        }
        return res;
       
    }
View Full Code Here

                List<ProfcheckupItemLocal> items = itemMap.get(id);
                if (items != null && !items.isEmpty()) {
                    panelEMC = new PanelEMC(getContainer(), clientLocal);
                    jPanel2.add(panelEMC, BorderLayout.CENTER);
                    jPanel2.revalidate();
                    ProfcheckupItemLocal pil = items.get(0);
                    pil.reload();
                    panelEMC.selectInEmc(pil.getDiseaseLocal());
                }
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

    }

    @Override
    public Object getValueAt(int row, int col) {
        try {
            ProfcheckupItemLocal pil = profcheckupItemList.get(row);
            switch (col) {
                case CL_SURNAME:
                    return pil.getPolisData().getClient().getSurname();
                case CL_NAME:
                    return pil.getPolisData().getClient().getName();
                case CL_PATHRON:
                    return pil.getPolisData().getClient().getPathron();
                case CL_DANGER:
                    return pil.getDanger();
                default:
                    System.err.print("не сработал switch-case: TableModelClients, getValueAt(), int row: " + row + " int col: " + col);
                    return "";
            }
        } catch (ClipsException ex) {
View Full Code Here

        }
    }
   
    public Set<DirectoryServiceItem> getRowServices(int row) throws ClipsException{
        Set<DirectoryServiceItem> res = new HashSet<DirectoryServiceItem>();
        ProfcheckupItemLocal pil = profcheckupItemList.get(row);
        Selector<DangerServiceData> dangerServices = pil.getDanger().getDangerServices();
        for(int i = 0; i< dangerServices.size(); i++){
            res.add(dangerServices.get(i).getService());
        }
        return res;
    }
View Full Code Here

    }

    @Override
    public Object getValueAt(int row, int col) {
        try {
            ProfcheckupItemLocal pil = profcheckupItemList.get(row);
            switch (col) {
                case CL_SURNAME:
                    return pil.getPolisData().getClient().getSurname();
                case CL_NAME:
                    return pil.getPolisData().getClient().getName();
                case CL_PATHRON:
                    return pil.getPolisData().getClient().getPathron();
                case CL_DANGER:
                    return pil.getDanger();
                default:
                    System.err.print("не сработал switch-case: TableModelClients, getValueAt(), int row: " + row + " int col: " + col);
                    return "";
            }
        } catch (ClipsException ex) {
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.profchekup.ProfcheckupItemLocal$ProfcheckupCache

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.