Package clips.delegate.directory.simple.serviceClass

Examples of clips.delegate.directory.simple.serviceClass.DirectoryServiceClassItem


        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btOkActionPerformed
        DirectoryServiceClassItem servClass = (DirectoryServiceClassItem) cbClass.getSelectedItem();
        if (servClass != null && servClass.getID() != 0
                && !tfGroupCode.getText().isEmpty() && !tfName.getText().isEmpty()) {
            ServiceDetails d = new ServiceDetails();
            d.id = 0;
            d.title = tfName.getText();
            d.code = tfGroupCode.getText();
            d.serviceClass = servClass.getID();
            d.defaultDuration = 0;
            d.description = "";
            d.serviceGroup = group.getID();
            service = new DirectoryServiceItem(d);
            setDlgResult(ModalDialog.DLG_OK);
View Full Code Here


    public Object getValueAt(int row, int col) {
        if(col == COL_SERVICES) {
            DirectoryItem item = rows.get(row);
            return item;
        }
        DirectoryServiceClassItem service = (DirectoryServiceClassItem) rows.get(row);
        DirectoryDiscountLevelItem level = (DirectoryDiscountLevelItem) columns.get(col);
        if(service != null && level != null) {
            return discounts.getValue(level, service);
        }
       
View Full Code Here

     * @param row
     * @param col
     */
    @Override
    public void setValueAt(Object arg0, int row, int col) {
        DirectoryServiceClassItem service = (DirectoryServiceClassItem) rows.get(row);
        DirectoryDiscountLevelItem level = (DirectoryDiscountLevelItem) columns.get(col);
        if(service == null || level == null) {
            return;
        }
        Integer res = (Integer)arg0;
View Full Code Here

        DirectoryServiceClass directoryClasses = DirectoryLocator.getDirectory(DirectoryServiceClass.class);
       
        for(int i=0; i<list.size(); i++) {
            DiscountDetails d = list.get(i);
            DirectoryDiscountLevelItem level = directoryLevels.getItemFromID(d.level);
            DirectoryServiceClassItem cls = directoryClasses.getItemFromID(d.cls);
            discount.setValue(level, cls, d.value);
        }
       
        discount.setLoaded();
       
View Full Code Here

TOP

Related Classes of clips.delegate.directory.simple.serviceClass.DirectoryServiceClassItem

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.