Package clips.delegate.directory.ro

Examples of clips.delegate.directory.ro.DirectoryLpuItem


    }


    private CollaboratorLocal findCollab(ClientLocal client) throws ClipsException {
        collabList = new ArrayList<CollaboratorLocal>();
        DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
        List<DirectoryCollaboratorItem> items = dirCollab.getItemsFiltered(lpu, false, false, false);
        for (int i = 0; i < items.size(); i++) {
            CollaboratorLocal collab = new CollaboratorLocal(items.get(i).getID(), am);
            collabList.add(collab);
        }
View Full Code Here


    }
   
    private void fillCollaboratorCombo(DirectoryCollaboratorItem selected) throws ClipsException {
        collabModel = new VetoableComboBoxModel();
        DirectoryCollaborator colls = DirectoryLocator.getDirectory(DirectoryCollaborator.class, false);
        DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
        List<DirectoryCollaboratorItem> c = colls.getItemsFiltered(lpu, false, true, true);
        for (int i = 0; i < c.size(); i++) {
            DirectoryCollaboratorItem coll = c.get(i);
            if(coll.isVisible()
                    && coll.isSheduled()) {
View Full Code Here

     */
    private void fillCollaboratorCombo(DirectoryWorkTypeItem workType)
            throws ClipsException {
        collabModel = new VetoableComboBoxModel();
        Iterator<DirectoryCollaboratorItem> i= sip.getInsertionPoint(workType).iterator();
        DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
        while(i.hasNext()) {
            DirectoryCollaboratorItem item = i.next();

            if(item.isVisible() && item.getLpu().getID() == lpu.getID()
                    && item.isSheduled()) {
                collabModel.addElement(item);
            }
        }
       
View Full Code Here

    protected CollaboratorFunctionsChunk findCollFuncByExtKey(String extkey, String vmu) throws ClipsException {
        if (collabList == null) {
            collabList = new ArrayList<CollaboratorLocal>();
            DirectoryCollaborator dir = DirectoryLocator.getDirectory(DirectoryCollaborator.class);
            DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
            List<DirectoryCollaboratorItem> items = dir.getItemsFiltered(lpu, true, false, false);
            for (int i = 0; i < items.size(); i++) {
                CollaboratorLocal collab = new CollaboratorLocal(items.get(i).getID(), null);//NULL AL
                collabList.add(collab);
            }
View Full Code Here

                case COL_END: {
                    //дата окончания
                    return contractLocal.getEnd();
                }
                case COL_LPU: {
                    DirectoryLpuItem lpu = contractLocal.getLpu();
                    if (lpu == null || lpu.isNullItem()) {
                        return "все";
                    } else {
                        return lpu.getTitleShort();
                    }
                }
                default:
                    throw new IllegalArgumentException("Неверный номер столбца : " + c);
            }
View Full Code Here

              return true;
            }

            @Override
            public Object getElementAtImp(int index) throws ClipsException {
                DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
                return dirColl.getItemsFiltered(lpu, true, false, UserInfo.get().canUseHiddenDirectoryItems()).get(index);
            }

            @Override
            public int getSizeImp() throws ClipsException {
                DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
                return dirColl.getItemsFiltered(lpu, true, false, UserInfo.get().canUseHiddenDirectoryItems()).size();
            }

            @Override
            public Object getSelectedItemImp() throws ClipsException {
View Full Code Here

        lpuInfo = null;
    }

    public void fillLpuInfo(Calendar from, Calendar till) throws xBaseJException, IOException, ClipsException {
        try {
            DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
            inf.id_smo.put(getIdsmo());
            inf.id_sub_lpu.put(lpu.getLpuSubdivisionCode());
            inf.type.put(RegisterBean.TYPE);
            long ms = (from.getTimeInMillis() + till.getTimeInMillis()) / 2;
            GregorianCalendar gc = (GregorianCalendar) GregorianCalendar.getInstance();
            gc.setTimeInMillis(ms);
            inf.year.put(gc.get(GregorianCalendar.YEAR));
View Full Code Here

    resizeColumn();
    StateSaver.attachTo(this);
    }

  private DirectoryLpuItem getCurLpu(){
    DirectoryLpuItem    curLPu = (DirectoryLpuItem)cbLpu.getSelectedItem();
    return curLPu;
  }
View Full Code Here

        }
    }

    private void refreshItems(boolean keepOld) throws ClipsException {
        Object old = jComboBox1.getSelectedItem();
        DirectoryLpuItem lpu = UserInfo.get().getCollaborator().getLpu();
        List<DirectoryCollaboratorItem> items = dir.getItemsFiltered(lpu, withNull, onlyShedule, UserInfo.get().canUseHiddenDirectoryItems());
        model = new DefaultComboBoxModel(items.toArray());
        jComboBox1.setModel(model);
        if (keepOld) {
            jComboBox1.setSelectedItem(old);
View Full Code Here

    resizeColumn();
    StateSaver.attachTo(this);
    }

  private DirectoryLpuItem getCurLpu(){
    DirectoryLpuItem    curLPu = (DirectoryLpuItem)cbLpu.getSelectedItem();
    return curLPu;
  }
View Full Code Here

TOP

Related Classes of clips.delegate.directory.ro.DirectoryLpuItem

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.