Package clips.delegate.kek

Examples of clips.delegate.kek.CommitteeDirectionData


                }
                case COL_COLLAB: {
                    return resData.getCollaborator() != null ? resData.getCollaborator() : "";
                }
                case COL_COMDIR_ID: {
                    CommitteeDirectionData data = null;
                    SelectorEditable<CommitteeDirectionData> list = committee.getDirectionList();
                    for (int i = 0; i < list.size(); i++) {
                        data = list.get(i);
                        if (committee.getResolutionByDirection(data) != null
                                && data.getId() == resData.getKey()) {
                            break;
                        }
                    }
                    return data != null ? data.getId() : "";
                }
            }
        } catch (ClipsException ex) {
            return new ErrorValue(ex);
        }
View Full Code Here


            }
            if (committee.getMemberList().size() == 0) {
                MessageBox.showWarning(MessageBox.W_COMMITTEE_NOT_MADE);
            }
            else {
                CommitteeDirectionData dirData = committee.getDirectionList().get(row);
                CommitteeResolutionData comResData = committee.getResolutionByDirection(dirData);
                if (comResData != null) {
                    jTabbedPane1.setSelectedComponent(panelResolution);
                    for (int i = 0; i < comResList.size(); i++) {
                        if (comResList.get(i).equals(comResData)) {
                            tabResolutionList.setRowSelectionInterval(i, i);
                            break;
                        }
                    }
                }
                else {
                    comResData = new CommitteeResolutionData(dirData);
                    ComResDlg dlg = new ComResDlg(MainWindow.mainWindow, comResData, getAuditManager());
                    dlg.setVisible(true);
                    if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
                        comResData.setCollaborator(UserInfo.get().getCollaborator());
                        committee.getResolutionList(false).append(comResData);
                        DirectionLocal direction = dirData.getDirection(getAuditManager());
                        direction.addContentStateListener(emptyListener);
                        direction.setOrdered(true);
                        directions.add(direction);
                    }
                }
View Full Code Here

            }
            if (isDirty()) {
                MessageBox.showWarning(MessageBox.W_NOT_CLOSE_EDITING);
                return;
            }
            CommitteeDirectionData comDir = comDirList.get(k);
            DirectionLocal direction = comDir.getDirection(getAuditManager());
            direction.addContentStateListener(emptyListener);           
           
            committee.getDirectionList().remove(comDir);
            direction.setOrdered(false);
            directions.add(direction);
View Full Code Here

            return;
        }
        int row = tabResolutionList.getSelectedRowSorted();
        if (row > -1) {
            CommitteeResolutionData comRes = comResList.get(row);
            CommitteeDirectionData comDir = null;
            int id = committee.getResolutionList(false).get(row).getKey();
            for (int i = 0; i < comDirList.size(); i++) {
                if (comDirList.get(i).getId() == id) {
                    comDir = comDirList.get(i);
                    break;
                }
            }
            DirectionLocal direction = comDir.getDirection(getAuditManager());
            direction.addContentStateListener(emptyListener);
           
            committee.getResolutionList(false).remove(comRes);
            direction.setOrdered(false);
            directions.add(direction);
View Full Code Here

            int clientID = client == null ? 0 : client.getID();
            DirectionFactoryLocal factory = new DirectionFactoryLocal(getAuditManager());
            directionList = factory.findDirectionListToComm(comReasonID, clientID, dateFrom, dateTill);
            comDirMembers = new ArrayList<CommitteeDirectionData>();
            for (int i = 0; i < directionList.size(); i++) {
                CommitteeDirectionData data = new CommitteeDirectionData(committee);
                data.setDirection(directionList.get(i));
                comDirMembers.add(data);
            }
            tabDirList.setModel(new TableModelDirMemList(comDirMembers));
            tabDirList.setDefaultRenderer(Object.class, new TableCellRendererDirectionList());
            resizeColumn();
View Full Code Here

TOP

Related Classes of clips.delegate.kek.CommitteeDirectionData

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.