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

[PARAMS]
DCRPOS=D010
NEWDELSHOW=0
NOSHOWDV=1

[layout]
setup=1

[FORM]
M002SNNUM=4
LoadDVTreeFNames=D011
LoadDVTreeFNamescap=会计科目
SHOWBDTP=1
SHOWEDTP=1

[SUMBIJIAO]
setup=1
col=3;4
row=0
tips=借贷不平衡

[DVQuery]
BS_F_KEMU=M011;M012

BS_F_KEMUCANEDIT=1

[REMEMBERFVALUED]
FIELDS=D010
;D012;D013
GETVALUE=D010;
;D013;D012
;0=DBClick,1=On new record,2=both
GETMODE=1

JIEFANG=D012
DAIFANG=D013

[GERNOBYJZM]
FIELDS=M011

M011NUM=3
MODE=0
M011SHEETNO=999
M011TBLNAME=FM_ZZPZM
M011TBLFBRNO=M001
999M011JZ=
;Y=YEAR,M=MONTH,D=DATE
M011MAXMODE=M
M011DJTYPE=M031
M011DJTYPECHG=M032

M011NOFRM=ffmZZPZ

[sncDBCurrency]
setup=1
colheight=28
FIELDS=D012;D013

[OPENFORMIDX]
0701i03=1
0701i03sucha=今天

0701i05=1
0701i05sucha=待审核凭证

[GERAPPREC]
TBLNAME=FM_ZZPZHSITEMD

FM_ZZPZHSITEMDRESGRIDMARK=D
FM_ZZPZHSITEMDFIELDS=D001;D002;D003;D004;D005;D006;D007;D008;D010;D011;D014;D012;D013;D015;D210;D018;D019;D020;D021;D022;D023
FM_ZZPZHSITEMDFIIELDSVALUE=D001;D002;D003;D004;D005;D006;D007;D008;D010;D011;D014;D012;D013;D015;D210;D018;D019;D020;D021;D022;D023
FM_ZZPZHSITEMDGERRECBYFIELDS=D802;D804;D806;D808;D810
FM_ZZPZHSITEMDGERRECBYFIELDSTYPE=01;02;03;04;05;06
FM_ZZPZHSITEMDGERRECBYFIELDSNO=D801;D803;D805;D807;D809
FM_ZZPZHSITEMDGERRECBYFIELDSNOTYPEDESP=客户;厂商;核算项目;职员;部门
FM_ZZPZHSITEMDHSTYPEFIELDS=D305;D307
FM_ZZPZHSITEMDHSITEMFIELDS=D805;D806
 

[CHECKEVENT]
Actions=aAPP;aUNAPP

aAPPDoAction=aCopyBill;aCopyBill2

aAPPaDoExecSQL2SHEETNO=999
;0= no app 1=app -1=no limit
aAPPaDoExecSQL2MODE=0
aAPPaDoExecSQL2Menu=aAPP

aAPPaCopyBillSHEETNO=999
;0= no app 1=app -1=no limit
aAPPaCopyBillMODE=0
aAPPaCopyBillMenu=mmiGERCASH

aAPPaCopyBill2SHEETNO=999
;0= no app 1=app -1=no limit
aAPPaCopyBill2MODE=0
aAPPaCopyBill2Menu=mmiGERBANK

aUNAPPDoAction=aDoExecSQL2
aUNAPPaDoExecSQL2SHEETNO=999
aUNAPPaCopyBill2MODE=0
aUNAPPaCopyBill2Menu=aUNAPP

[CHECKACTION] 
Actions=aSave;aAPP;aDel

aSaveDoAction=aCHECKHASAPPEM
aSaveaCHECKHASAPPEMSHEETNO=999

aAPPDoAction=aDoExecSQL2;aCHECKHASAPPEM
;aGERAPPREC ;停用
aAPPaCHECKHASAPPEMSHEETNO=999
aAPPaDoExecSQL2SHEETNO=999
aAPPaGERAPPRECSHEETNO=999

aDelDoAction=aDoExecSQL2 
aDelaDoExecSQL2SHEETNO=999 

[DoExecSQL]
;menu name=sql
aAPP=FM_ZZPZUPDATEDATABYSHEET
aAPPACCESS=FM_ZZPZUPDATEDATABYSHEET01;FM_ZZPZUPDATEDATABYSHEET02;FM_ZZPZUPDATEDATABYSHEET03;FM_ZZPZUPDATEDATABYSHEET04;FM_ZZPZUPDATEDATABYSHEET05;FM_ZZPZUPDATEDATABYSHEET06;FM_ZZPZUPDATEDATABYSHEET07;FM_ZZPZUPDATEDATABYSHEET08;FM_ZZPZUPDATEDATABYSHEET09;FM_ZZPZUPDATEDATABYSHEET10;FM_ZZPZUPDATEDATABYSHEET11;FM_ZZPZUPDATEDATABYSHEET12;FM_ZZPZUPDATEDATABYSHEET13;FM_ZZPZUPDATEDATABYSHEET14;FM_ZZPZUPDATEDATABYSHEET15;FM_ZZPZUPDATEDATABYSHEET16;FM_ZZPZUPDATEDATABYSHEET17;FM_ZZPZUPDATEDATABYSHEET18;FM_ZZPZUPDATEDATABYSHEET19;FM_ZZPZUPDATEDATABYSHEETDELETE;FM_ZZPZUPDATEDATABYSHEETINSERT;FM_ZZPZUPDATEDATABYSHEET20;FM_ZZPZUPDATEDATABYSHEET21;FM_ZZPZUPDATEDATABYSHEET22;FM_ZZPZUPDATEDATABYSHEET23;FM_ZZPZUPDATEDATABYSHEET24;FM_ZZPZUPDATEDATABYSHEET25;FM_ZZPZUPDATEDATABYSHEET26;FM_ZZPZUPDATEDATABYSHEET27;FM_ZZPZUPDATEDATABYSHEET28;FM_ZZPZUPDATEDATABYSHEET29;FM_ZZPZUPDATEDATABYSHEET30;FM_ZZPZUPDATEDATABYSHEET31;FM_ZZPZUPDATEDATABYSHEET32;FM_ZZPZUPDATEDATABYSHEET33;FM_ZZPZUPDATEDATABYSHEET34;FM_ZZPZUPDATEDATABYSHEET35;FM_ZZPZUPDATEDATABYSHEET36;FM_ZZPZUPDATEDATABYSHEET37;FM_ZZPZUPDATEDATABYSHEET38;FM_ZZPZUPDATEDATABYSHEET39;FM_ZZPZUPDATEDATABYSHEET40;FM_ZZPZUPDATEDATABYSHEET41;FM_ZZPZUPDATEDATABYSHEET42;FM_ZZPZUPDATEDATABYSHEET43;FM_ZZPZUPDATEDATABYSHEET44;FM_ZZPZUPDATEDATABYSHEET45;FM_ZZPZUPDATEDATABYSHEET46;FM_ZZPZUPDATEDATABYSHEET47;FM_ZZPZUPDATEDATABYSHEET48;FM_ZZPZUPDATEDATABYSHEET49;;FM_ZZPZUPDATEDATABYSHEET50;;FM_ZZPZUPDATEDATABYSHEET51;;FM_ZZPZUPDATEDATABYSHEET52
aUNAPP=FM_DELBANKCASHBOOKDJ;FM_DELBANKCASHBOOKDJ2;FM_DELBANKCASHBOOKDJ3;FM_DELBANKCASHBOOKDJ4
aDel=FM_ZZPZINSERTSYS_KEEPNO

[CHECKHASAPPEDM]
SQLS=SQL1;SQL2;SQL3;SQL4;SQL5;SQL6;SQL7;SQL8

SQL1SHEETNO=999
SQL1FIELDS=M001;M031;M011
SQL1FVALUE=M001;M031;M011
SQL1=SELECT * FROM FM_ZZPZM WHERE M002<>'SYSSHEETNO' AND M004>='FMPeriodBegin' AND M004<='FMPeriodEnd'
SQL1ACCESS=SELECT * FROM FM_ZZPZM WHERE M002<>'SYSSHEETNO' AND CDATE(CStr(YEAR(M004)) + '-' + CStr(MONTH(M004)) + '-' + CStr(DAY(M004)))>='FMPeriodBegin' AND CDATE(CStr(YEAR(M004)) + '-' + CStr(MONTH(M004)) + '-' + CStr(DAY(M004)))<='FMPeriodEnd'
SQL1TIP=凭证号重复
SQL1ACTION=aSave

SQL2SHEETNO=999
SQL2FIELDS=M001;M031;M011
SQL2FVALUE=M001;M031;M011
SQL2=SELECT * FROM FM_ZZPZM WHERE M002<>'SYSSHEETNO' AND M004>='FMPeriodBegin' AND M004<='FMPeriodEnd'
SQL2ACCESS=SELECT * FROM FM_ZZPZM WHERE M002<>'SYSSHEETNO' AND CDATE(CStr(YEAR(M004)) + '-' + CStr(MONTH(M004)) + '-' + CStr(DAY(M004)))>='FMPeriodBegin' AND CDATE(CStr(YEAR(M004)) + '-' + CStr(MONTH(M004)) + '-' + CStr(DAY(M004)))<='FMPeriodEnd'
SQL2TIP=凭证号重复
SQL2ACTION=aAPP

SQL3SHEETNO=999
SQL3FIELDS=D001
SQL3FVALUE=M001
SQL3=SELECT * FROM FM_ZZPZD WHERE D002='SYSSHEETNO' AND (D022=0 OR D023=0)
SQL3TIP=科目输入有异常,请双击或F7重新选择
SQL3ACTION=aAPP

SQL4SHEETNO=999
SQL4FIELDS=D001
SQL4FVALUE=M001
SQL4=SELECT * FROM FM_ZZPZD WHERE D002='SYSSHEETNO' AND (ISNULL(D801,'')='' OR ISNULL(D802,'')='') AND D011 IN (SELECT M011 FROM BS_F_KEMU WHERE M001='SYSFBRNO' AND M186=1)
SQL4ACCESS=SELECT * FROM FM_ZZPZD a,BS_F_KEMU b WHERE a.D002='SYSSHEETNO' AND (iif(ISNULL(a.D801),'',a.D801)='' OR iif(ISNULL(a.D802),'',a.D802)='') AND a.D011=b.M011 AND M001='SYSFBRNO' AND b.M186=1
SQL4TIP=核算项目:客户不能为空
SQL4ACTION=aAPP

SQL5SHEETNO=999
SQL5FIELDS=D001
SQL5FVALUE=M001
SQL5=SELECT * FROM FM_ZZPZD WHERE D002='SYSSHEETNO' AND (ISNULL(D803,'')='' OR ISNULL(D804,'')='') AND D011 IN (SELECT M011 FROM BS_F_KEMU WHERE M001='SYSFBRNO' AND M187=1)
SQL5ACCESS=SELECT * FROM FM_ZZPZD a,BS_F_KEMU b WHERE a.D002='SYSSHEETNO' AND (iif(ISNULL(a.D803),'',a.D803)='' OR iif(ISNULL(a.D804),'',a.D804)='') AND a.D011=b.M011 AND M001='SYSFBRNO' AND b.M187=1
SQL5TIP=核算项目:厂商不能为空
SQL5ACTION=aAPP

SQL6SHEETNO=999
SQL6FIELDS=D001
SQL6FVALUE=M001
SQL6=SELECT * FROM FM_ZZPZD WHERE D002='SYSSHEETNO' AND (ISNULL(D805,'')='' OR ISNULL(D806,'')='') AND D011 IN (SELECT M011 FROM BS_F_KEMU WHERE M001='SYSFBRNO' AND M188=1)
SQL6ACCESS=SELECT * FROM FM_ZZPZD a,BS_F_KEMU b WHERE a.D002='SYSSHEETNO' AND (iif(ISNULL(a.D805),'',a.D805)='' OR iif(ISNULL(a.D806),'',a.D806)='') AND a.D011=b.M011 AND M001='SYSFBRNO' AND b.M188=1
SQL6TIP=核算项目不能为空
SQL6ACTION=aAPP

SQL7SHEETNO=999
SQL7FIELDS=D001
SQL7FVALUE=M001
SQL7=SELECT * FROM FM_ZZPZD WHERE D002='SYSSHEETNO' AND (ISNULL(D807,'')='' OR ISNULL(D808,'')='') AND D011 IN (SELECT M011 FROM BS_F_KEMU WHERE M001='SYSFBRNO' AND M189=1)
SQL7ACCESS=SELECT * FROM FM_ZZPZD a,BS_F_KEMU b WHERE a.D002='SYSSHEETNO' AND (iif(ISNULL(a.D807),'',a.D807)='' OR iif(ISNULL(a.D808),'',a.D808)='') AND a.D011=b.M011 AND M001='SYSFBRNO' AND b.M189=1
SQL7TIP=核算项目:职员不能为空
SQL7ACTION=aAPP

SQL8SHEETNO=999
SQL8FIELDS=D001
SQL8FVALUE=M001
SQL8=SELECT * FROM FM_ZZPZD WHERE D002='SYSSHEETNO' AND (ISNULL(D809,'')='' OR ISNULL(D810,'')='') AND D011 IN (SELECT M011 FROM BS_F_KEMU WHERE M001='SYSFBRNO' AND M190=1)
SQL8ACCESS=SELECT * FROM FM_ZZPZD a,BS_F_KEMU b WHERE a.D002='SYSSHEETNO' AND (iif(ISNULL(a.D809),'',a.D809)='' OR iif(ISNULL(a.D810),'',a.D810)='') AND a.D011=b.M011 AND M001='SYSFBRNO' AND b.M190=1
SQL8TIP=核算项目:部门不能为空
SQL8ACTION=aAPP

[EXPORTEXCEL]
;action=aEXPORTEXCEL0=0
MODE=0
0SHEETNO=999
0COLROW=1,2;2,2;3,2;4,2;5,2;6,2;7,2;8,2;9,2;10,2;11,2;12,2;13,2;14,2;15,2;16,2;18,2;20,2;21,2;22,2;23,2;25,2;27,2;31,2;32,2;34,2
0FIELDSVALUE=M004;YEAR;MONTH;M032;M011;D011;D014;D015;D021;D020;D012;D013;M005;NONE;NONE;NONE;*;D010;0;*;0;M004;M012;D016;D009;0

[DBGRIDFOOTERD]
STOP=0
FIELDS=D010;D012;D013
COL=
;7;13
TYPE=fvtStaticText;fvtSum;fvtSum
D010VALUE=统 计

[DBGRIDFOOTERSQ]
STOP=0
FIELDS=M011;D012;D013
COL=
;7;13
TYPE=fvtStaticText;fvtSum;fvtSum
M011VALUE=统 计

;Coding By Parent Code(Field) to set right and User ID, AND AUTO GER MCODE
[TREESETMM018]
STOP=0
DISPLAYMODE=0
NOADDTOTREE=0
PFIELD=M012
FIELD=M011
LFIELD=M013
AUTOINC=TRUE
ADDONNOCHILD=FALSE
SNNUM=4
SHOWPNO=0

;Coding By Parent Code(Field) to set right and User ID, AND AUTO GER MCODE
[TREESETMM032]
STOP=0
DISPLAYMODE=0
NOADDTOTREE=0
PFIELD=M012
FIELD=M011
LFIELD=M013
AUTOINC=TRUE
ADDONNOCHILD=FALSE
SNNUM=4
SHOWPNO=0


