Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hangzhoutd2bdsproject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangguangchao
hangzhoutd2bdsproject
Commits
fbc65b7d
Commit
fbc65b7d
authored
Oct 15, 2021
by
wangguangchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
goto语句翻译提交
parent
307be57f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
86 additions
and
37 deletions
+86
-37
addbut.0027.script
script/addbut.0027.script
+14
-4
adrdef.0013.script
script/adrdef.0013.script
+7
-6
atcmod.0002.script
script/atcmod.0002.script
+18
-7
atcmod.0003.script
script/atcmod.0003.script
+5
-4
atcmod.0004.script
script/atcmod.0004.script
+16
-6
cbsget.0000.script
script/cbsget.0000.script
+10
-4
cbsget.0002.script
script/cbsget.0002.script
+9
-4
cbsmod.0011.script
script/cbsmod.0011.script
+7
-2
No files found.
script/addbut.0027.script
View file @
fbc65b7d
...
@@ -59,6 +59,8 @@ void printSummons()
...
@@ -59,6 +59,8 @@ void printSummons()
String lineact = NULLSTR;
String lineact = NULLSTR;
String printa = NULLSTR;
String printa = NULLSTR;
String couval = NULLSTR;
String couval = NULLSTR;
ALabel:
while(true){
for(int i = 1;i <= actcount;i++)
for(int i = 1;i <= actcount;i++)
{
{
lineact = Platform.getLine( $actstm.getValue(), i );
lineact = Platform.getLine( $actstm.getValue(), i );
...
@@ -67,10 +69,13 @@ void printSummons()
...
@@ -67,10 +69,13 @@ void printSummons()
if( Platform.compareTo(couval, "W") != 0 )
if( Platform.compareTo(couval, "W") != 0 )
{
{
flg1 = true;
flg1 = true;
return ; // #######TODO 改写 LABEL与GOTO #### goto A
//return ; // #### goto A
break ALabel;
}
}
}
}
// #######TODO 改写 LABEL与GOTO #### label A
break ALabel;
}
// #### label A
BigDecimal dtotal = null;
BigDecimal dtotal = null;
BigDecimal ctotal = null;
BigDecimal ctotal = null;
int strcnt = 0;
int strcnt = 0;
...
@@ -182,6 +187,8 @@ void printSummons()
...
@@ -182,6 +187,8 @@ void printSummons()
//打印表外记帐凭证
//打印表外记帐凭证
actcount = Platform.streamCount( $actstm.getValue() );
actcount = Platform.streamCount( $actstm.getValue() );
boolean flg2 = false;
boolean flg2 = false;
BLabel:
while(true){
for(int k = 1;k <= actcount;k++)
for(int k = 1;k <= actcount;k++)
{
{
lineact = Platform.getLine( $actstm.getValue(), k );
lineact = Platform.getLine( $actstm.getValue(), k );
...
@@ -190,10 +197,13 @@ void printSummons()
...
@@ -190,10 +197,13 @@ void printSummons()
if( Platform.compareTo( couval , "W" ) == 0 )
if( Platform.compareTo( couval , "W" ) == 0 )
{
{
flg2 = true;
flg2 = true;
return ; // #######TODO 改写 LABEL与GOTO #### goto B
//return ; // #### goto B
break BLabel;
}
}
}
}
// #######TODO 改写 LABEL与GOTO #### label B
break BLabel;
}
// #### label B
if( flg2 )
if( flg2 )
{
{
if( flg1 )
if( flg1 )
...
...
script/adrdef.0013.script
View file @
fbc65b7d
...
@@ -8,7 +8,7 @@ void checkADRBIC(String argbic)
...
@@ -8,7 +8,7 @@ void checkADRBIC(String argbic)
if( Platform.len( argbic ) != 8 && Platform.len( argbic ) != 11 && Platform.len( argbic ) > 0 )
if( Platform.len( argbic ) != 8 && Platform.len( argbic ) != 11 && Platform.len( argbic ) > 0 )
{
{
Platform.errorMessage( #CT000064 );
Platform.errorMessage( #CT000064 );
return ; //
#######TODO 改写 LABEL与GOTO
#### goto done
return ; // #### goto done
}
}
String bic = Platform.trim( argbic );
String bic = Platform.trim( argbic );
String let = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String let = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
...
@@ -22,20 +22,20 @@ void checkADRBIC(String argbic)
...
@@ -22,20 +22,20 @@ void checkADRBIC(String argbic)
{
{
// if substring is not found, return value is 0
// if substring is not found, return value is 0
Platform.errorMessage( #CT000065 );
Platform.errorMessage( #CT000065 );
return ; //
#######TODO 改写 LABEL与GOTO
#### goto done
return ; // #### goto done
}
}
}
}
// position 7 Location-Code A-Z and 2-9 are allowed
// position 7 Location-Code A-Z and 2-9 are allowed
if( Platform.pos( let, Platform.mid( bic, i, 1 ) ) == 0 && Platform.pos( "23456789", Platform.mid( bic, 7, 1 ) ) == 0 )
if( Platform.pos( let, Platform.mid( bic, i, 1 ) ) == 0 && Platform.pos( "23456789", Platform.mid( bic, 7, 1 ) ) == 0 )
{
{
Platform.errorMessage( #CT000066 );
Platform.errorMessage( #CT000066 );
return ; //
#######TODO 改写 LABEL与GOTO
#### goto done
return ; // #### goto done
}
}
// position 8 Location-Code A-Z exept O and 0-9 are allowed
// position 8 Location-Code A-Z exept O and 0-9 are allowed
if( Platform.pos( "ABCDEFGHIJKLMNPQRSTUVWXYZ", Platform.mid( bic, 8, 1 ) ) == 0 && Platform.pos( num, Platform.mid( bic, 8, 1 ) ) == 0 )
if( Platform.pos( "ABCDEFGHIJKLMNPQRSTUVWXYZ", Platform.mid( bic, 8, 1 ) ) == 0 && Platform.pos( num, Platform.mid( bic, 8, 1 ) ) == 0 )
{
{
Platform.errorMessage( #CT000067 );
Platform.errorMessage( #CT000067 );
return ; //
#######TODO 改写 LABEL与GOTO
#### goto done
return ; // #### goto done
}
}
// position 9-11 Branch-Code A-Z and 0-9 are allowed
// position 9-11 Branch-Code A-Z and 0-9 are allowed
if( Platform.len( bic ) > 8 )
if( Platform.len( bic ) > 8 )
...
@@ -45,10 +45,10 @@ void checkADRBIC(String argbic)
...
@@ -45,10 +45,10 @@ void checkADRBIC(String argbic)
if( Platform.pos( let, Platform.mid( bic, i, 1 ) ) == 0 && Platform.pos( num, Platform.mid( bic, i, 1 ) ) == 0 )
if( Platform.pos( let, Platform.mid( bic, i, 1 ) ) == 0 && Platform.pos( num, Platform.mid( bic, i, 1 ) ) == 0 )
{
{
Platform.errorMessage( #CT000068 );
Platform.errorMessage( #CT000068 );
return ; //
#######TODO 改写 LABEL与GOTO
#### goto done
return ; // #### goto done
}
}
}
}
}
}
//
#######TODO 改写 LABEL与GOTO
#### label done
// #### label done
}
}
\ No newline at end of file
script/atcmod.0002.script
View file @
fbc65b7d
void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argument<String> argdiatyp,Argument<Date> argdate,Argument<String> argcod,Argument<String> argnam,Argument<String> argfrm,Argument<String> argflag,Argument<Boolean> arglast)
void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argument<String> argdiatyp,Argument<Date> argdate,Argument<String> argcod,Argument<String> argnam,Argument<String> argfrm,Argument<String> argflag,Argument<Boolean> arglast)
{
{
// read ATC entry for each entry in $codes from cache and execute rule
// read ATC entry for each entry in $codes from cache and execute rule
// #######TODO 改写 LABEL与GOTO #### label NextEntry
// #### label NextEntry
NextEntryLabel:
while(true){
int tabpos = Platform.pos( argcodes.value, "\t" );
int tabpos = Platform.pos( argcodes.value, "\t" );
String actCode = NULLSTR;
String actCode = NULLSTR;
String errTxt = NULLSTR;
String errTxt = NULLSTR;
...
@@ -14,7 +16,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
...
@@ -14,7 +16,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
{
{
if( ! atcConditionTrue( $atcsub\atcdia\ignflg.getValue(), $atcsub\atcdia\cnd.getValue(), $atcsub\atcdia\cndfld1typ.getValue(), $atcsub\atcdia\cndfld1.getValue(), $atcsub\atcdia\cndfld2typ.getValue(), $atcsub\atcdia\cndfld2.getValue() ) )
if( ! atcConditionTrue( $atcsub\atcdia\ignflg.getValue(), $atcsub\atcdia\cnd.getValue(), $atcsub\atcdia\cndfld1typ.getValue(), $atcsub\atcdia\cndfld1.getValue(), $atcsub\atcdia\cndfld2typ.getValue(), $atcsub\atcdia\cndfld2.getValue() ) )
{
{
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntryLabel;
}
}
arggroup.value = $atcsub\atcdia\grp;
arggroup.value = $atcsub\atcdia\grp;
switch( $atcsub\atcdia\dattyp.getValue() )
switch( $atcsub\atcdia\dattyp.getValue() )
...
@@ -27,7 +30,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
...
@@ -27,7 +30,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
break;
break;
default:
default:
atcCallSysdumpInfo( "ATCDIA\\DAT", $atcsub\atcdia\dat.getValue(), "Function not defined" );
atcCallSysdumpInfo( "ATCDIA\\DAT", $atcsub\atcdia\dat.getValue(), "Function not defined" );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntryLabel;
}
}
break;
break;
case "CONST":
case "CONST":
...
@@ -36,7 +40,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
...
@@ -36,7 +40,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
{
{
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATCDIA\\DAT", $atcsub\atcdia\dat.getValue(), errTxt );
atcCallSysdumpInfo( "ATCDIA\\DAT", $atcsub\atcdia\dat.getValue(), errTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntryLabel;
}
}
break;
break;
case "FLD":
case "FLD":
...
@@ -45,7 +50,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
...
@@ -45,7 +50,8 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
{
{
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATCDIA\\DAT", $atcsub\atcdia\dat.getValue(), errTxt );
atcCallSysdumpInfo( "ATCDIA\\DAT", $atcsub\atcdia\dat.getValue(), errTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntryLabel;
}
}
break;
break;
}
}
...
@@ -56,13 +62,15 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
...
@@ -56,13 +62,15 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
{
{
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATCDIA\\DATNUM", Platform.toString( $atcsub\atcdia\datnum.getValue() ), errTxt );
atcCallSysdumpInfo( "ATCDIA\\DATNUM", Platform.toString( $atcsub\atcdia\datnum.getValue() ), errTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntryLabel;
}
}
}
}
// no creation of diary, if date empty
// no creation of diary, if date empty
if( Platform.isEmpty( argdate.value ) )
if( Platform.isEmpty( argdate.value ) )
{
{
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntryLabel;
}
}
argcod.value = $atcsub\atcdia\cod;
argcod.value = $atcsub\atcdia\cod;
argnam.value = $atcsub\atcdia\nam;
argnam.value = $atcsub\atcdia\nam;
...
@@ -76,5 +84,7 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
...
@@ -76,5 +84,7 @@ void getNextEntryForDIA(Argument<String> argcodes,Argument<String> arggroup,Argu
{
{
arglast.value = true;
arglast.value = true;
}
}
break NextEntryLabel;
}
}
}
\ No newline at end of file
script/atcmod.0003.script
View file @
fbc65b7d
...
@@ -4,7 +4,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
...
@@ -4,7 +4,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
if( ! Platform.isEmpty( argignflg ) )
if( ! Platform.isEmpty( argignflg ) )
{
{
res = false;
res = false;
return res; //
#######TODO 改写 LABEL与GOTO
#### goto done
return res; // #### goto done
}
}
String field1 = "";
String field1 = "";
String errTxt = NULLSTR;
String errTxt = NULLSTR;
...
@@ -22,7 +22,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
...
@@ -22,7 +22,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATC\\CNDFLD1", argcndfld1, errTxt );
atcCallSysdumpInfo( "ATC\\CNDFLD1", argcndfld1, errTxt );
res = false;
res = false;
return res; //
#######TODO 改写 LABEL与GOTO
#### goto done
return res; // #### goto done
}
}
}
}
}
}
...
@@ -41,7 +41,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
...
@@ -41,7 +41,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATC\\CNDFLD2", argcndfld2, errTxt );
atcCallSysdumpInfo( "ATC\\CNDFLD2", argcndfld2, errTxt );
res = false;
res = false;
return res; //
#######TODO 改写 LABEL与GOTO
#### goto done
return res; // #### goto done
}
}
}
}
}
}
...
@@ -113,7 +113,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
...
@@ -113,7 +113,7 @@ boolean atcConditionTrue(String argignflg,String argcnd,String argcndfld1typ,Str
default:
default:
Platform.sysDump( "undefined condition in ATC entry" );
Platform.sysDump( "undefined condition in ATC entry" );
}
}
//
#######TODO 改写 LABEL与GOTO
#### label done
// #### label done
return res;
return res;
}
}
\ No newline at end of file
script/atcmod.0004.script
View file @
fbc65b7d
void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Argument<String> argfeeflg,Argument<Integer> argfeeunt,Argument<Date> argdatfrom,Argument<Date> argdattil,Argument<Boolean> arglast)
void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Argument<String> argfeeflg,Argument<Integer> argfeeunt,Argument<Date> argdatfrom,Argument<Date> argdattil,Argument<Boolean> arglast)
{
{
// read ATC entry for each entry in $codes from cache and execute rule
// read ATC entry for each entry in $codes from cache and execute rule
// #######TODO 改写 LABEL与GOTO #### label NextEntry
// #### label NextEntry
NextEntryLabel:
while(true){
int tabpos = Platform.pos( argcodes.value, "\t" );
int tabpos = Platform.pos( argcodes.value, "\t" );
String actCode = NULLSTR;
String actCode = NULLSTR;
String errTxt = NULLSTR;
String errTxt = NULLSTR;
...
@@ -14,7 +16,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
...
@@ -14,7 +16,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
{
{
if( ! atcConditionTrue( $atcsub\atcfee\ignflg.getValue(), $atcsub\atcfee\cnd.getValue(), $atcsub\atcfee\cndfld1typ.getValue(), $atcsub\atcfee\cndfld1.getValue(), $atcsub\atcfee\cndfld2typ.getValue(), $atcsub\atcfee\cndfld2.getValue() ) )
if( ! atcConditionTrue( $atcsub\atcfee\ignflg.getValue(), $atcsub\atcfee\cnd.getValue(), $atcsub\atcfee\cndfld1typ.getValue(), $atcsub\atcfee\cndfld1.getValue(), $atcsub\atcfee\cndfld2typ.getValue(), $atcsub\atcfee\cndfld2.getValue() ) )
{
{
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #### goto NextEntry
continue NextEntryLabel;
}
}
argfeetyp.value = $atcsub\atcfee\cod;
argfeetyp.value = $atcsub\atcfee\cod;
argfeeflg.value = $atcsub\atcfee\flg;
argfeeflg.value = $atcsub\atcfee\flg;
...
@@ -29,7 +32,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
...
@@ -29,7 +32,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
break;
break;
default:
default:
atcCallSysdumpInfo( "ATCFEE\\DATFRO", $atcsub\atcfee\datfro.getValue(), "Function not defined" );
atcCallSysdumpInfo( "ATCFEE\\DATFRO", $atcsub\atcfee\datfro.getValue(), "Function not defined" );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #### goto NextEntry
continue NextEntryLabel;
}
}
break;
break;
default:
default:
...
@@ -38,7 +42,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
...
@@ -38,7 +42,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
{
{
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATCFEE\\DATFRO", $atcsub\atcfee\datfro.getValue(), errTxt );
atcCallSysdumpInfo( "ATCFEE\\DATFRO", $atcsub\atcfee\datfro.getValue(), errTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #### goto NextEntry
continue NextEntryLabel;
}
}
}
}
switch( $atcsub\atcfee\dattiltyp.getValue() )
switch( $atcsub\atcfee\dattiltyp.getValue() )
...
@@ -51,7 +56,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
...
@@ -51,7 +56,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
break;
break;
default:
default:
atcCallSysdumpInfo( "ATCFEE\\DATTIL", $atcsub\atcfee\dattil.getValue(), "Function not defined" );
atcCallSysdumpInfo( "ATCFEE\\DATTIL", $atcsub\atcfee\dattil.getValue(), "Function not defined" );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #### goto NextEntry
continue NextEntryLabel;
}
}
break;
break;
default:
default:
...
@@ -60,7 +66,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
...
@@ -60,7 +66,8 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
{
{
errTxt = Platform.getErrorText();
errTxt = Platform.getErrorText();
atcCallSysdumpInfo( "ATCFEE\\DATTIL", $atcsub\atcfee\dattil.getValue(), errTxt );
atcCallSysdumpInfo( "ATCFEE\\DATTIL", $atcsub\atcfee\dattil.getValue(), errTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
//return ; // #### goto NextEntry
continue NextEntryLabel;
}
}
}
}
argfeetyp.value = actCode;
argfeetyp.value = actCode;
...
@@ -71,5 +78,7 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
...
@@ -71,5 +78,7 @@ void getNextEntryForFee(Argument<String> argcodes,Argument<String> argfeetyp,Arg
{
{
arglast.value = true;
arglast.value = true;
}
}
break NextEntryLabel;
}
}
}
\ No newline at end of file
script/cbsget.0000.script
View file @
fbc65b7d
...
@@ -17,9 +17,11 @@ String cbsGetAllExtIds(IModule obj,String cbcarg)
...
@@ -17,9 +17,11 @@ String cbsGetAllExtIds(IModule obj,String cbcarg)
String sql = "Where OBJTYP = '" + objTyp + "' AND OBJINR = '" + objInr + "'";
String sql = "Where OBJTYP = '" + objTyp + "' AND OBJINR = '" + objInr + "'";
sql = sql + " AND CBC = '" + cbcarg + "' ORDER BY EXTID";
sql = sql + " AND CBC = '" + cbcarg + "' ORDER BY EXTID";
Platform.dbSelectCursor( $cbb, sql );
Platform.dbSelectCursor( $cbb, sql );
// #######TODO 改写 LABEL与GOTO #### label CBBLoop
// #### label CBBLoop
CBBLoopLabel:
while(true){
Platform.DBFetch( $cbb );
Platform.DBFetch( $cbb );
while
( Platform.errorCode() <= 0 )
if
( Platform.errorCode() <= 0 )
{
{
if( Platform.compareTo(lastId, $cbb\extid.getValue()) != 0 )
if( Platform.compareTo(lastId, $cbb\extid.getValue()) != 0 )
{
{
...
@@ -40,13 +42,16 @@ String cbsGetAllExtIds(IModule obj,String cbcarg)
...
@@ -40,13 +42,16 @@ String cbsGetAllExtIds(IModule obj,String cbcarg)
}
}
lastId = $cbb\extid;
lastId = $cbb\extid;
}
}
continue ; // #######TODO 改写 LABEL与GOTO #### goto CBBLoop
//return ; // #### goto CBBLoop
continue CBBLoopLabel;
}
break CBBLoopLabel;
}
}
if( ! Platform.isEmpty( emptyId ) )
if( ! Platform.isEmpty( emptyId ) )
{
{
extIds = "\r\n" + extIds;
extIds = "\r\n" + extIds;
}
}
//
#######TODO 改写 LABEL与GOTO
#### label CBBDone
// #### label CBBDone
return extIds;
return extIds;
}
}
\ No newline at end of file
script/cbsget.0002.script
View file @
fbc65b7d
...
@@ -27,12 +27,14 @@ void cbsGetBalanceReleasedOnly(#cbb cbbarg,IModule obj,String cbcarg,String exti
...
@@ -27,12 +27,14 @@ void cbsGetBalanceReleasedOnly(#cbb cbbarg,IModule obj,String cbcarg,String exti
sql = sql + " AND DAT <= " + Platform.dbSqlDate( perdat );
sql = sql + " AND DAT <= " + Platform.dbSqlDate( perdat );
sql = sql + " AND RELFLG = 'E'";
sql = sql + " AND RELFLG = 'E'";
Platform.dbSelectCursor( $cbe, sql + " ORDER BY DAT, INR" );
Platform.dbSelectCursor( $cbe, sql + " ORDER BY DAT, INR" );
// #######TODO 改写 LABEL与GOTO #### label CBELoop
// #### label CBELoop
CBELoopLabel:
while(true){
Platform.DBFetch( $cbe );
Platform.DBFetch( $cbe );
if( Platform.errorCode() == tdOdbcNotFound )
if( Platform.errorCode() == tdOdbcNotFound )
{
{
Platform.setErrorCode( 0, "" );
Platform.setErrorCode( 0, "" );
return ; //
#######TODO 改写 LABEL与GOTO
#### goto CBEDone
return ; // #### goto CBEDone
}
}
else
else
{
{
...
@@ -54,7 +56,9 @@ void cbsGetBalanceReleasedOnly(#cbb cbbarg,IModule obj,String cbcarg,String exti
...
@@ -54,7 +56,9 @@ void cbsGetBalanceReleasedOnly(#cbb cbbarg,IModule obj,String cbcarg,String exti
$$cbbarg\xrfamt = Platform.numAdd($$cbbarg\xrfamt.getValue() , $cbe\xrfamt.getValue());
$$cbbarg\xrfamt = Platform.numAdd($$cbbarg\xrfamt.getValue() , $cbe\xrfamt.getValue());
}
}
}
}
return ; // #######TODO 改写 LABEL与GOTO #### goto CBELoop
//return ; // #### goto CBELoop
// #######TODO 改写 LABEL与GOTO #### label CBEDone
continue CBELoopLabel;
}
// #### label CBEDone
}
}
\ No newline at end of file
script/cbsmod.0011.script
View file @
fbc65b7d
...
@@ -24,12 +24,17 @@ static void cbsReorgCBB(IModule obj)
...
@@ -24,12 +24,17 @@ static void cbsReorgCBB(IModule obj)
}
}
sql = sql + " ORDER BY DAT, INR";
sql = sql + " ORDER BY DAT, INR";
Platform.dbSelectCursor( $\cbsmod\cbe, sql );
Platform.dbSelectCursor( $\cbsmod\cbe, sql );
// #######TODO 改写 LABEL与GOTO #### label NxtCbe
// #### label NxtCbe
NxtCbeLabel:
while(true){
Platform.DBFetch( $\cbsmod\cbe );
Platform.DBFetch( $\cbsmod\cbe );
if( Platform.errorCode() <= 0 )
if( Platform.errorCode() <= 0 )
{
{
$\cbsmod.createCbbEntries( $\cbsmod\cbe );
$\cbsmod.createCbbEntries( $\cbsmod\cbe );
return ; // #######TODO 改写 LABEL与GOTO #### goto NxtCbe
//return ; // #### goto NxtCbe
continue NxtCbeLabel;
}
break NxtCbeLabel;
}
}
if( Platform.errorCode() != tdOdbcNotFound )
if( Platform.errorCode() != tdOdbcNotFound )
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment