Package beans.directory.mkb10

Examples of beans.directory.mkb10.MKBParser$Token


        return isMN;
    }

    @Override
    public boolean mustHaveStage(int mkbID) throws ClipsServerException{
        Mkb10 mkb10 = findEntity(Mkb10.class, mkbID);
        return mustHaveStage(mkb10);
    }
View Full Code Here


    }
    return false;
  }
     
  protected boolean isValidForLine(DataSetType ds, DiseaseLine line){
    Mkb10      dsMkb = getMkbForItem(ds);
    if (dsMkb == null){
      throw new IllegalStateException();
    }
    if (isIncludedToLine(dsMkb, line)) {
      if (!isExcludedFromLine(dsMkb, line)) {
View Full Code Here

 
  protected String buildMkbString(int[] itemMkbIds) throws ClipsServerException{
    boolean            first = true;
    StringBuffer        itemCodes = null;
    for (int mkb10id : itemMkbIds) {
      Mkb10      mkb10 = findEntity(Mkb10.class, mkb10id);
      if (first) {
        first = false;
        itemCodes = new StringBuffer(mkb10.getCode());
      }
      else {
        itemCodes.append(", ");
        itemCodes.append(mkb10.getCode());
      }
    }
    return itemCodes == null? "": itemCodes.toString();
  }
View Full Code Here

        }
        else{
          return false;
        }
      case SPECIAL_LINE_TYPE_IGNORE_SANATORIUM_HEALING:
        Mkb10      dsMkb = getMkbForItem(ds);
        if (disType == DisabilityType.DISABILITY_TYPE_SANATORIUM_HEALING){
          return isExcludedFromLine(dsMkb, line);
        }
        else if (disType != DisabilityType.DISABILITY_TYPE_DISEATED_SUPPORT
            && disType != DisabilityType.DISABILITY_TYPE_MATERNITY_LEAVE){
View Full Code Here

        Set<Entry<String, Set<String>>> entrySet = cc.mkbVidals.entrySet();
        //хеш   код     mkbID
        HashMap<String, Integer> mapMKB = new HashMap<String, Integer>();
        List mkbList = findEntityList(Mkb10.class);
        for (int i = 0; i < mkbList.size(); i++) {
            Mkb10 mkb10 = (Mkb10) mkbList.get(i);
            //System.out.println(mkb10);
            //if (mapMKB.containsKey(mkb10.getCode())) {
                //throw new ClipsServerException ("Должен быть только 1 элемент МКБ10 с данным кодом " + mkb10.getCode());
            //}
            mapMKB.put(mkb10.getCode(), mkb10.getId());
        }
        //throw new ClipsServerException ("Должен быть только 1 элемент МКБ10 с данным кодом " + mkb10.getCode());
       
        for (Iterator<Entry<String, Set<String>>> it = entrySet.iterator(); it.hasNext();) {
            Entry<String, Set<String>> entry = it.next();
View Full Code Here

        mkb10.setCode(d.code);
        mkb10.setMustNotify(d.mustNotify);
        mkb10.setInfectious(d.infectious);
        mkb10.setShortTitle(d.shortTitle);
        if(d.parentItem > 0) {
            Mkb10 mkb10Parent = findEntity(Mkb10.class, d.parentItem);
            mkb10.setRef(mkb10Parent);
        }
    }
View Full Code Here

  }
 
  int      counter = 0;
 
  void saveItem(Mkb10 parent, MkbItem item){
    Mkb10      entity = item.getMKB10Item();
    if (entity == null){
      entity = new Mkb10();
    }
    entity.setCode(item.getMkbCode());
    entity.setTitle(item.getTitle());
    entity.setRef(parent);
    entity.setTrash(false);
    entity = fastSaveEntity(entity);
    if (counter++ % 100 == 0) {
      System.err.println(counter + " : " + item.getId());
    }
View Full Code Here

    return false;
  }
 
  void tryToDeepRemap(LinkedList<Mkb10> droppedList, List<MkbItem> newTree){
    for (Iterator<Mkb10> it = droppedList.iterator(); it.hasNext();) {
      Mkb10 entity = it.next();
      if (!entity.isTrash()){
        for (MkbItem mkbItem : newTree) {
          if (mkbItem.getMKB10Item() == null) {
            if (deepMkbStrEqual(entity.getCode(), mkbItem.getMkbCode())) {
              mkbItem.setMKB10Item(entity);
              it.remove();
              break;
            }
          }
View Full Code Here

        treeMkb10.updateUI();
}//GEN-LAST:event_btDeleteMKB10ActionPerformed

private void btAddMKB10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddMKB10ActionPerformed
    try {
        Mkb10Details d = new Mkb10Details();
        d.id = 0;
        d.title = "Введите название";
        d.code = "";
        d.shortTitle = "";
        DirectoryMKB10Item item = new DirectoryMKB10Item(d);
View Full Code Here

                }

                DirectoryMKB10Item item = dirMKB.getItemByCode(kod);
                if (item == null) {
                    DirectoryMKB10Item parent = getParent(kod);
                    Mkb10Details d = new Mkb10Details();
                    d.code = kod;
                    d.title = title;
                    //d.shortTitle = shortTitle;
                    d.parentItem = parent.getID();
                    item = new DirectoryMKB10Item(d);
View Full Code Here

TOP

Related Classes of beans.directory.mkb10.MKBParser$Token

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.