;Coding By Parent Code(Field) to set right and User ID, AND AUTO GER MCODE
[TREESETMM019]
STOP=0
DISPLAYMODE=0
NOADDTOTREE=0
PFIELD=M012
FIELD=M011
LFIELD=M013
AUTOINC=TRUE
ADDONNOCHILD=FALSE
SNNUM=4
SHOWPNO=0

;Coding By Parent Code(Field) to set right and User ID, AND AUTO GER MCODE
[TREESETDD010]
STOP=0
DISPLAYMODE=0
NOADDTOTREE=0
PFIELD=M012
FIELD=M011
LFIELD=M013
AUTOINC=TRUE
ADDONNOCHILD=FALSE
SNNUM=4
SHOWPNO=0

[QOBJECTLOADTREEM]
FIELDS=M018;M032;M019

M018tvfields=M011,M014,M013,M012,M011,M016
M018TreeLevelFName=M013
M018treetblname=(SELECT * FROM FM_INFOSETTING WHERE M001='SYSFBRNO' AND  M011 = '01') AS FM_INFOSETTING
M018FGName=M011
M018FParentNo=M012
M018SHOWPNO=0

M032tvfields=M011,M014,M013,M012,M011,M016
M032TreeLevelFName=M013
M032treetblname=(SELECT * FROM FM_INFOSETTING WHERE M001='SYSFBRNO' AND  M011 = '04') AS FM_INFOSETTING
M032FGName=M011
M032FParentNo=M012
M032SHOWPNO=0

M019tvfields=M011,M014,M013,M012,M011,M016
M019TreeLevelFName=M013
M019treetblname=(SELECT * FROM FM_INFOSETTING WHERE M001='SYSFBRNO' AND  M011 = '05') AS FM_INFOSETTING
M019FGName=M011
M019FParentNo=M012
M019SHOWPNO=0

[QOBJECTLOADTREED]
FIELDS=D011;D014;D010

D011tvfields=M014,M012,M016,M015,M011,M020
D011TreeLevelFName=M016
D011treetblname=(SELECT * FROM BS_F_KEMU WHERE M812=1 AND M813=0) BS_F_KEMU
D011FGName=M014
D011FParentNo=M015
D011SHOWPNO=1
D011ORDERBY=M011

D014tvfields=M014,M012,M016,M015,M011,M020
D014TreeLevelFName=M016
D014treetblname=(SELECT * FROM BS_F_KEMU WHERE M812=1 AND M813=0) BS_F_KEMU
D014FGName=M014
D014FParentNo=M015
D014SHOWPNO=1
D014ORDERBY=M011

D010tvfields=M011,M014,M013,M012,M011,M016
D010TreeLevelFName=M013
D010treetblname=(SELECT * FROM FM_INFOSETTING WHERE M001='SYSFBRNO' AND  M011 = '02') AS FM_INFOSETTING
D010FGName=M011
D010FParentNo=M012
D010SHOWPNO=0

[QOBJECTSAVEKEYM]
FEILDS=M018;M032;M019

;if user is empty then no limit of right
M018001=M011
M018001USER= 
M018001KEYDOWNFIELDS=
M018001HIDEFIELDS=M013;M001;M003;M004;M005;M006;M007;M008;M202;M011;M012
M018001REQUIREDFIELD=M011;M014;M013;M018
M018001READONLY=
M018001DEFAULTFIELD=M013
M018001DEFAULTVALUE=1

;if user is empty then no limit of right
M032001=M011
M032001USER= 
M032001KEYDOWNFIELDS=
M032001HIDEFIELDS=M013;M001;M003;M004;M005;M006;M007;M008;M202;M011;M012
M032001REQUIREDFIELD=M011;M014;M013;M018
M032001READONLY=
M032001DEFAULTFIELD=M013
M032001DEFAULTVALUE=1

