Package clips.delegate.directory.complex

Examples of clips.delegate.directory.complex.DirectoryExpenditureTypeItem


     * геттер метрики
     * @return
     */
    public DirectoryExpenditureMetricItem getMetric() throws ClipsException {
        DirectoryExpenditureType directoryExp = DirectoryLocator.getDirectory(DirectoryExpenditureType.class, false);
        DirectoryExpenditureTypeItem item = directoryExp.getItemFromID(getDetails().expenTypeID);
        return item.getMetrics();
    }
View Full Code Here


                        if (serRenLocal != null) {
                            eil = new ExpenditureItemData(serRenLocal);
                        } else {
                            eil = new ExpenditureItemData(service);
                        }
                        DirectoryExpenditureTypeItem type = (DirectoryExpenditureTypeItem) s.get(i);
                        eil.setType(type);
                        items.append(eil);
                        resetTable();
                    }
                }
View Full Code Here

        tfNewExpenTitle.setText("");//название не задано
        // спрашиваем подтверждение
        int res = JOptionPane.showConfirmDialog(MainWindow.mainWindow, panelNewExpenType, "Создание нового материала", JOptionPane.OK_CANCEL_OPTION);
        if (res == JOptionPane.OK_OPTION) { // если подтверждение есть
            try {// пробуем добавить новый итем в справочник
                DirectoryExpenditureTypeItem item = new DirectoryExpenditureTypeItem(new ExpenditureTypeDetails());
                item.setTitle(tfNewExpenTitle.getText());//название
                item.setMetrics((DirectoryExpenditureMetricItem) cbNewExpenMetrics.getSelectedItem());//метрика
                cache.append(item);//добвавляем в справочник
                resetTable(); // обновляем таблицу
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
            }
View Full Code Here

TOP

Related Classes of clips.delegate.directory.complex.DirectoryExpenditureTypeItem

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.