home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
documents.tcl
< prev
next >
Wrap
Text File
|
1996-12-11
|
2KB
|
70 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1995
#
# File: @(#)documents.tcl /main/hindenburg/1
# Author: Harm Leijendeckers
# Description: Report on documents
# Usage in: PhaseVersion and higher
#
#---------------------------------------------------------------------------
# SccsId = @(#)documents.tcl /main/hindenburg/1 11 Dec 1996 Copyright 1995 Cadre Technologies Inc.
Class ReportDocuments : {ReportBase} {
constructor
method phaseReport
}
constructor ReportDocuments {class this} {
set this [ReportBase::constructor $class $this]
$this reportName Documents
return $this
}
method ReportDocuments::phaseReport {this} {
set allDocuments [query "system.type == document" \
[[$this phaseV] systemVersions]]
if [lempty $allDocuments] { return 0 }
set report [$this report]
$report header {
[$this report] print Document 31
[$this report] print Version 16
[$this report] print Status 11
[$this report] print Link 14
[$this report] print "Documented System" 31
[$this report] print "Editor" 11
[$this report] print Directory 17 line
[$this report] line
}
foreach sysV [osort system.name $allDocuments] {
$report print [[$sysV system] name] 30
$report space
$report print [$sysV versionName] 15
$report space
$report print [$sysV status] 10
$report space
set link [[$this phaseV] findSystemVersionLink -bySystemVersion $sysV]
$report print [$link status] 13
$report space
$report print [query -s value "name == doc_sys" [$sysV properties]] 30
$report space
$report print [query -s value "name == editor" [$sysV properties]] 10
$report space
$report print [query -s value "name == directory" [$sysV properties]] 17
$report line
}
$report page
$report remove header
return 0
}
set executeMe [ReportDocuments new]