Package beans.directory.cabinet.entity

Examples of beans.directory.cabinet.entity.CabinetDetails


    }

    @Override
    protected void set(Cabinet entity, CabinetDetails details) throws ClipsServerException {
        Cabinet cabinet = entity;
        CabinetDetails d = details;
        cabinet.setTitle(d.title);
        cabinet.setDirty(details.dirty);
        cabinet.setDesc(d.description);
        cabinet.setTrash(d.hidden);
        cabinet.setLpu(findEntity(Lpu.class, details.lpuId));
View Full Code Here


     * проверка полей на валидность
     * @param details
     * @throws generic.ClipsServerException
     */
    private void check(CabinetDetails details) throws ClipsServerException {
        CabinetDetails d = details;
        if(d.description != null
                && d.description.length() > 250) {
                throw new EDataIntegrity("Задано слишком длинное описание");
        }
    if (d.lpuId == 0){
View Full Code Here

     * проверка полей на валидность
     * @param details
     * @throws generic.ClipsServerException
     */
    private void check(DirectoryItemDetails details) throws ClipsServerException {
        CabinetDetails d = (CabinetDetails) details;
        if(d.description != null
                && d.description.length() > 250) {
                throw new EDataIntegrity("Задано слишком длинное описание");
        }
    }
View Full Code Here

     * @param desc CString or null
     * @throws cli_fmw.main.ClipsException
     */
     public void setDescription(String desc) throws ClipsException {
        if(isInDirectory()) {
            CabinetDetails newDetails = getDetailsCopy();
            newDetails.description = desc;
            saveDetails(newDetails);
        } else {
            getDetails().description = desc;
        }
View Full Code Here

        add(jPanel2, java.awt.BorderLayout.PAGE_START);
    }// </editor-fold>//GEN-END:initComponents

private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
    try {
        CabinetDetails d = new CabinetDetails();   
        d.id = 0;   
        d.title = "Введите название кабинета";        
        d.description = "";
    d.lpuId = getCurLpu().getID();
        directory.getItems().append(new DirectoryCabinetItem(d));
View Full Code Here

        return "Кабинеты";
    }

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

        return new DirectoryCabinetItem(d);
    }

    @Override
    protected DirectoryCabinetItem createNullItem() {
        CabinetDetails d = new CabinetDetails();
        d.description = "";
        d.title = "Кабинет не указан";
        return createFromLoadedDetails(d);
    }
View Full Code Here

TOP

Related Classes of beans.directory.cabinet.entity.CabinetDetails

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.