Package beans.user.client.entity

Examples of beans.user.client.entity.Client


            }
            RecipeData data = new RecipeData();

            data.id = pr.getId();

            Client cl = pr.getServiceRender().getPolis().getClient();
            data.snils = cl.getSnils();

            data.lpuTFOMScode = lpuTFOMScode;

            String sql = "SELECT fc FROM FacilityClient fc " +
                "WHERE fc.surname = :surname " +
                "AND fc.name = :name " +
                "AND fc.pathronymic = :pathronymic " +
                "AND fc.snils = :snils";
            Query query = manager.createQuery(sql);
            query.setParameter("surname", cl.getSurname());
            query.setParameter("name", cl.getName());
            query.setParameter("pathronymic", cl.getPathronymic());
            query.setParameter("snils", cl.getSnils());
            List<FacilityClient> fcList = query.getResultList();
            if (!fcList.isEmpty()) {
                FacilityClient fc = fcList.get(0);
                Excemption ex = fc.getExcemption1();
                if (ex == null) {
                    ex = fc.getExcemption2();
                }
                if (ex != null) {
                    data.exemptionID = ex.getExtKey();
                }
            }

            Polis polisOMI = clientPolisMap.get(cl.getId());
            if (polisOMI != null) {
                String polisSN ="";
                if (polisOMI.getSeries() != null) {
                    polisSN = polisOMI.getSeries();
                }
View Full Code Here


        }
        Collaborator collab = findEntity(Collaborator.class, getCollaboratorId());
        Lpu lpu = collab.getLpu();

        //Поиск действующих полисов для пациента
        Client client = findEntity(Client.class, clientID);
        String sql = "SELECT a FROM Polis a" + " WHERE a.client=:client" +
                " AND (a.fromDate <= :current OR a.fromDate IS NULL)" +
                " AND (a.tillDate >= :current OR a.tillDate IS NULL)" +
                " AND (a.trash = false)" +
                " AND (a.contract.begin<=:current)" +
View Full Code Here

TOP

Related Classes of beans.user.client.entity.Client

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.