Package clips.delegate.directory.ro

Examples of clips.delegate.directory.ro.DirectoryCollaboratorItem


    public String getCollabDownDrv() throws ClipsException {
        if (!isDown()) {
            return "";
        }
        DirectoryCollaboratorItem item = getCollaboratorDown();
        if (item != null && item.getID() != 0) {
            CollaboratorLocal collab = new CollaboratorLocal(item.getID(), getAuditListener());
            if (collab.getFunctions().size() > 0) {
                DirectoryDvrItem funcItem = collab.getFunctions().get(0).getDvr();
                if (funcItem != null) {
                    return funcItem.getTitle();
                }
View Full Code Here


        HashMap<String, Object> data = new LinkedHashMap<String, Object>();
        String title = "Услуга: " + getService().toString();               
       
        ExtraField extraField;
        //назначена
        DirectoryCollaboratorItem director = getSerRenDirector();
        String toPut = director.toString() + " [" + Converter.dateToString(getSerDate()) + "]";
        extraField = new ExtraField(toPut, "Назначена: ", AlignmentType.dataInOneColoumnByLeft);
        data.put("assigned", extraField);        
       
        //оказана       
        toPut = "";
        if (isRendered()) {
            DirectoryCollaboratorItem collaborator = getCollaboratorFunctions().getCollaborator();
            toPut = collaborator.toString() + " [" + Converter.dateToString(getSerRenderDate()) + "]";
        } else {
            toPut = "не оказана";
        }
        extraField = new ExtraField(toPut, "Оказана: ", AlignmentType.dataInOneColoumnByLeft);
        data.put("directed", extraField);
View Full Code Here

        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 {
                        MessageBox.showWarning(MessageBox.W_NOT_CLOSE_EDITING);
View Full Code Here

            WriterAbstract writer = dlg.getResult();
            TableModelRegister model = new TableModelRegister(writer);
            HashMap<String, Object> data = new LinkedHashMap<String, Object>();

            ConfigLocal configLocal = ConfigLocal.getInstance();
            DirectoryCollaboratorItem director = UserInfo.get().getCollaborator().getLpu().getChiefDoctor();
            DirectoryCollaboratorItem accountantGeneral = UserInfo.get().getCollaborator().getLpu().getAccountant();
            Pair<Date, Date> dates = model.getDates();

            data.put("count", String.valueOf(model.getRowCount()));
            data.put("director", director == null ? "" : director.toString());
            data.put("buh", accountantGeneral == null ? "" : accountantGeneral.toString());
            data.put("datefrom", dates.first == null ? "" : Converter.dateToString(dates.first));
            data.put("datetill", dates.first == null ? "" : Converter.dateToString(dates.second));
            data.put("insurer", model.getInsurerTitle());
            data.put("currentdate", model.getDateGenerated() == null ? "" : Converter.dateToString(model.getDateGenerated()));
            FormReportCreator report = ReporterFactory.createFormReporter(getClass(), 2);
View Full Code Here

        if (cfg.getLastLoginGroup() < 0
                || cfg.getLastLoginUserID() < 0) {
            return;
        }
        try {
            DirectoryCollaboratorItem coll = collsDir.getItemFromID(cfg.getLastLoginUserID());
            selectItems(coll);
        } catch (DirectoryItemNotFoundException ex) {
            //cbLG.setSelectedIndex(0);
        }
    }
View Full Code Here

{
        login();
    }//GEN-LAST:event_okButtonActionPerformed

    private void login() {
        DirectoryCollaboratorItem item = null;// = (DirectoryCollaboratorItem) cbFIO.getSelectedItem();
        String text = tfUID.getText();
        try {
            int id = Integer.parseInt(text);
            try {
                item = collsDir.getItemFromID(id);
            } catch (DirectoryItemNotFoundException ex) {
                MessageBox.showWarning(MessageBox.W_INCORRECT_LOGIN);
                return;
            }
            if (item == null) {
                MessageBox.showWarning(MessageBox.W_COLLABORATOR_IS_EMPTY);
            } else {
                collSelected = item.getID();
                char p[] = jPasswordField.getPassword();
                if (p == null || p.length == 0) {
                    MessageBox.showWarning(MessageBox.W_EMPTY_PASSWORD_IMPOSSIBLE);
                } else {
                    try {
View Full Code Here

    private void selectUserByCardID(String id) throws ClipsException {
        if (id == null) {
            throw new IllegalArgumentException();
        }
        DirectoryCollaboratorItem collab = collsDir.getByCardID(id);
        if (collab != null) {
            selectItems(collab);
        }
    }
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.