Package beans.directory.checkuptype.entity

Examples of beans.directory.checkuptype.entity.CheckupTypeDetails


    }

    @Override
    protected void set(CheckupType entity, CheckupTypeDetails details) {
        CheckupType checkupType = entity;
        CheckupTypeDetails d = details;
        checkupType.setTitle(d.title);
        //checkupType.setDirty(details.dirty);
        checkupType.setMetadata(d.metadata);
        checkupType.setDescription(d.description);
        checkupType.setIsanalyse(d.isAnalyse);
View Full Code Here


     * проверка полей на валидность
     * @param details
     * @throws generic.ClipsServerException
     */
    private void check(DirectoryItemDetails details) throws ClipsServerException {
        CheckupTypeDetails d = (CheckupTypeDetails) details;
        if(d.metadata == null || d.metadata.trim().isEmpty()) {
            throw new EDataIntegrity("Не задана форма данных");
        }
        checkXML(d.metadata);
    }
View Full Code Here

        } else {
            jLabel2.setText("Название осмотра: ");
        }
        if (checkupType == null) {
            this.isNew = true;
            CheckupTypeDetails details = new CheckupTypeDetails();
            this.checkupType = new DirectoryCheckupTypeItem(details);
            this.checkupType.setIsAnalyse(isAnalysys);
            this.metaDoc = new Document(new Element("analysys"));
        } else {
            this.metaDoc = Converter.stringToXml(checkupType.getMetadata());
View Full Code Here

    private void btCopyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCopyActionPerformed

        try {
            DirectoryCheckupTypeItem checkupType = (DirectoryCheckupTypeItem) tblTypes.getValueAt(tblTypes.getSelectedRowSorted(), 0);
            CheckupTypeDetails details = new CheckupTypeDetails();
            DirectoryCheckupTypeItem checkupTypeNew = new DirectoryCheckupTypeItem(details);
            checkupTypeNew.setTitle(checkupType.getTitle() + " (копия)");
            checkupTypeNew.setDescription(checkupType.getDescription());
            checkupTypeNew.setMetadata(checkupType.getMetadata());
            checkupTypeNew.setIsAnalyse(checkupType.isAnalyse());
View Full Code Here

        return "Типы осмотров";
    }

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

        return new DirectoryCheckupTypeItem(d);
    }

    @Override
    protected DirectoryCheckupTypeItem createNullItem() {
        CheckupTypeDetails details = new CheckupTypeDetails();
        details.title = "Не указан";
        details.isAnalyse = true;
        return new DirectoryCheckupTypeItem(details);
    }
View Full Code Here

     * @param metadata
     * @throws ClipsException
     */
    public void setMetadata(String metadata) throws ClipsException {
       if(isInDirectory()) {
            CheckupTypeDetails newDetails = getDetailsCopy();
            newDetails.metadata = metadata;
            saveDetails(newDetails);
        } else {
            getDetails().metadata = metadata;
        }       
View Full Code Here

        return getDetails().description;
    }
   
    public void setDescription(String description) throws ClipsException {
       if(isInDirectory()) {
            CheckupTypeDetails newDetails = getDetailsCopy();
            newDetails.description = description;
            saveDetails(newDetails);
        } else {
            getDetails().description = description;
        }    
View Full Code Here

     * @param isAnalyse
     * @throws ClipsException
     */
    public void setIsAnalyse(boolean isAnalyse) throws ClipsException {
        if (isInDirectory()) {
            CheckupTypeDetails newDetails = getDetailsCopy();
            newDetails.isAnalyse = isAnalyse;
            saveDetails(newDetails);
        } else {
            getDetails().isAnalyse = isAnalyse;
        }      
View Full Code Here

TOP

Related Classes of beans.directory.checkuptype.entity.CheckupTypeDetails

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.