Package clips.delegate.job

Examples of clips.delegate.job.DangerExamChunk


        Iterator<PolisData> it = activPolis.keySet().iterator();
        while (it.hasNext()) {
            PolisData polisData = it.next();
            Iterator<DangerExamChunk> it1 = activPolis.get(polisData).iterator();
            while (it1.hasNext()) {
                DangerExamChunk dec = it1.next();
                boolean blocked = selectedPolises.get(polisData.getId()) == null ? false
                                    : selectedPolises.get(polisData.getId()).contains(dec.getDanger().getID());
                if (blocked){
                    it1.remove();
                }
            }
        }
View Full Code Here


                for (int i = 0; i < s.size(); i++) {
                    DangerJobDetails djd = new DangerJobDetails();
                    DirectoryDangerItem ddi = (DirectoryDangerItem)s.get(i);
                    djd.dangerId = ddi.getID();
                    djd.jobId = jobLocal.getID();
                    DangerExamChunk chunk = new DangerExamChunk(djd);
                    System.out.println("create DANGER CHUNK, job: " + chunk.getDetails().jobId);
                    jobLocal.dangerFactors().append(chunk);
                   
                }
            }
            resetDangersList();
View Full Code Here

            }
            if (clients.get(pcc.client.id) == null){
                clients.put(pcc.client.id, new ClientLocal(pcc.client, al));
            }
            if (dangers.get(pcc.danger.dangerId) == null){
                dangers.put(pcc.danger.dangerId, new DangerExamChunk(pcc.danger));
            }
        }


        for (ProfcheckupContractChunk pcc : chunks) {
View Full Code Here

    }

    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {
        try {
            DangerExamChunk chunk = jobLocal.dangerFactors().get(rowIndex);
            if (columnIndex == CL_DANGER) {
                try {
                    return chunk.getDanger();
                } catch (ClipsException ex) {
                    return new ErrorValue(ex);
                }
            } else if (columnIndex == CL_LAST_EXAM) {
                return chunk.getLastExam();
            } else {
                return null;
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
View Full Code Here

    }

    @Override
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        try {
            DangerExamChunk chunk = jobLocal.dangerFactors().get(rowIndex);
            chunk.setLastExam((Date) aValue);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);           
        }
    }
View Full Code Here

TOP

Related Classes of clips.delegate.job.DangerExamChunk

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.