Package clips.delegate.directory.ro

Examples of clips.delegate.directory.ro.DirectoryCollaboratorItem


            opener = "<font color = red>неизвестно</font>";
        }
        s += "<p><i>Кем выдан: </i> <b>" + opener + "</b></p>";
    String lpu = sicklist.getLpuName();
        s += "<p><i>Где выдан: </i><b>" + (lpu == null? "<font color = red>неизвестно</font>": lpu) + "</b></p>";
        DirectoryCollaboratorItem creator = sicklist.getCreator();
    s += "<p><i>Добавил в базу данных: </i><b>" + (creator != null ? creator.getTitle() : "<i>неизвестно</i>") + "</b></p>";
        s += "<p><i>Дата открытия: </i> <b>" +
                framework.utils.Converter.dateToString(sicklist.getDateOpen().getTime()) + "</b> </p>";
        String direction;
        if (sicklist.getEnterprise().getID() != 0) {
            direction = sicklist.getEnterprise().getTitle();
View Full Code Here


        }
        DirectoryDialogCollaborators dlg
                = new DirectoryDialogCollaborators(false, false, false, selectedItem);
        dlg.setVisible(true);
        if (dlg.getDlgResult() == ModalDialog.DLG_OK) {
            DirectoryCollaboratorItem item = (DirectoryCollaboratorItem) dlg.getSelectedItems().get(0);
            wtOn.setSelected(false);
            workTypesCombo.setEnabled(false);
            collCombo.setEnabled(true);
            fillCollaboratorCombo((DirectoryCollaboratorItem)null);
            //collCombo.setSelectedItem(item);
View Full Code Here

                
                if(isDirty()) {
                    return;
                }
                
                DirectoryCollaboratorItem selectedCollaborator = item.getCollaborator();
                fillCollaboratorCombo(selectedCollaborator);
               
                calendar.removePropertyChangeListener(calendarProcess);
                Calendar cal = GregorianCalendar.getInstance();
                cal.setTime(item.getBegin());
View Full Code Here

            try {
                calendar.removePropertyChangeListener(calendarProcess);
                calendar.setCalendar(TimeLocal.getCurrentTime());
                calendar.addPropertyChangeListener(calendarProcess);
      
                DirectoryCollaboratorItem coll = (DirectoryCollaboratorItem)newItem;
                initPanel(coll);
                setPanelMode(PANELMODE_OK, null);
            } catch (WeekendException ex) {
                setPanelMode(PANELMODE_HOLIDAY, ex.getLocalizedMessage());
            } catch (Exception ex) {
View Full Code Here

                        calendar.setCalendar(currentDay);
                        calendar.addPropertyChangeListener(calendarProcess);
                    }
                    return;
                }
                DirectoryCollaboratorItem coll = (DirectoryCollaboratorItem) collabModel.getSelectedItem();
                initPanel(coll);
                setPanelMode(PANELMODE_OK, null);
            } catch (WeekendException ex) {
                setPanelMode(PANELMODE_HOLIDAY, ex.getLocalizedMessage());
                calendar.setEnabled(true);
View Full Code Here

        ((AbstractDocument) tfMoney.getDocument()).setDocumentFilter(filter);

        tfMoney.setText(String.format("%.2f", 0.01 * cardLocal.getMoney()));

        cbCardType.setSelectedItem(cardLocal.getCardType());
        DirectoryCollaboratorItem dci = cardLocal.getBlocker();
        if (dci == null) {
            tfBlock.setText("");
            btBlock.setText("Заблокировать");
            btBlock.setEnabled(UserInfo.get().check(UserRightsSet.BLOCK_DISCOUNT_CARD)
                    || UserInfo.get().isSuperUser());
        } else {
            tfBlock.setText("Заблокировано: " + dci.toString());
            tfBlock.setForeground(DefaultColors.TABLE_RED_FOREGROUND);
            btBlock.setText("Разблокировать");
            btBlock.setEnabled(UserInfo.get().isSuperUser());
        }
    }
View Full Code Here

                }
                case COL_CLIENT: {
                    return polisData.getClient().getFIO();
                }
                case COL_DIRECTED: {
                    DirectoryCollaboratorItem serRenDirector = serRenLocal.getSerRenDirector();
                    Date date = serRenLocal.getSerDate();
                    return Converter.dateToString(date) + " " + serRenDirector.toString();
                }
                case COL_RENDERED: {
                    if (serRenLocal.isRendered()) {
                        DirectoryCollaboratorItem cl = serRenLocal.getCollaboratorFunctions().getCollaborator();
                        Date dateOrder = serRenLocal.getSerRenderDate();
                        return Converter.dateToString(dateOrder) + " " + cl.toString();
                    } else {
                        return "Не оказана";
                    }
                }
                default:
View Full Code Here

                dbf.read();
                String ogrn = fields.get(Col.C_OGRN).get().trim();
                String tfLpuCode = fields.get(Col.MCOD).get().trim();
                if (ogrn.equals(lpuOGRN) && tfLpuCode.equals(lpuCode)) {
                    String collCode = fields.get(Col.PCOD).get().trim();
                    DirectoryCollaboratorItem coll = collMap.get(collCode);
                    if (coll != null) {
                        CollaboratorLocal collab = new CollaboratorLocal(coll.getID(), null);//NULL AL
                        Date begin;
                        String begStr = fields.get(Col.DATE_B).get().trim();
                        if (begStr.isEmpty()) {
                            begin = null;
                        }
View Full Code Here

            boolean cellHasFocus) {
        SheduleReceptionData item = (SheduleReceptionData) value;
        String str = "Ошибка";
        ImageIcon icon = null;
        try {
            DirectoryCollaboratorItem coll = item.getCollaborator();
            str = String.format("<html><p><u>Врач:</u><br>%s</p><p><u>Дата:</u><br>%s</p></html>",
                    coll.toString(), Converter.dateToString(item.getBegin()));
            icon = coll.getImage();
            if(icon == null) {
                icon = defaultImage;
            }
        } catch (ClipsException ex) {
            ex.printStackTrace();
View Full Code Here

        final DirectoryCollaborator collDir = DirectoryLocator.getDirectory(DirectoryCollaborator.class);
        panelSelColl.addContentStateListener(new ContentStateListener() {
            @Override
            public void contentStateChanged() {
                DirectoryCollaboratorItem item = panelSelColl.getSelectedItem();
                int id = item == null ? 0 : item.getID();
                try {
                    chooseDone(0, id);
                } catch (ChoosePanelComboException ex) {
                    try {
                        int collID = sil.getCollaborator().getID();
View Full Code Here

TOP

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

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.