You are on page 1of 27

Crystal Reports

( 2)

1

1.
2.
3.
4.
5.

WebSams Crystal Reports

Command
Cross-tab
M subreports


http://cdr.websams.edb.gov.hk


http://cdr.websams.edb.gov.hk

WebSams
Crystal Reports

Table, View, Stored Procedure

Stored
Procedure
View

(Sybase)

Table

Data Structure - WebSAMS


WebSAMS > >

Data Structure - WebSAMS

Data Structure - WebSAMS


Name Database Field name
Comment Database Field description
Data Type Data Type of Database Field
Varchar(X) Sting, where X is length of strings
Char String with length = 1
Integer 32-bit integer (upper limit 231 1)
TimeStamp Date with time
Decimal(X,Y) Decimal Number with length X, correct to decimal
place Y
Unsigned Int integer without +/- (upper limit 232 - 1)

For more details, please visit:


http://infocenter.sybase.com/help/index.jsp
9


(HSE)
Table
TB_HSE_COMMON
WebSAMS
TB_STU_STUDENT
TB_HSE_SBJCMP

10


TB_HSE_COMMON ()
SUID

TB_ID

CODE_ID

CH_DES

EN_DES

8886

STUDST ()

Promoted

8886

STUDST ()

Repeated

8886

RELIG ()

Not Applicable

8886

RELIG ()

Catholicism

8886

RELATE ()

01

Father

8886

RELATE ()

02

Mother

8886

EMPRES ()

01

Fill a Vacant Post

8886

EMPRES ()

02

Substitute a Teacher On Leave

11

Subreport
TB_STU_PARENT

TB_HSE_COMMON

CHNAME RELATION

SUID

8886 1001

01

8886 1002

02

8886 1003

02

8886 1004

03

8886 1005

04

8886 ACTCAT
01

8886 ACTCAT
02

Select Expert
8886 ACTCAT
03
8886
EMPRES
01

TB_ID
RELATE

8886 EMPRES
02

8886 EMPRES
03

SUID

STUID

TB_ID

CODE_ID

CH_DES

1. SUID, RELATION
CODE_ID

8886 RELATE

01

8886 RELATE

02

2.

8886 RELATE

03

8886 RELATE

04

3. Select Expert

and {TB_HSE_COMMON.TB_ID} = RELATE


12

TIMESEQ
TIMESEQ
//
1000


1. 1000 ()
2. 1100 (T1)

3. 1201 (T2A1)
4. 1302 (T3A2)
5. 1403 (T4A3)

6. 2012 (T10A12)
TB_ASR_TIME

13

( )

SQL

SQL
Parameter List

{?@suid} (SQL) @suid ()


15

Command
Modify Command
SQL

Select b.suid, b.code_ID,b.ch_des from


wsadmin.TB_HSE_COMMON b where b.TB_ID = 'SCHHUS'

wsadmin.

16

()
Command

17

Cross-tab

Cross-tab

19


(ASR)
Table
TB_ASR_STUDASSESSDATA

TB_ASR_SUBJASSESSDATA

TB_ASR_SUBJCOMASSESSDATA

View
VW_ASR_STAFF

20

()
Cross-tab

21

M Subreport

M
3A
1

33

Subreport

Subreport

Subreport
/

Subreport

22

/ subreport

23

M Subreport
http://cdr.websams.edb.gov.hk
> > >(Subreport)
subreport

24

M Subreport

M
3A
1

SUID
STUID Subreport
SCHYEAR
TERMNO

SUID
STUID Subreport
SCHYEAR /

25

()
M
subreport

26


27

You might also like