;if user is empty then no limit of right
M019001=M011
M019001USER= 
M019001KEYDOWNFIELDS=
M019001HIDEFIELDS=M013;M001;M003;M004;M005;M006;M007;M008;M202;M011;M012
M019001REQUIREDFIELD=M011;M014;M013;M018
M019001READONLY=
M019001DEFAULTFIELD=M013
M019001DEFAULTVALUE=1

[QOBJECTSAVEKEYD]
FEILDS=D010

;if user is empty then no limit of right
D010001=M011
D010001USER= 
D010001KEYDOWNFIELDS=
D010001HIDEFIELDS=M013;M001;M003;M004;M005;M006;M007;M008;M202
;M011;M012
D010001REQUIREDFIELD=M011;M014;M013;M018
D010001READONLY=
D010001DEFAULTFIELD=M013
D010001DEFAULTVALUE=1

[CALCHZM]
;0=get from here, 1=get from db
CALCTYPE=0
;0=CALC ONE REC,1 CALC LOOP; 2 SET STRIGN VALUE
MODE=0;0;0;0;0;0
FIELDS=
;M186;M187;M188;M189;M190;M191;M037;M038;M039;M040;M041;M042;M811;M812;M813;M814;M815;M816

M186SHEETNO=999
M187SHEETNO=999
M188SHEETNO=999
M189SHEETNO=999
M190SHEETNO=999
M191SHEETNO=999
M811SHEETNO=999
M812SHEETNO=999
M813SHEETNO=999
M814SHEETNO=999
M815SHEETNO=999
M816SHEETNO=999
M037SHEETNO=999
M038SHEETNO=999
M039SHEETNO=999
M040SHEETNO=999
M041SHEETNO=999
M042SHEETNO=999

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M186TRIGGER=2
;0=without tax,1=with tax function
0M186=D012*(D022)+D013*(D023)
;M186EXITFIELD=
M186DATATYPE=I
;M IS cdsM Field
M186FIELDGRID=D;D;D;D
M186LOOP=D
M186LOOPFILTER=D011='1122' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M187TRIGGER=2
;0=without tax,1=with tax function
0M187=D012*(D022)+D013*(D023)
;M187EXITFIELD=
M187DATATYPE=I
;M IS cdsM Field
M187FIELDGRID=D;D;D;D
M187LOOP=D
M187LOOPFILTER=D011='2203' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M188TRIGGER=2
;0=without tax,1=with tax function
0M188=D012*(D022)+D013*(D023)
;M188EXITFIELD=
M188DATATYPE=I
;M IS cdsM Field
M188FIELDGRID=D;D;D;D
M188LOOP=D
M188LOOPFILTER=D011='1221' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M189TRIGGER=2
;0=without tax,1=with tax function
0M189=D012*(D022)+D013*(D023)
;M189EXITFIELD=
M189DATATYPE=I
;M IS cdsM Field
M189FIELDGRID=D;D;D;D
M189LOOP=D
M189LOOPFILTER=D011='2202' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M190TRIGGER=2
;0=without tax,1=with tax function
0M190=D012*(D022)+D013*(D023)
;M190EXITFIELD=
M190DATATYPE=I
;M IS cdsM Field
M190FIELDGRID=D;D;D;D
M190LOOP=D
M190LOOPFILTER=D011='1123' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M191TRIGGER=2
;0=without tax,1=with tax function
0M191=D012*(D022)+D013*(D023)
;M191EXITFIELD=
M191DATATYPE=I
;M IS cdsM Field
M191FIELDGRID=D;D;D;D
M191LOOP=D
M191LOOPFILTER=D011='2241' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M037TRIGGER=2
;0=without tax,1=with tax function
0M037=D013
;M037EXITFIELD=
M037DATATYPE=I
;M IS cdsM Field
M037FIELDGRID=D;D;D;D
M037LOOP=D
M037LOOPFILTER=D011='1122' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M038TRIGGER=2
;0=without tax,1=with tax function
0M038=D012
;M038EXITFIELD=
M038DATATYPE=I
;M IS cdsM Field
M038FIELDGRID=D;D;D;D
M038LOOP=D
M038LOOPFILTER=D011='2203' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M039TRIGGER=2
;0=without tax,1=with tax function
0M039=D013
;M039EXITFIELD=
M039DATATYPE=I
;M IS cdsM Field
M039FIELDGRID=D;D;D;D
M039LOOP=D
M039LOOPFILTER=D011='1221' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M040TRIGGER=2
;0=without tax,1=with tax function
0M040=D012
;M040EXITFIELD=
M040DATATYPE=I
;M IS cdsM Field
M040FIELDGRID=D;D;D;D
M040LOOP=D
M040LOOPFILTER=D011='2202' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M041TRIGGER=2
;0=without tax,1=with tax function
0M041=D013
;M041EXITFIELD=
M041DATATYPE=I
;M IS cdsM Field
M041FIELDGRID=D;D;D;D
M041LOOP=D
M041LOOPFILTER=D011='1123' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M042TRIGGER=2
;0=without tax,1=with tax function
0M042=D012
;M042EXITFIELD=
M042DATATYPE=I
;M IS cdsM Field
M042FIELDGRID=D;D;D;D
M042LOOP=D
M042LOOPFILTER=D011='2241' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M811TRIGGER=2
;0=without tax,1=with tax function
0M811=D012
;M811EXITFIELD=
M811DATATYPE=I
;M IS cdsM Field
M811FIELDGRID=D;D
M811LOOP=D
M811LOOPFILTER=D011='1122' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M812TRIGGER=2
;0=without tax,1=with tax function
0M812=D013
;M812EXITFIELD=
M812DATATYPE=I
;M IS cdsM Field
M812FIELDGRID=D;D
M812LOOP=D
M812LOOPFILTER=D011='2203' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M813TRIGGER=2
;0=without tax,1=with tax function
0M813=D012
;M813EXITFIELD=
M813DATATYPE=I
;M IS cdsM Field
M813FIELDGRID=D;D
M813LOOP=D
M813LOOPFILTER=D011='1221' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M814TRIGGER=2
;0=without tax,1=with tax function
0M814=D013
;M814EXITFIELD=
M814DATATYPE=I
;M IS cdsM Field
M814FIELDGRID=D;D
M814LOOP=D
M814LOOPFILTER=D011='2202' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M815TRIGGER=2
;0=without tax,1=with tax function
0M815=D012
;M815EXITFIELD=
M815DATATYPE=I
;M IS cdsM Field
M815FIELDGRID=D;D
M815LOOP=D
M815LOOPFILTER=D011='1123' AND D019=''

