Package beans.directory.simple.entities

Examples of beans.directory.simple.entities.Speciality


                };
                List<DangerService> list = findEntityList(DangerService.class, f);
                if (list.size() == 0) {
                    throw new EDataIntegrity("В приказе 90 для вредного фактора не найдена услуга");
                } else if (list.size() == 1) {
                    Speciality spec = list.get(0).getSpeciality();
                    specID = spec == null ? 0 : spec.getId();
                } else {
                    specID = findUniqSpec(serviceCheckupChunk.serviceID, list);
                }
            }
View Full Code Here


            serren.setService(service);
        }

        //specialityID
        if (serrenDetails.specialityID != 0) {
            Speciality spec = findEntity(Speciality.class, serrenDetails.specialityID);
            serren.setSpeciality(spec);
        }

        //uet
        serren.setUet(ServiceRender.DEFAULT_UET);
View Full Code Here

            list = findEntityList(DangerService.class, f);
        }
        if (!list.isEmpty()){
            dangerService = (DangerService) list.get(0);//Должна быть одна и ниибёт
            dangerService.setDescription(details.description);
            Speciality spec = null;
            if (details.specialityID != 0) {
                spec = findEntity(Speciality.class, details.specialityID);
            }
            dangerService.setSpeciality(spec);
        }
        else {
            dangerService = new DangerService();
            dangerService.setDescription(details.description);
            dangerService.setDanger(findEntity(Danger.class, details.dangerId));
            dangerService.setService(findEntity(Service.class, details.serviceId));
            Speciality spec = null;
            if (details.specialityID != 0) {
                spec = findEntity(Speciality.class, details.specialityID);
            }
            dangerService.setSpeciality(spec);
        }
View Full Code Here

TOP

Related Classes of beans.directory.simple.entities.Speciality

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.