home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
referredin.tcl
< prev
next >
Wrap
Text File
|
1996-12-12
|
2KB
|
78 lines
#--------------------------------------------------------------------------->"
#
# (c) Cadre Technologies Inc. 1995
#
# File: @(#)referredin.tcl /main/hindenburg/2
# Author: Harm Leijendeckers
# Description: Report on all cdm's and diagrams they are
# referred in.
# Usage in: SystemVersion
#
#---------------------------------------------------------------------------
# SccsId = @(#)referredin.tcl /main/hindenburg/2 12 Dec 1996 Copyright 1995 Cadre Technologies Inc.
Class ReportReferredIn : {ReportBase} {
constructor
method systemReport
}
constructor ReportReferredIn {class this} {
set this [ReportBase::constructor $class $this]
$this reportName "CDM Referred In CAD"
return $this
}
method ReportReferredIn::systemReport {this} {
set allCdmItems [query -s file.item \
"file.type == cdm" \
[$this systemV].localFileVersions]
if [lempty $allCdmItems] { return 0 }
set report [$this report]
$report header {
[$this report] print CDM 31
[$this report] print "Referred In CAD" 51
[$this report] print "In System" line
[$this report] line
}
foreach item [osort name $allCdmItems] {
$report print [$item name] 30
$report space
set found 0
set cv [$this configV]
set sv [$this systemV]
$sv getDecompositions $item $cv { decompComponents } { cad } svs fvs
foreach fv [osort file.type file.name $fvs] {
set found 1
set file [$fv file]
set fsys [$file system]
if ![$report queued] { $report space 31 }
$report print "[$file name].[$file type].[$fv versionName]" 50
$report space
$report print "[$fsys name]" line
}
if !$found {
$report print "** None **" line
}
$report line
}
$report page
$report remove header
return 0
}
set executeMe [ReportReferredIn new]