Package beans.directory.discount.entity

Examples of beans.directory.discount.entity.DiscountLevelDetails


    private void newBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newBtnActionPerformed
        String name = JOptionPane.showInputDialog(this, "Введите название нового уровня дисконта");
        if(name != null) {
            try {
                DirectoryDiscountLevel directory = (DirectoryDiscountLevel) DirectoryLocator.getDirectory(DirectoryDiscountLevel.class, false);
                DiscountLevelDetails details = new DiscountLevelDetails();
                details.money = 0;
                details.title = name;
                directory.getItems().append(new DirectoryDiscountLevelItem(details));
                mainTable.setModel(new TableModelDiscountLevels());
            } catch (ClipsException ex) {
View Full Code Here


     * @param levelMoney
     * @throws ClipsException
     */
    public void setLevel(int levelMoneythrows ClipsException {
       if(isInDirectory()) {
            DiscountLevelDetails newDetails = getDetailsCopy();
            newDetails.money = levelMoney;
            saveDetails(newDetails);
        } else {
            getDetails().money = levelMoney;
       
View Full Code Here

        return "Уровень дисконта";
    }

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

TOP

Related Classes of beans.directory.discount.entity.DiscountLevelDetails

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.