home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
4611
/
fw16d.ins
/
SOURCE
/
CLASSES
/
RCOLUMN.PRG
< prev
next >
Wrap
Text File
|
1994-06-09
|
4KB
|
91 lines
/*
┌─ Programa ───────────────────────────────────────────────────────────────┐
│ Aplicación: Clase TRcolumn │
│ Fichero: RCOLUMN.PRG │
│ Autor: Ignacio Ortiz de Zúñiga Echeverría │
│ Fecha: 24/05/94 │
│ Hora: 17:20:39 │
│ Make File: None │
│ Exec File: None │
│ Copyright: 1994 by Ortiz de Zuñiga, S.L. │
└──────────────────────────────────────────────────────────────────────────┘
*/
#include "FiveWin.ch"
#include "common.ch"
/*
┌─ Clase ──────────────────────────────────────────────────────────────────┐
│ Descripción: Clase Columnas de Report │
│ Autor: Ignacio Ortiz de Zúñiga Echeverría │
│ Fecha: 24/05/94 │
│ Hora: 16:18:37 │
│ Copyright: Ortiz de Zuñiga, S.L. │
└──────────────────────────────────────────────────────────────────────────┘
*/
CLASS TRColumn
DATA nWidth ,; // ancho
aTitle ,; // matriz de bTitulos
aData ,; // matriz de bData
aPicture ,; // matriz de cPictures
bFont ,; // bloque->nId | nId => oReport:aFont[nId]
oReport ,; // Referencia Container Report
lTotal ,; // total (.T.|.F.)
nTotal ,; // valor total de la columna
aSubTotal ,; // matriz de subtotales por cada Grupo
bTotalExpr ,; // Condición para totalizar bloque->lógico
bTotalPict ,; // Picture de total y subtotal
nCol ,; // columna de impresión fijada por el usuario
cColUpChar ,; // caracter para Columna Titulo Arriba
cColDnChar // caracter para Columna Titulo Abajo
METHOD New() CONSTRUCTOR
ENDCLASS
/*
┌─ Clase ──────────────────────────────────────────────────────────────────┐
│ Descripción: Constructor de clase TRColumn │
│ Autor: Ignacio Ortiz de Zúñiga Echeverría │
│ Fecha: 24/05/94 │
│ Hora: 18:07:14 │
│ Copyright: Ortiz de Zuñiga, S.L. │
└──────────────────────────────────────────────────────────────────────────┘
*/
METHOD New( aTitle ,;
nCol ,;
aData ,;
nSize ,;
aPicture ,;
bFont ,;
lTotal ,;
bTotalExpr ,;
oReport ) CLASS TRColumn
DEFAULT aTitle := {{|| ""} } ,;
aData := {{|| ""} } ,;
nSize := len(aTitle[1]) ,;
aPicture := aFill(array(len(aData)),"") ,;
nCol := 0 ,;
bFont := {|| 1 } ,;
lTotal := .F. ,;
bTotalExpr := {|| .T. }
::aTitle = aTitle
::aData = aData
::nWidth = nSize
::aPicture = aPicture
::bFont = bFont
::lTotal = lTotal
::nTotal = 0
::oReport = oReport
::bTotalExpr = bTotalExpr
::nCol = nCol
::cColUpChar = "="
::cColDnChar = "="
::bTotalPict = iif(len(aPicture)>0, aPicture[1], "")
Return NIL