Package beans.followup.entity

Examples of beans.followup.entity.Followup


            @SuppressWarnings("unchecked")
            List<Object[]> res = query.getResultList();
            ArrayList<FollowupData> target = new ArrayList<FollowupData>();
            for (int i = 0; i < res.size(); i++) {
                Object[] line = res.get(i);
                Followup f = (Followup) line[0];
                FollowupEvent e = (FollowupEvent) line[1];
                Client c = (Client) line [2];
                FollowupData d = new FollowupData();
                d.details = f.getDetails(this);
                d.fio = c.getFio();
                d.clientID = c.getId();
                d.lastEventDetails = e.getDetails(this);
                target.add(d);
            }
View Full Code Here


     * @return список услуг договора
     */
    @Override
    public Map<FollowupEventDetails, Integer> getEventList() throws ClipsServerException {
        checkCommandAccessibility(COMMAND_READ_FOLLOWUP_EVENT);
        Followup entity = getExistentEntity();
        List<FollowupEvent> list = findEntityList(FollowupEvent.class, "follup", entity, " ORDER BY a.date");
        Map<FollowupEventDetails, Integer> res = new HashMap<FollowupEventDetails, Integer>();
        Iterator<FollowupEvent> i = list.iterator();

        HashSet<Integer> disIds = new HashSet<Integer>();
View Full Code Here

     *          безопастности либо произошла ошибка     *
     */
    @Override
    public ModificationInfo setEvent(FollowupEventDetails details) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_WRITE_FOLLOWUP_EVENT);
        Followup entity = getExistentEntity();
       
        FollowupEvent event = null;
        if (details.date.before(DateTimeUtils.getDateOnly()) && !isSuperUser() && !hasRight(UserRightsSet.WRITE_STATISTIC_MEDICAL_DATA)) {
            throw new ESecurity("Недостаточно прав для записи о приеме по ДУ задним числом");
        }
View Full Code Here

        });

        Iterator i = list.iterator();
        List<FollowupDetails> res = new ArrayList<FollowupDetails>();
        while(i.hasNext()) {
            Followup s = (Followup) i.next();
            res.add(s.getDetails((RightChecker) this));
        }
        return res;
    }   
View Full Code Here

                }
                if (disp != 4) {
                    diagDown = null;
                }

                Followup followup = new Followup();
                followup.setDateup(diagUp.getDate());
                followup.setDatedown(diagDown == null ? null : diagDown.getDate());
                followup.setCollaboratorUp(diagUp.getServiceRender().getDisease().getCollaborator());
                followup.setCollaboratorDown(diagDown == null ? null : diagDown.getServiceRender().getDisease().getCollaborator());
                followup.setUpReason(upReason);
                FollowDownReason fd = fdmap.get(dispSn);
                if (fd == null) {
                    fd = downReason;
                }
                followup.setDownReason(diagDown == null ? null : fd);
                followup.setValue(null);
                followup.setSerrenUp(diagUp.getServiceRender());
                followup.setSerrenDown(diagDown == null ? null : diagDown.getServiceRender());
                followup.setDiagnosisUp(diagUp);
                manager.persist(followup);
                for (Diagnosis diagnosis : diagList) {
                    FollowupEvent followupEvent = new FollowupEvent();
                    followupEvent.setFollup(followup);
                    followupEvent.setDate(diagnosis.getDate());
View Full Code Here

    private void replaceFollowupReason(DirectoryEntity entityWhat, DirectoryEntity entityWith) {
        //Followup
        List entityList = findEntityList(Followup.class, "upReason", entityWhat);
        for (int i = 0; i < entityList.size(); i++) {
            Followup followup = (Followup)entityList.get(i);
            followup.setUpReason((FollowupReason) entityWith);
            manager.merge(followup);
        }
        removeEntity(entityWhat);
        manager.flush();
    }
View Full Code Here

    private void replaceFollowDownReason(DirectoryEntity entityWhat, DirectoryEntity entityWith) {
        //Followup
        List entityList = findEntityList(Followup.class, "downReason", entityWhat);
        for (int i = 0; i < entityList.size(); i++) {
            Followup followup = (Followup) entityList.get(i);
            followup.setDownReason((FollowDownReason) entityWith);
            manager.merge(followup);
        }
        removeEntity(entityWhat);
        manager.flush();
    }
View Full Code Here

TOP

Related Classes of beans.followup.entity.Followup

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.