コード例 #1
0
ファイル: document.java プロジェクト: surban1974/neohort
  public void executeLast(Hashtable _tagLibrary, Hashtable _beanLibrary) {
    try {
      Boolean included =
          (Boolean)
              (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Included))
                  .getContent());
      if (included != null && included.booleanValue() == true) {
      } else {
        document =
            (document)
                (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Document))
                    .getContent());
        java.util.Vector vector =
            ((java.util.Vector)
                (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Canvas))
                    .getContent()));
        vector.remove(vector.lastElement());
        if (_tagLibrary.get(getName() + ":" + getID()) == null)
          _tagLibrary.remove(getName() + ":" + getID() + "_ids_" + this.motore.hashCode());
        else _tagLibrary.remove(getName() + ":" + getID());

        ((DataOutputStream)
                (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Writer))
                    .getContent()))
            .writeBytes(document._content + document._comment + document._footer);
      }
    } catch (Exception e) {
      setError(e, iStub.log_ERROR);
    }
  }
コード例 #2
0
ファイル: document.java プロジェクト: surban1974/neohort
 public void setCanvas(Hashtable _tagLibrary, Hashtable _beanLibrary) {
   try {
     Boolean included =
         (Boolean)
             (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Included))
                 .getContent());
     if (included != null && included.booleanValue() == true) {
     } else {
       ((java.util.Vector)
               (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Canvas))
                   .getContent()))
           .addElement(document);
     }
   } catch (Exception e) {
     setError(e, iStub.log_ERROR);
   }
 }
コード例 #3
0
ファイル: document.java プロジェクト: surban1974/neohort
  public void executeFirst(Hashtable _tagLibrary, Hashtable _beanLibrary) {
    try {
      Boolean included =
          (Boolean)
              (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Included))
                  .getContent());
      if (included != null && included.booleanValue() == true) {
      } else {
        document =
            (document)
                (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Document))
                    .getContent());
        document._header = "" + _separator();
        document._footer = "" + _separator();

        ((DataOutputStream)
                (((report_element_base) _beanLibrary.get("SYSTEM:" + iConst.iHORT_SYSTEM_Writer))
                    .getContent()))
            .writeBytes(document._header);
      }
    } catch (Exception e) {
      setError(e, iStub.log_ERROR);
    }
  }