Package beans.directory.service.entity

Examples of beans.directory.service.entity.ServiceGroupDetails


                int pos = line.indexOf('|');
                if (pos > -1) {
                    String code = line.substring(0, pos);
                    String title = line.substring(pos + 1);
                    if (code.length() == 2) {
                        ServiceGroupDetails parDetails = new ServiceGroupDetails();
                        parDetails.code = code;
                        parDetails.parentItem = 0;
                        parDetails.title = title;
                       
                        parent = new DirectoryServicesGroupItem(parDetails);
                        dirGroup.getItems().append(parent);
                       
                        System.out.println(code + " " + title);
                    }
                    else if (code.length() == 6) {
                        code = code.substring(3, 6);
                       
                        ServiceGroupDetails grDetails = new ServiceGroupDetails();
                        grDetails.code = code;
                        grDetails.parentItem = parent.getID();
                        grDetails.title = title;
                       
                        group = new DirectoryServicesGroupItem(grDetails);
View Full Code Here


            if (res == JOptionPane.OK_OPTION) {
                if (tfName.getText().isEmpty() || tfGroupCode.getText().isEmpty()) {
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA);
                    return;
                } else {
                    ServiceGroupDetails details = new ServiceGroupDetails();
                    details.title = tfName.getText();
                    details.code = tfGroupCode.getText();
                    details.parentItem = selected.getID();
                    newItem = new DirectoryServicesGroupItem(details);
                    selected.getItems().append(newItem);
                    treeServiceGroup.updateUI();
                    treeServiceGroup.expandPath(treeServiceGroup.getSelectionPath());
                }
            }
        } else {
            tfGroupCodePref.setText("");
            tfName.setText("");
            tfGroupCode.setText("");
            int res = JOptionPane.showOptionDialog(this, pnlNewNode, "Заполните поля", JOptionPane.OK_CANCEL_OPTION,
                            JOptionPane.PLAIN_MESSAGE, null, a, -1);
            if (res == JOptionPane.OK_OPTION) {
                if (tfName.getText().isEmpty() || tfGroupCode.getText().isEmpty()) {
                    MessageBox.showWarning(MessageBox.W_INCORRECT_DATA);
                    return;
                } else {
                    ServiceGroupDetails details = new ServiceGroupDetails();
                    details.title = tfName.getText();
                    details.code = tfGroupCode.getText();
                    newItem = new DirectoryServicesGroupItem(details);
                    DirectoryServicesGroup svc = (DirectoryServicesGroup)
                        DirectoryLocator.getDirectory(DirectoryServicesGroup.class);
View Full Code Here

     * @param code
     * @throws cli_fmw.main.ClipsException
     */
    public void setCode(String code) throws ClipsException {
       if(isInDirectory()) {
            ServiceGroupDetails newDetails = getDetailsCopy();
            newDetails.code = code;
            saveDetails(newDetails);
        } else {
            getDetails().code = code;
        }
View Full Code Here

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

        return "Группы услуг";
    }

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

TOP

Related Classes of beans.directory.service.entity.ServiceGroupDetails

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.