Package beans.directory.vidal.entities.atc

Examples of beans.directory.vidal.entities.atc.ClassificationAtcDetails


                }
                if (lvl > stackPos + 1) {
                    System.err.println("Ошибка структуры файла");
                    break;
                }
                ClassificationAtcDetails details = new ClassificationAtcDetails();
                details.title = line;
                if (parent != null) {
                    details.groupCode = code.substring(parent.getGroupCode().length());
                    parent.getGroupCode();
                } else {
View Full Code Here


            if (res == JOptionPane.OK_OPTION) {
                if (tfName.getText().isEmpty() || tfGroupCode.getText().isEmpty()) {
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA);
                    return;
                } else {
                    ClassificationAtcDetails details = new ClassificationAtcDetails();
                    details.title = tfName.getText();
                    details.groupCode = tfGroupCode.getText();
                    details.parentItem = selected.getID();
                    newItem = new DirectoryVidalAtcItem(details);
                    selected.getItems().append(newItem);
                }
            }
        } else {
            tfGroupCodePref.setText("");
            tfName.setText("");
            tfGroupCode.setText("");
            int res = JOptionPane.showConfirmDialog(null, pnlNewNode, "Заполните поля", JOptionPane.OK_CANCEL_OPTION, -1);
            if (res == JOptionPane.OK_OPTION) {
                if (tfName.getText().isEmpty() || tfGroupCode.getText().isEmpty()) {
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA);
                    return;
                } else {
                    ClassificationAtcDetails details = new ClassificationAtcDetails();
                    details.title = tfName.getText();
                    details.groupCode = tfGroupCode.getText();
                    newItem = new DirectoryVidalAtcItem(details);
                    directoryVidalAtc.getItems().append(newItem);
                }
View Full Code Here

        return "Видаль, классификация АТХ";
    }

    @Override
    protected DirectoryVidalAtcItem createFromLoadedDetails(DirectoryItemDetails details) {
        ClassificationAtcDetails d = (ClassificationAtcDetails) details;
        return new DirectoryVidalAtcItem(d);
    }      
View Full Code Here

     * @param title название
     * @throws ClipsException
     */
    public void rename(String code, String title) throws ClipsException{
        if (isInDirectory()){
            ClassificationAtcDetails d = getDetailsCopy();
            d.groupCode = code;
            d.title = title;
            saveDetails(d);
        }else{
            getDetails().groupCode = code;
View Full Code Here

TOP

Related Classes of beans.directory.vidal.entities.atc.ClassificationAtcDetails

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.