Package beans.directory.district.entity

Examples of beans.directory.district.entity.DistrictDetails


    }

    @Override
    protected void set(District entity, DistrictDetails details) throws ClipsServerException {
        District district = entity;
        DistrictDetails d = details;
        district.setTitle(d.title);
        district.setLpu(findEntity(Lpu.class, details.lpu));
    }
View Full Code Here


     * проверка полей на валидность
     * @param details
     * @throws generic.ClipsServerException
     */
    private void check(DistrictDetails details) throws ClipsServerException {
        DistrictDetails d = details;
    if (d.lpu == 0){
      throw new EDataIntegrity("Не задана поликлиника");
    }
    }
View Full Code Here

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

private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
    try {
        DistrictDetails d = new DistrictDetails();
        d.id = 0;   
        d.title = "Введите название участка";
    d.lpu = getCurLpu().getID();
        directory.getItems().append(new DirectoryDistrictItem(d));
    directory = DirectoryLocator.getDirectory(DirectoryDistrict.class, true);
View Full Code Here

        return "Территориальные участки";
    }

    @Override
    protected DirectoryDistrictItem createNullItem() {
        DistrictDetails districtDetails = new DistrictDetails();
        districtDetails.title = "Не указан";
        return new DirectoryDistrictItem(districtDetails);
    }
View Full Code Here

TOP

Related Classes of beans.directory.district.entity.DistrictDetails

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.