Examples of Collaborator


Examples of beans.user.collaborator.entities.Collaborator

        if (d.id == 0) {
            ConfigBeanRemoteM conf = getBean(ConfigBeanM.class);
            int regionCode = conf.getInteger(ConfigParametr.REGION_CODE_ID);

            //TODO0 какой иншурер выбрать?
            Collaborator collab = findEntity(Collaborator.class, getCollaborator().getId());
            int insurerID = collab.getLpu().getInsurer().getId();

            AuditDoc<Polis> auditDoc = new AuditDoc<Polis>(null, getCollaborator());
            Polis polis = new Polis();
            polis.setClient(findEntity(Client.class, d.clientID));
            polis.setCollaborator(findEntity(Collaborator.class, getCollaboratorId()));
View Full Code Here

Examples of beans.user.collaborator.entities.Collaborator

  AbstractTablesSelector<?> createTableSelector(AbstractReportTable table, Lpu lpu, DateRange range, int tableId) throws ClipsServerException{
    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.user.collaborator.entities.Collaborator

    @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();

            String recipeSN ="";
            if (pr.getSeries() != null) {
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator

    collaborators = collaborators == null ? Json.createArray() : collaborators;
    collaborators.forEach(new ListIterator<JsonObject>() {
      @Override
      public void call(int index, JsonObject obj) {
        boolean isMe = store.getBus().getSessionId().equals(obj.getString("sessionId"));
        Collaborator collaborator = new CollaboratorImpl(obj.set(Key.IS_ME, isMe));
        document.collaborators.set(collaborator.sessionId(), collaborator);
      }
    });

    if (components != null && components.length() > 0) {
      final CollaborativeTransformer transformer = new CollaborativeTransformer();
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator

  public String toString() {
    return toJson().toJsonString();
  }

  void consumeAndSubmit(OperationComponent<?> component) {
    Collaborator me = document.collaborators.get(store.getBus().getSessionId());
    CollaborativeOperation operation =
        new CollaborativeOperation(me == null ? null : me.userId(), store.getBus().getSessionId(),
                                   Json.createArray().push(component));
    applyLocally(operation);
    undoManager.checkpoint();
    undoManager.undoableOp(operation);
    mayUndoRedoStateChanged();
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator

      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    Collaborator other = (Collaborator) obj;
    if (sessionId == null) {
      if (other.sessionId() != null) {
        return false;
      }
    } else if (!sessionId.equals(other.sessionId())) {
      return false;
    }
    if (userId == null) {
      if (other.userId() != null) {
        return false;
      }
    } else if (!userId.equals(other.userId())) {
      return false;
    }
    return true;
  }
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator

        Constants.Topic.STORE + "/" + internalApi.id + Constants.Topic.PRESENCE
        + Constants.Topic.WATCH, new Handler<Message<JsonObject>>() {
          @Override
          public void handle(Message<JsonObject> message) {
            JsonObject body = message.body().set(Key.IS_ME, false);
            Collaborator collaborator = new CollaboratorImpl(body);
            boolean isJoined = !body.has(Key.IS_JOINED) || body.getBoolean(Key.IS_JOINED);
            String sessionId = collaborator.sessionId();
            if (isJoined) {
              if (!collaborators.has(sessionId)) {
                collaborators.set(sessionId, collaborator);
                model.bridge.store.getBus().publishLocal(
                    Constants.Topic.STORE + "/" + model.bridge.id + "/"
View Full Code Here

Examples of com.goodow.realtime.store.Collaborator

  private JsonObject getCollaborator(String sessionId) {
    JsonObject toRtn = collaborators.get(sessionId);
    if (toRtn == null) {
      String displyName = anonymousUsers.getDisplyName();
      Collaborator collaborator =
          new CollaboratorImpl(anonymousUsers.getUserId(), sessionId, displyName,
                                  anonymousUsers.getColor(), false, true,
                                  anonymousUsers.getPhotoUrl(displyName));
      toRtn = new JsonObject(JacksonUtil.<JreJsonObject>convert(collaborator).toNative());
      toRtn.removeField(Key.IS_ME);
View Full Code Here

Examples of com.heroku.api.Collaborator

        return 2;
    }

    @Override
    public Object getValueAt(int row, int column) {
        final Collaborator collaborator = getCollaborator(row);
        return column == 0 ? collaborator.getEmail() : collaborator.getAccess();
    }
View Full Code Here

Examples of com.heroku.api.Collaborator

                        HerokuCollaboratorsWindow.this.doUpdate();
                    }
                },
                new AnAction("Remove Config Variable", "", icon("/general/remove.png")) {
                    public void actionPerformed(AnActionEvent anActionEvent) {
                        final Collaborator collaborator = tableModel.getCollaborator(selectedRow.get());
                        if (collaborator==null) return;
                        if (Messages.showYesNoDialog("Remove the Collaborator: "+collaborator.getEmail(),"Remove Collaborator",Messages.getQuestionIcon())!=Messages.YES) return;
                        herokuProjectService.removeCollaborator(collaborator.getEmail());
                        HerokuCollaboratorsWindow.this.doUpdate();
                    }
                },
                new AnAction("Update", "", icon("/actions/sync.png")) {
                    public void actionPerformed(AnActionEvent anActionEvent) {
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.