Package beans.user.client.entity

Examples of beans.user.client.entity.ClientDetails


                    && !isSuperUser()) {
                        throw new ESecurity("Отсутствует право изменять данные сотрудников");
            }
        }

        ClientDetails d = (ClientDetails) details;
       
        String msg = FormatChecker.checkEmail(d.email);
        if(msg == null) {
            msg = FormatChecker.checkPhones(d.telephones);
        }
View Full Code Here


            emc.setClient(entity);
        } else {
            auditDoc = new AuditDoc<Emc>(emc, getCollaborator());
        }

        ClientDetails d = (ClientDetails)details;
        if (d.numberEmc != null && !d.numberEmc.isEmpty() && !d.noCheckEmcNum) {
            int entityCount = getEntityCount(Emc.class, new Field[]{new Field("number", d.numberEmc),
                                                                    new Field("client", entity, Field.OPERATOR_NOT_EQUAL)});
            if (entityCount > 0) {
                throw new ClipsServerException("Уже существует ЭМК с данным номером");
View Full Code Here

        }
        ArrayList<Client> pacientsA = new ArrayList<Client>(pacients.values());
        HashMap<ClientUniq, ArrayList<Client>> pacientsMap = new HashMap<ClientUniq, ArrayList<Client>>();
        for (int i = 0; i < pacientsA.size(); i++) {
            Client c = pacientsA.get(i);
            ClientDetails det = c.getDetails(this);
            ClientUniq p =
                    new ClientUniq(det.surnameId, det.nameId, det.pathronId, det.born);
            ArrayList<Client> clA = pacientsMap.get(p);
            if (clA == null) {
                clA = new ArrayList<Client>();
View Full Code Here

    }

    private ArrayList<AuditDetails> fillClientDetails(Client dst, Client src) throws ClipsServerException {
        ArrayList<AuditDetails> target = new ArrayList<AuditDetails>();
        System.out.println("        details");
        ClientDetails detailsDst = dst.getDetails(this);
        ClientDetails detailsSrc = src.getDetails(this);
        AuditDoc<Client> auditDst = new AuditDoc<Client>(dst, getCollaborator());
        if (detailsDst.socialCardCode == null || detailsDst.socialCardCode.isEmpty()) {
            dst.setSocialCardId(detailsSrc.socialCardCode);
            System.out.println("          change socialСardCode");
        }
View Full Code Here

        if (!c.isValid()) {
            throw new EDataIntegrity("Неполные данные пациента");
        }

        //CLIENT
        ClientDetails clientDetails = new ClientDetails();
        clientDetails.surnameId = c.famID;
        clientDetails.nameId = c.nameID;
        clientDetails.pathronId = c.patronID;
        clientDetails.sexId = c.sexID;
        clientDetails.born = c.dateBorn;
        clientDetails.socialStatusId = c.socStatusID;
        clientDetails.districtId = c.districtID;
        clientDetails.inn = c.inn;
        clientDetails.snils = c.snils;
        clientDetails.numberEmc = c.numambk;
        ClientUniq cu = new ClientUniq(c.famID, c.nameID, c.patronID, c.dateBorn);
        Integer clientID = mapClient.get(cu);
        Client client = null;
        if (clientID != null && clientID != 0) {
            client = findEntity(Client.class, clientID);
        }
        if (client != null) {
            ClientDetails d2 = client.getDetails(this);
            d2.surnameId = clientDetails.surnameId;
            d2.nameId = clientDetails.nameId;

            d2.pathronId = clientDetails.pathronId;
            d2.sexId = clientDetails.sexId;
View Full Code Here

        super(details, al);
    }

    @Override
    protected ClientDetails getNewDetails() {
        return new ClientDetails();
    }
View Full Code Here

TOP

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

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.