[ONOFF]
CALCMSHEETNO=999
CALCM=1
CALCDSHEETNO=999
CALCD=0
NOINITSQCP=1 

[DVQuery]
SD_SCHDMD=M012;D002;D180;D013;D014;D015;M011

[FORM]
SHOWBDTP=1
SHOWEDTP=1

[PINGZHENG]
ISAPP=0
NOTCHECKPERIOD=1

[GOTOFORM]
FIELDS=D013;M002
FORM=fsdCHD;ffmACR
OPENTYPE=0;1
TABLE=SD_SCHDM;FM_ACRM
FORMTYPE=01;01

D013WHERE=M002;M001
D013VALUE=D013;D001

M002WHERE=D043;M001 
M002VALUE=M002;M001 

[CALCHZM]
;0=get from here, 1=get from db
CALCTYPE=0
;0=CALC ONE REC,1 CALC LOOP; 2 SET STRIGN VALUE
MODE=0
FIELDS=M065;M029;M028;M066;M035;M034;M068

M065SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M065TRIGGER=2
;0=without tax,1=with tax function
0M065=D024*D025
M065EXITFIELD=
M065DATATYPE=I
;M IS cdsM Field
M065FIELDGRID=D;D
M065LOOP=D

M029SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M029TRIGGER=2
;0=without tax,1=with tax function
0M029=D024*D025-D024*D025/(1+D221/100)
M029EXITFIELD=
M029DATATYPE=I
;M IS cdsM Field
M029FIELDGRID=D;D;D;D;D
M029LOOP=D

M028SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M028TRIGGER=2
;0=without tax,1=with tax function
0M028=M065-M029
M028EXITFIELD=
M028DATATYPE=I
;M IS cdsM Field
M028FIELDGRID=M;M
M028LOOP=

M066SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M066TRIGGER=1
;0=without tax,1=with tax function
0M066=M065*M013
M066EXITFIELD=
M066DATATYPE=I
;M IS cdsM Field
M066FIELDGRID=M;M
M066LOOP=

M035SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M035TRIGGER=2
;0=without tax,1=with tax function
0M035=M029*M013
M035EXITFIELD=
M035DATATYPE=I
;M IS cdsM Field
M035FIELDGRID=M;M
M035LOOP=

M034SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M034TRIGGER=1
;0=without tax,1=with tax function
0M034=M066-M029
M034EXITFIELD=
M034DATATYPE=I
;M IS cdsM Field
M034FIELDGRID=M;M
M034LOOP=

M068SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M068TRIGGER=2
;0=without tax,1=with tax function
0M068=D034*D041
M068EXITFIELD=
M068DATATYPE=I
;M IS cdsM Field
M068FIELDGRID=D;D
M068LOOP=D

[CALCHZD]
;0=get from here, 1=get from db
CALCTYPE=0
;0=CALC ONE REC,1 CALC LOOP; 2 SET STRIGN VALUE
MODE=0
FIELDS=D220;D221;D015;D019;D042

D220SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
D220TRIGGER=3
;0=without tax,1=with tax function
0D220=M020
D220EXITFIELD=
M011DATATYPE=S
;M IS cdsM Field
D220FIELDGRID=M
D220LOOP=

D221SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
D221TRIGGER=3
;0=without tax,1=with tax function
0D221=M011
D221EXITFIELD=
M011DATATYPE=S
;M IS cdsM Field
D221FIELDGRID=M
D221LOOP=

D042SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
D042TRIGGER=0;1
;0=without tax,1=with tax function
0D042=D024*D041
D042EXITFIELD=D024;D041
D042DATATYPE=I
;M IS cdsM Field
D042FIELDGRID=D;D
D042LOOP=

D019SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
D019TRIGGER=0;1
;0=without tax,1=with tax function
0D019=D024*D025
D019EXITFIELD=D024;D025;D221
D019DATATYPE=I
;M IS cdsM Field
D019FIELDGRID=D;D
D019LOOP=

D015SHEETNO=999  
;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
D015TRIGGER=0;1
;0=without tax,1=with tax function
0D015=D024*D025-D024*D025/(1+D221/100)
D015EXITFIELD=D024;D025;D221
D015DATATYPE=I
;M IS cdsM Field
D015FIELDGRID=D;D;D;D;D
D015LOOP=

[APPAPPENDREC]
;sFBrNo,sFPeriod,sFStockID,sWh,sStandUnit 
;append order detail as follow
SD_RPMXSTOP=0
SD_RPMXSHEETNO=999
SD_RPMXFIELDS=M011;M001;M012;M013
SD_RPMXFIELDSVALUE=sFPeriod;M001;M015;M018
SD_RPMXFIELDGRID=M;M;M;M
SD_RPMXNOEMPTY=
SD_RPMXFILTERFIELDS=M011;M012
SD_RPMXFILTERFIELDSVALUE=sFPeriod;M015

SD_RPMXITM=
SD_RPMXITMWHERE=
SD_RPMXITMWHEREVALUE=
SD_RPMXITMcorresponding=