;0=EXIT,1=POST,2=SAVE Data To DB,3=NEW Record
M816TRIGGER=2
;0=without tax,1=with tax function
0M816=D013
;M816EXITFIELD=
M816DATATYPE=I
;M IS cdsM Field
M816FIELDGRID=D;D
M816LOOP=D
M816LOOPFILTER=D011='2241' AND D019=''

[APPAPPENDREC]
;sFBrNo,sFPeriod,sFStockID,sWh,sStandUnit
;append order detail as follow
FM_ZZPZMPO_APMXSTOP=0
FM_ZZPZMPO_APMXSHEETNO=999
FM_ZZPZMPO_APMXFIELDS=M011;M001;M012;M013
FM_ZZPZMPO_APMXFIELDSVALUE=sFPeriod;M001;M024;M015
FM_ZZPZMPO_APMXFIELDGRID=M;M;M;M
FM_ZZPZMPO_APMXNOEMPTY=
FM_ZZPZMPO_APMXFILTERFIELDS=M011;M012
FM_ZZPZMPO_APMXFILTERFIELDSVALUE=sFPeriod;M024

FM_ZZPZMPO_APMXITM=
FM_ZZPZMPO_APMXITMWHERE=
FM_ZZPZMPO_APMXITMWHEREVALUE=
FM_ZZPZMPO_APMXITMcorresponding=

