Examples of Lpu


Examples of beans.directory.lpu.entity.Lpu

 
  @Override
  protected void getExtraDefaultParameters(Map<String, Object> target, ConfigBeanRemoteM config) throws ClipsServerException{
    Collaborator collab = findEntity(Collaborator.class, getCollaboratorId());
       
        Lpu lpu = collab.getLpu();
        if (lpu != null) {
            target.put("hospital_name", lpu.getTitle());

            if (lpu.getAddress() != null) {
                target.put("hospital_addres", lpu.getAddress().getAsStringShort());
            }

            Collaborator director = collab.getLpu().getChiefDoctor();
            if (director != null){
                target.put("director_fio", director.getClient().getFio());
            }

            target.put("id_ogrn_company_code", lpu.getOgrn() != null ? lpu.getOgrn() : "");
            target.put("id_company_by_okpo", lpu.getOkpo() != null ? lpu.getOkpo() : "");
      target.put("id_industry_by_okonh", lpu.getOkonh() != null ? lpu.getOkonh() : "");
      target.put("id_action_type_by_okved", lpu.getOkved() != null ? lpu.getOkved() : "");

            Address address = lpu.getAddress();
            if (address != null && address.getAddressObject() != null) {
                target.put("id_contry_by_okato", Long.toString(lpu.getAddress().getAddressObject().getOkato()));
            }
      target.put("id_department_by_okogu", lpu.getOkogu() != null ? lpu.getOkogu() : "");
      target.put("id_type_of_company_by_okopf", lpu.getOkopf() != null ? lpu.getOkopf() : "");
      target.put("id_pattern_of_ownership_okfc", lpu.getOkfc() != null ? lpu.getOkfc() : "");
        }
  }
View Full Code Here

Examples of beans.directory.lpu.entity.Lpu

                Contract contract = (contractPachetList.get(i)).getContract();
                contractSet.add(contract);
            }
        }
        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)" +
View Full Code Here

Examples of beans.directory.lpu.entity.Lpu

    return new ReportTableFactory().createTableSelector(manager, lpu, table, tableId, range);
  }
 
  JRDataSource getMainDataSourse(int year) throws ClipsServerException{
    Collaborator  cool = findEntity(Collaborator.class, getCollaboratorId());
    Lpu        lpu = cool.getLpu();
        DiseaseReport entity = getExistentEntity();
    ArrayList<Map<String, Object>>  mainData = new ArrayList<Map<String, Object>>();
    Element                    xml = entity.getDetails((RightChecker) this).getXml();
    ReportTableFactory              factory = new ReportTableFactory();
    ArrayList<AbstractReportTable<?>>      list = factory.parseXml(xml);
View Full Code Here

Examples of beans.directory.lpu.entity.Lpu


   
    @Override
    protected void set(PacketTemplate packetTemplate, PacketTemplateDetails d) throws ClipsServerException {
        Lpu lpu = findEntity(Collaborator.class, getCollaboratorId()).getLpu();
        packetTemplate.setTitle(d.title);
        packetTemplate.setmedexamType(d.medexamTypeID == 0 ? null : findEntity(MedexamType.class, d.medexamTypeID));
        //packetTemplate.setDirty(details.dirty);
        packetTemplate.setTrash(d.hidden);
        if (lpu.getId() == d.lpuID){
            packetTemplate.setLpu(lpu);
        }else{
            throw new ClipsServerException("Пакет можно сохранить только для текущего ЛПУ");
        }
    }
View Full Code Here

Examples of beans.directory.lpu.entity.Lpu

    @Override
    public List<RecipeData> getRecipeDataList(Date begin, Date end) throws ClipsServerException {
        ConfigBeanRemoteM conf = getBean(ConfigBeanM.class);

        Collaborator collaborator = findEntity(Collaborator.class, getCollaborator().getId());
        Lpu lpu = collaborator.getLpu();
        String lpuTFOMScode = lpu.getLpuCode() != null ? lpu.getLpuCode() : "";

        List<RecipeData> res = new ArrayList<RecipeData>();

        Field[] f = new Field[]{
            new Field("date", begin, Field.OPERATOR_EQUAL_OR_MORE),
            new Field("date", end, Field.OPERATOR_EQUAL_OR_LESS),
        };
        List<PrescriptionDlo> recipeList = findEntityList(PrescriptionDlo.class, f);
        for (PrescriptionDlo pr : recipeList) {
            if (!pr.getServiceRender().isRendered()) {
                continue;
            }
            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();
                }
                if (polisOMI.getNumber() != null) {
                    polisSN = polisSN + " " + polisOMI.getNumber();
                }
                data.polisSN = polisSN.trim();
            }

            data.lpuOGRN = lpu.getOgrn() != null ? lpu.getOgrn() : "";
           
            Collaborator collab = pr.getServiceRender().getFunctions().getCollaborator();
            data.collabCode = lpuTFOMScode + " " + collab.getCode();

            data.mkbCode = pr.getDiagnosis().getMkb10().getCode();
View Full Code Here

Examples of domain.Lpu

    @Deprecated
    private long time;

    public ReceptionLine(SheduleReception reception) {
        this.reception = reception;
        Lpu lpuObj = reception.getCollaborator().getLpu();
        this.lpu = lpuObj.getTitleShort();
        this.addressLpu = lpuObj.getAddress() != null ? lpuObj.getAddress().getAsStringShort() : "";
        this.collaborator = reception.getCollaborator();
        this.register =  (reception.getRegister() != null
                ? new SimpleDateFormat("kk:mm").format(reception.getRegister())
                : "");
View Full Code Here

Examples of domain.Lpu

    @Override
    protected ModelAndView handle(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors) throws Exception {

        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        if (lpu == null) {
            return IncomingParamsValidator.redirectTo("/operator/index.htm", null, null, lpu, null);
        }

        CollaboratorDTO dto = (CollaboratorDTO) command;
View Full Code Here

Examples of domain.Lpu

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        if (collab == null) {
            return IncomingParamsValidator.redirectTo("/operator/collaborator.htm", client, type, lpu, collab);
        }
        if ((lpu == null) && (type == null)) {
            return IncomingParamsValidator.redirectTo("/operator/index.htm", client, type, lpu, collab);
View Full Code Here

Examples of domain.Lpu

    @Override
    protected void onBind(HttpServletRequest request, Object command, BindException errors) throws Exception {
        IndexDTO dto = (IndexDTO) command;
        if(dto.getLpu() != null) {
            Lpu lpu = dto.getLpu();
            dto.setLpuStr(lpu.getTitle().trim());
        }
    }
View Full Code Here

Examples of domain.Lpu

    @Override
    protected ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {

        Client client = CH.getOptional(getDao(), Client.class, request.getParameter("client"));
        WorkType type = CH.getOptional(getDao(), WorkType.class, request.getParameter("type"));
        Lpu lpu = CH.getOptional(getDao(), Lpu.class, request.getParameter("lpu"));
        Collaborator collab = CH.getOptional(getDao(), Collaborator.class, request.getParameter("collaborator"));

        if (client == null) {
            return IncomingParamsValidator.redirectTo("/reception/index.htm", client, type, lpu, collab);
        } else if (collab == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.