;sFBrNo,sFPeriod,sFStockID,sWh,sStandUnit 
;append order detail as follow
FM_ZZPZMSD_RPMXSTOP=0
FM_ZZPZMSD_RPMXSHEETNO=999
FM_ZZPZMSD_RPMXFIELDS=M011;M001;M012;M013
FM_ZZPZMSD_RPMXFIELDSVALUE=sFPeriod;M001;M023;M014
FM_ZZPZMSD_RPMXFIELDGRID=M;M;M;M
FM_ZZPZMSD_RPMXNOEMPTY=
FM_ZZPZMSD_RPMXFILTERFIELDS=M011;M012
FM_ZZPZMSD_RPMXFILTERFIELDSVALUE=sFPeriod;M023

FM_ZZPZMSD_RPMXITM=
FM_ZZPZMSD_RPMXITMWHERE=
FM_ZZPZMSD_RPMXITMWHEREVALUE=
FM_ZZPZMSD_RPMXITMcorresponding=

;append order detail as follow
FM_PJYEBSTOP=0
FM_PJYEBSHEETNO=999
FM_PJYEBFIELDS=M011;M001;M012;M023;M024
FM_PJYEBFIELDSVALUE=sFPeriod;D001;DYNFEILDKEY;D011;D014
FM_PJYEBFIELDGRID=D;D;D;D;D
FM_PJYEBNOEMPTY=
FM_PJYEBFILTERFIELDS=M011;M012;M023
;和审批设置主键及其顺序一样,DYNFEILDKEY
FM_PJYEBFILTERFIELDSVALUE=sFPeriod;DYNFEILDKEY;D011

FM_PJYEBITM=
FM_PJYEBITMWHERE=
FM_PJYEBITMWHEREVALUE=
FM_PJYEBITMcorresponding=

;sFBrNo,sFPeriod,sFStockID,sWh,sStandUnit 
;append order detail as follow
FM_ZZPZHSITEMDSD_RPMXSTOP=0
FM_ZZPZHSITEMDSD_RPMXSHEETNO=999
FM_ZZPZHSITEMDSD_RPMXFIELDS=M011;M001;M012;M013
FM_ZZPZHSITEMDSD_RPMXFIELDSVALUE=sFPeriod;D001;D801;D802
FM_ZZPZHSITEMDSD_RPMXFIELDGRID=D;D;D;D
FM_ZZPZHSITEMDSD_RPMXNOEMPTY=
FM_ZZPZHSITEMDSD_RPMXFILTERFIELDS=M011;M012
FM_ZZPZHSITEMDSD_RPMXFILTERFIELDSVALUE=sFPeriod;D801

FM_ZZPZHSITEMDSD_RPMXITM=
FM_ZZPZHSITEMDSD_RPMXITMWHERE=
FM_ZZPZHSITEMDSD_RPMXITMWHEREVALUE=
FM_ZZPZHSITEMDSD_RPMXITMcorresponding=

;sFBrNo,sFPeriod,sFStockID,sWh,sStandUnit
;append order detail as follow
FM_ZZPZHSITEMDPO_APMXSTOP=0
FM_ZZPZHSITEMDPO_APMXSHEETNO=999
FM_ZZPZHSITEMDPO_APMXFIELDS=M011;M001;M012;M013
FM_ZZPZHSITEMDPO_APMXFIELDSVALUE=sFPeriod;D001;D803;D804
FM_ZZPZHSITEMDPO_APMXFIELDGRID=D;D;D;D
FM_ZZPZHSITEMDPO_APMXNOEMPTY=
FM_ZZPZHSITEMDPO_APMXFILTERFIELDS=M011;M012
FM_ZZPZHSITEMDPO_APMXFILTERFIELDSVALUE=sFPeriod;D803

FM_ZZPZHSITEMDPO_APMXITM=
FM_ZZPZHSITEMDPO_APMXITMWHERE=
FM_ZZPZHSITEMDPO_APMXITMWHEREVALUE=
FM_ZZPZHSITEMDPO_APMXITMcorresponding=
