Commit 7296ddfa by wangguangchao

clear方法string类型问题修改

parent 443b6946
...@@ -32,7 +32,8 @@ void actSetFieldsForActDef(#act argrec) ...@@ -32,7 +32,8 @@ void actSetFieldsForActDef(#act argrec)
} }
else else
{ {
Platform.clear( $$argrec\othbnkflg ); //Platform.clear( $$argrec\othbnkflg );
$$argrec\othbnkflg = NULLSTR;
} }
// set OTHOWNFLG from other party // set OTHOWNFLG from other party
if( Platform.pos( $pty\ptytyp.getValue(), "A" ) > 0 ) if( Platform.pos( $pty\ptytyp.getValue(), "A" ) > 0 )
...@@ -47,7 +48,8 @@ void actSetFieldsForActDef(#act argrec) ...@@ -47,7 +48,8 @@ void actSetFieldsForActDef(#act argrec)
} }
else else
{ {
Platform.clear( $$argrec\othownflg ); //Platform.clear( $$argrec\othownflg );
$$argrec\othownflg = NULLSTR;
} }
} }
// Load relevant party to access fields to be used fill // Load relevant party to access fields to be used fill
......
...@@ -16,7 +16,7 @@ String cbsGetUnbalancedExtIds(IModule obj,String cbcarg) ...@@ -16,7 +16,7 @@ String cbsGetUnbalancedExtIds(IModule obj,String cbcarg)
CBBLoopLabel: CBBLoopLabel:
while(true){ 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 )
{ {
......
...@@ -10,45 +10,45 @@ String internalGenSqlSet(String argliste) ...@@ -10,45 +10,45 @@ String internalGenSqlSet(String argliste)
// from "Arg1,Arg2,..." in " IN (`Arg1`, `Arg2`,...)" // from "Arg1,Arg2,..." in " IN (`Arg1`, `Arg2`,...)"
// Initialize workregister // Initialize workregister
int begPos = 1; int begPos = 1;
String rtn = NULLSTR;
IStream argstm = new StreamImpl(); IStream argstm = new StreamImpl();
Platform.streamClear( argstm ); Platform.streamClear( argstm );
// #### label NxtElm // #### label NxtElm
// Search for next delimiter
String rtn = NULLSTR;
NxtElmLabel: NxtElmLabel:
while(true){ while(true){
// Search for next delimiter int len = Platform.pos( Platform.mid( argliste, begPos ), "," );
while(begPos <= MdaUtilsEx.len(argliste)) {
int len = Platform.pos( Platform.mid( argliste, begPos ), "," ); if( len == 0 )
if( len == 0 ) {
{ // if no delimiter found, check whether first arg to avoid
// if no delimiter found, check whether first arg to avoid // "IN set" construct and take "= literal"
// "IN set" construct and take "= literal" if( begPos == 1 )
if( begPos == 1 ) {
{ rtn = " = " + Platform.sqlLit( argliste );
rtn = " = " + Platform.sqlLit( argliste ); //return ; // #### goto Done
return rtn; // #### goto Done return rtn;
} }
// if no delimiter found, take rest // if no delimiter found, take rest
len = Platform.len( Platform.mid( argliste, begPos ) ) + 1; len = Platform.len( Platform.mid( argliste, begPos ) ) + 1;
} }
// If a value has to be processed // If a value has to be processed
String elm = NULLSTR; String elm = NULLSTR;
if( len > 1 ) if( len > 1 )
{ {
// eliminate leading and trailing spaces // eliminate leading and trailing spaces
elm = Platform.trim( Platform.mid( argliste, begPos, len - 1 ) ); elm = Platform.trim( Platform.mid( argliste, begPos, len - 1 ) );
// search for double entries and include only new entries // search for double entries and include only new entries
if( Platform.streamSearch( argstm, elm ) == 0 ) if( Platform.streamSearch( argstm, elm ) == 0 )
{ {
Platform.streamInsert( argstm, -1, elm ); Platform.streamInsert( argstm, -1, elm );
} }
begPos = begPos + len; begPos = begPos + len;
if( begPos <= Platform.len( argliste ) ) if( begPos <= Platform.len( argliste ) )
{ {
//continue; // #### goto NxtElm //return ; // #### goto NxtElm
continue NxtElmLabel; continue NxtElmLabel;
} }
}
} }
break NxtElmLabel; break NxtElmLabel;
} }
......
...@@ -16,25 +16,29 @@ default $coninftag order 1000 ...@@ -16,25 +16,29 @@ default $coninftag order 1000
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
a = Platform.errorCode(); a = Platform.errorCode();
Platform.clear( contag72his ); //Platform.clear( contag72his );
contag72his = NULLSTR;
} }
contag79his = Platform.getContent( path + "\\BLK\\CONTAG79" ); contag79his = Platform.getContent( path + "\\BLK\\CONTAG79" );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
a = Platform.errorCode(); a = Platform.errorCode();
Platform.clear( contag79his ); //Platform.clear( contag79his );
contag79his = NULLSTR;
} }
contag72 = Platform.getContent( "\\TRNMOD\\SWIADD\\CONTAG72" ); contag72 = Platform.getContent( "\\TRNMOD\\SWIADD\\CONTAG72" );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
a = Platform.errorCode(); a = Platform.errorCode();
Platform.clear( contag72 ); //Platform.clear( contag72 );
contag72 = NULLSTR;
} }
contag79 = Platform.getContent( "\\TRNMOD\\SWIADD\\CONTAG79" ); contag79 = Platform.getContent( "\\TRNMOD\\SWIADD\\CONTAG79" );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
a = Platform.errorCode(); a = Platform.errorCode();
Platform.clear( contag79 ); //Platform.clear( contag79 );
contag79 = NULLSTR;
} }
} }
// if one of these fields is filled, panel is visible // if one of these fields is filled, panel is visible
......
...@@ -4,7 +4,9 @@ void xmlCharacterData(String content) ...@@ -4,7 +4,9 @@ void xmlCharacterData(String content)
{ {
content = "encoded binary"; content = "encoded binary";
} }
bolStripContent( content ); Argument<String> contentBox = new Argument<String>("","");
bolStripContent( contentBox );
content = contentBox.value;
if( ( ( Platform.isEmpty( $lasttag ) || Platform.compareTo( Platform.trim( $lasttag.getValue() ) , "content" ) == 0 ) && Platform.isEmpty( content ) ) ) if( ( ( Platform.isEmpty( $lasttag ) || Platform.compareTo( Platform.trim( $lasttag.getValue() ) , "content" ) == 0 ) && Platform.isEmpty( content ) ) )
{ {
} }
......
void bolStripContent(String content) void bolStripContent(Argument<String> content)
{ {
String charVar = NULLSTR; String charVar = NULLSTR;
while( true ) while( true )
{ {
charVar = Platform.mid( content, 1, 1 ); charVar = Platform.mid( content.value, 1, 1 );
if( Platform.compareTo(charVar , " ")<0 ) if( Platform.compareTo(charVar , " ")<0 )
{ {
content = Platform.mid( content, 2 ); content.value = Platform.mid( content.value, 2 );
} }
else else
{ {
......
...@@ -35,13 +35,15 @@ void savdoc(#smh argsmh) ...@@ -35,13 +35,15 @@ void savdoc(#smh argsmh)
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.sysDump( "Cannot get \\TRNMOD\\TRN\\INR" ); Platform.sysDump( "Cannot get \\TRNMOD\\TRN\\INR" );
Platform.clear( $$argsmh\trninr ); //Platform.clear( $$argsmh\trninr );
$$argsmh\trninr = NULLSTR;
} }
$$argsmh\trnsub = Platform.getContentNumeric( "\\TRNMOD\\TRN\\SMHNXT" ).intValue(); $$argsmh\trnsub = Platform.getContentNumeric( "\\TRNMOD\\TRN\\SMHNXT" ).intValue();
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.sysDump( "Cannot get \\TRNMOD\\TRN\\SMHNXT" ); Platform.sysDump( "Cannot get \\TRNMOD\\TRN\\SMHNXT" );
Platform.clear( $$argsmh\trnsub ); //Platform.clear( $$argsmh\trnsub );
$$argsmh\trnsub = 0;
} }
else else
{ {
...@@ -226,9 +228,12 @@ void savdoc(#smh argsmh) ...@@ -226,9 +228,12 @@ void savdoc(#smh argsmh)
if( ! Platform.isEmpty( $supcovflg ) ) if( ! Platform.isEmpty( $supcovflg ) )
{ {
// suppress cover letter // suppress cover letter
Platform.clear( $$argsmh\docfil ); //Platform.clear( $$argsmh\docfil );
Platform.clear( $$argsmh\docpth ); $$argsmh\docfil = NULLSTR;
Platform.clear( $$argsmh\docfxt ); //Platform.clear( $$argsmh\docpth );
$$argsmh\docpth = NULLSTR;
//Platform.clear( $$argsmh\docfxt );
$$argsmh\docfxt = NULLSTR;
} }
else else
{ {
......
...@@ -39,7 +39,8 @@ void makeAndConvertRuleDoc() ...@@ -39,7 +39,8 @@ void makeAndConvertRuleDoc()
if( pos == 0 ) if( pos == 0 )
{ {
function = remainingPlan; function = remainingPlan;
Platform.clear( remainingPlan ); //Platform.clear( remainingPlan );
remainingPlan = NULLSTR;
} }
else else
{ {
......
...@@ -8,7 +8,8 @@ String headerTCO() ...@@ -8,7 +8,8 @@ String headerTCO()
String sec = Platform.mid( Platform.getModuleInfo( Platform.getModule( mod ), 1 ), 1, 2 ); String sec = Platform.mid( Platform.getModuleInfo( Platform.getModule( mod ), 1 ), 1, 2 );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.clear( sec ); //Platform.clear( sec );
sec = NULLSTR;
} }
String mt = NULLSTR; String mt = NULLSTR;
String tags = NULLSTR; String tags = NULLSTR;
......
...@@ -219,9 +219,12 @@ void printAllFldStream(boolean printfooterflag) ...@@ -219,9 +219,12 @@ void printAllFldStream(boolean printfooterflag)
$cn = $cn.getValue() + 1; $cn = $cn.getValue() + 1;
} }
newline = false; newline = false;
Platform.clear( execontent ); //Platform.clear( execontent );
Platform.clear( exeheader ); execontent = NULLSTR;
Platform.clear( exetag ); //Platform.clear( exeheader );
exeheader = NULLSTR;
//Platform.clear( exetag );
exetag = NULLSTR;
} }
if( Platform.isEmpty( execontent ) ) if( Platform.isEmpty( execontent ) )
{ {
......
...@@ -219,9 +219,12 @@ void printAllFldStreamTCO(boolean printfooterflag) ...@@ -219,9 +219,12 @@ void printAllFldStreamTCO(boolean printfooterflag)
$cn = $cn.getValue() + 1; $cn = $cn.getValue() + 1;
} }
newline = false; newline = false;
Platform.clear( execontent ); //Platform.clear( execontent );
Platform.clear( exeheader ); //Platform.clear( exeheader );
Platform.clear( exetag ); //Platform.clear( exetag );
execontent = NULLSTR;
exeheader = NULLSTR;
exetag = NULLSTR;
} }
if( Platform.isEmpty( execontent ) ) if( Platform.isEmpty( execontent ) )
{ {
......
...@@ -102,7 +102,8 @@ BigDecimal clcFecIrtcal(#setfel line,String relcur,BigDecimal relamt,String feec ...@@ -102,7 +102,8 @@ BigDecimal clcFecIrtcal(#setfel line,String relcur,BigDecimal relamt,String feec
{ {
count = 0; count = 0;
oldinftxt = $$line\inftxt; oldinftxt = $$line\inftxt;
Platform.clear( $$line\allcalflg ); //Platform.clear( $$line\allcalflg );
$$line\allcalflg = NULLSTR;
Platform.streamSet( oldinfdetstm, $$line\infdetstm.getValue() ); Platform.streamSet( oldinfdetstm, $$line\infdetstm.getValue() );
// #### label restart // #### label restart
restartLabel: restartLabel:
...@@ -189,8 +190,10 @@ BigDecimal clcFecIrtcal(#setfel line,String relcur,BigDecimal relamt,String feec ...@@ -189,8 +190,10 @@ BigDecimal clcFecIrtcal(#setfel line,String relcur,BigDecimal relamt,String feec
} }
else else
{ {
Platform.clear( $$line\errcod ); //Platform.clear( $$line\errcod );
Platform.clear( $$line\errtxt ); $$line\errcod = 0L;
//Platform.clear( $$line\errtxt );
$$line\errtxt = NULLSTR;
maxnow = $\cbsmod\xrtmod.amtConvTypes( $$line\wrkfec\mincur.getValue(), $$line\wrkfec\amtsetall.getValue(), "M", feecur, "M", Platform.today() ); maxnow = $\cbsmod\xrtmod.amtConvTypes( $$line\wrkfec\mincur.getValue(), $$line\wrkfec\amtsetall.getValue(), "M", feecur, "M", Platform.today() );
if( ! Platform.isModified( $$line\basamt ) ) if( ! Platform.isModified( $$line\basamt ) )
{ {
......
...@@ -3,7 +3,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -3,7 +3,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
// Calculate Feeamount // Calculate Feeamount
String wrn = ""; String wrn = "";
BigDecimal oldamt = new BigDecimal("0"); BigDecimal oldamt = new BigDecimal("0");
Platform.clear( $$line\minmaxflg ); //Platform.clear( $$line\minmaxflg );
$$line\minmaxflg = NULLSTR;
BigDecimal fecamt = null; BigDecimal fecamt = null;
BigDecimal lowamt = null; BigDecimal lowamt = null;
...@@ -56,7 +57,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -56,7 +57,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
// if from pool recalulate and recreate detailled information // if from pool recalulate and recreate detailled information
if( Platform.compareTo($$line\src, "P" )== 0 && ! Platform.isModified( $$line\feetxtinf ) ) if( Platform.compareTo($$line\src, "P" )== 0 && ! Platform.isModified( $$line\feetxtinf ) )
{ {
Platform.clear( $$line\feetxtinf ); //Platform.clear( $$line\feetxtinf );
$$line\feetxtinf = NULLSTR;
} }
// Reset units for transaction fees not calulating units if units have not been modified (DO5SFS 500035) // Reset units for transaction fees not calulating units if units have not been modified (DO5SFS 500035)
switch( $$line\wrkfec\calrul.getValue() ) switch( $$line\wrkfec\calrul.getValue() )
...@@ -527,8 +529,10 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -527,8 +529,10 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
{ {
if( Platform.isEmpty( $$line\dat1 ) || Platform.isEmpty( $$line\dat2 ) ) if( Platform.isEmpty( $$line\dat1 ) || Platform.isEmpty( $$line\dat2 ) )
{ {
Platform.clear( $$line\errcod ); //Platform.clear( $$line\errcod );
Platform.clear( $$line\errtxt ); $$line\errcod = 0L;
//Platform.clear( $$line\errtxt );
$$line\errtxt = NULLSTR;
} }
else else
{ {
...@@ -547,8 +551,10 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -547,8 +551,10 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
} }
else else
{ {
Platform.clear( $$line\errcod ); //Platform.clear( $$line\errcod );
Platform.clear( $$line\errtxt ); $$line\errcod = 0L;
//Platform.clear( $$line\errtxt );
$$line\errtxt = NULLSTR;
$$line\unt = 0; $$line\unt = 0;
for(int i = 1;i <= Platform.gridCount( $irtcal\irdele );i++) for(int i = 1;i <= Platform.gridCount( $irtcal\irdele );i++)
{ {
...@@ -560,8 +566,10 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -560,8 +566,10 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
} }
else else
{ {
Platform.clear( $$line\errcod ); //Platform.clear( $$line\errcod );
Platform.clear( $$line\errtxt ); $$line\errcod = 0L;
//Platform.clear( $$line\errtxt );
$$line\errtxt = NULLSTR;
} }
// Interest from CBS // Interest from CBS
if( Platform.compareTo( $$line\wrkfec\calrul , "C" ) == 0 ) if( Platform.compareTo( $$line\wrkfec\calrul , "C" ) == 0 )
...@@ -676,7 +684,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -676,7 +684,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
// You may use $minmaxunits = line\unt instead if minimum shall be applied for each unit, if necessary depending on line\WRKFEC\CALRUL // You may use $minmaxunits = line\unt instead if minimum shall be applied for each unit, if necessary depending on line\WRKFEC\CALRUL
minmaxunits = 1; minmaxunits = 1;
// Minimum calculation // Minimum calculation
Platform.clear( $$line\minmaxflg ); //Platform.clear( $$line\minmaxflg );
$$line\minmaxflg = NULLSTR;
mincur = $$line\wrkfec\mincur; mincur = $$line\wrkfec\mincur;
if( ! Platform.isEmpty( mincur ) ) if( ! Platform.isEmpty( mincur ) )
{ {
...@@ -917,7 +926,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee ...@@ -917,7 +926,8 @@ void clcFecAmt(#setfel line,Argument<String> relcur,BigDecimal relamt,String fee
} }
if( feecnt < 2 ) if( feecnt < 2 )
{ {
Platform.clear( $$line\minmaxflg ); //Platform.clear( $$line\minmaxflg );
$$line\minmaxflg = NULLSTR;
mincur = $$line\wrkfec\mincur; mincur = $$line\wrkfec\mincur;
if( ! Platform.isEmpty( mincur ) ) if( ! Platform.isEmpty( mincur ) )
{ {
......
...@@ -17,7 +17,8 @@ void gleStoreEntry(#gle entry) ...@@ -17,7 +17,8 @@ void gleStoreEntry(#gle entry)
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.sysDump( "Cannot get \\TRN\\INR" ); Platform.sysDump( "Cannot get \\TRN\\INR" );
Platform.clear( $$entry\trninr ); //Platform.clear( $$entry\trninr );
$$entry\trninr = NULLSTR;
//return ; // #### goto dontsav //return ; // #### goto dontsav
break dontsavLabel; break dontsavLabel;
} }
......
...@@ -22,7 +22,8 @@ BigDecimal getnewamtSumToLine(int refidx) ...@@ -22,7 +22,8 @@ BigDecimal getnewamtSumToLine(int refidx)
{ {
if( Platform.compareTo( tenCbtVal , "<all>" ) == 0 ) if( Platform.compareTo( tenCbtVal , "<all>" ) == 0 )
{ {
Platform.clear( tenCbtVal ); //Platform.clear( tenCbtVal );
tenCbtVal = NULLSTR;
} }
cbtok = true; cbtok = true;
if( Platform.compareTo( tenCbtVal , "*ALL*MATCBT*" ) == 0 ) if( Platform.compareTo( tenCbtVal , "*ALL*MATCBT*" ) == 0 )
......
...@@ -27,7 +27,8 @@ void movePteToLiaallg(IModule argmod) ...@@ -27,7 +27,8 @@ void movePteToLiaallg(IModule argmod)
liause = liauseBox.value; liause = liauseBox.value;
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
Platform.clear( liause ); //Platform.clear( liause );
liause = NULLSTR;
} }
else else
{ {
......
...@@ -41,7 +41,8 @@ void fillTENSTM() ...@@ -41,7 +41,8 @@ void fillTENSTM()
} }
if( Platform.compareTo( lst , "<all>" ) == 0 ) if( Platform.compareTo( lst , "<all>" ) == 0 )
{ {
Platform.clear( lst ); //Platform.clear( lst );
lst = NULLSTR;
} }
gridcnt = Platform.gridCount( $liaallg ); gridcnt = Platform.gridCount( $liaallg );
for(int i = 1;i <= gridcnt;i++) for(int i = 1;i <= gridcnt;i++)
......
...@@ -30,10 +30,14 @@ void checkOpenIssues(IModule arggrp) ...@@ -30,10 +30,14 @@ void checkOpenIssues(IModule arggrp)
} }
// get subcontracts from database if not already read // get subcontracts from database if not already read
int hardLinkCnt = 0; int hardLinkCnt = 0;
Platform.cacheRead( hardLinkCnt, objTyp + objInr + "HardLinkedSubCon" ); Argument<Integer> hardLinkCntBox = new Argument<>("",0);
Platform.cacheRead( hardLinkCntBox, objTyp + objInr + "HardLinkedSubCon" );
hardLinkCnt = hardLinkCntBox.value;
int hardLinkErr = Platform.errorCode(); int hardLinkErr = Platform.errorCode();
int softLinkCnt = 0; int softLinkCnt = 0;
Platform.cacheRead( softLinkCnt, objTyp + objInr + "SoftLinkedSubCon" ); Argument<Integer> softLinkCntBox = new Argument<>("",0);
Platform.cacheRead( softLinkCntBox, objTyp + objInr + "SoftLinkedSubCon" );
softLinkCnt = softLinkCntBox.value;
int softLinkErr = Platform.errorCode(); int softLinkErr = Platform.errorCode();
int subConCnt = 0; int subConCnt = 0;
int linHardNr = 0; int linHardNr = 0;
...@@ -253,7 +257,9 @@ void checkOpenIssues(IModule arggrp) ...@@ -253,7 +257,9 @@ void checkOpenIssues(IModule arggrp)
//####################################################### //#######################################################
// get SEP from database if not already read // get SEP from database if not already read
int sepCnt = 0; int sepCnt = 0;
Platform.cacheRead( sepCnt, objTyp + objInr + "SEPOPNCNT" ); Argument<Integer> sepCntBox = new Argument<>("",0);
Platform.cacheRead( sepCntBox, objTyp + objInr + "SEPOPNCNT" );
sepCnt = sepCntBox.value;
String ownSepInr = NULLSTR; String ownSepInr = NULLSTR;
String basSql = NULLSTR; String basSql = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
...@@ -284,7 +290,9 @@ void checkOpenIssues(IModule arggrp) ...@@ -284,7 +290,9 @@ void checkOpenIssues(IModule arggrp)
//####################################################### //#######################################################
// check whether any SPT except DEL and REJ for this contract exists // check whether any SPT except DEL and REJ for this contract exists
int sptCnt = 0; int sptCnt = 0;
Platform.cacheRead( sptCnt, objTyp + objInr + "SPTOPNCNT" ); Argument<Integer> sptCntBox = new Argument<>("",0);
Platform.cacheRead( sptCntBox, objTyp + objInr + "SPTOPNCNT" );
sptCnt = sptCntBox.value;
String childsql = NULLSTR; String childsql = NULLSTR;
String sptSql = NULLSTR; String sptSql = NULLSTR;
String sptInrSql = NULLSTR; String sptInrSql = NULLSTR;
......
...@@ -10,7 +10,8 @@ String appendSql() ...@@ -10,7 +10,8 @@ String appendSql()
branchsql = branchsqlBox.value; branchsql = branchsqlBox.value;
Platform.clear( branchsql ); //Platform.clear( branchsql );
branchsql = NULLSTR;
if( ! Platform.isEmpty( Platform.trim( branchsql ) ) ) if( ! Platform.isEmpty( Platform.trim( branchsql ) ) )
{ {
sql = sql + " (BRANCHINR IN (" + branchsql + ") "; sql = sql + " (BRANCHINR IN (" + branchsql + ") ";
......
...@@ -15,7 +15,8 @@ String ptmGetCorAdrFromAdr(#adr argadr,String argcortyp) ...@@ -15,7 +15,8 @@ String ptmGetCorAdrFromAdr(#adr argadr,String argcortyp)
res = Platform.getContent( adr ); res = Platform.getContent( adr );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( res ); //Platform.clear( res );
res = NULLSTR;
} }
} }
} }
......
...@@ -17,6 +17,7 @@ void ptsModAssertParty(String argfield,String argrol,#ptspta argptspta,String ar ...@@ -17,6 +17,7 @@ void ptsModAssertParty(String argfield,String argrol,#ptspta argptspta,String ar
if( Platform.compareTo( pansta , PanStaShow ) == 0 ) if( Platform.compareTo( pansta , PanStaShow ) == 0 )
{ {
Platform.clear( $$argptspta\rolchgflg ); Platform.clear( $$argptspta\rolchgflg );
$$argptspta\rolchgflg = NULLSTR;
if( ! Platform.isModified( $$argptspta\pts ) ) if( ! Platform.isModified( $$argptspta\pts ) )
{ {
Platform.clear( $$argptspta\pts ); Platform.clear( $$argptspta\pts );
......
...@@ -34,7 +34,8 @@ default $wrkptspta\pts\adrblk order 1000 ...@@ -34,7 +34,8 @@ default $wrkptspta\pts\adrblk order 1000
relLev = Platform.getContent( $tmpptsppath.getValue() + "\\RELLEV" ); relLev = Platform.getContent( $tmpptsppath.getValue() + "\\RELLEV" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( relLev ); //Platform.clear( relLev );
relLev = NULLSTR;
} }
if( Platform.isEmpty( relLev ) ) if( Platform.isEmpty( relLev ) )
{ {
......
...@@ -12,7 +12,8 @@ default $butmod order 900 ...@@ -12,7 +12,8 @@ default $butmod order 900
relLev = Platform.getContent( $tmpptsppath.getValue() + "\\RELLEV" ); relLev = Platform.getContent( $tmpptsppath.getValue() + "\\RELLEV" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( relLev ); //Platform.clear( relLev );
relLev = NULLSTR;
} }
if( Platform.isEmpty( relLev ) ) if( Platform.isEmpty( relLev ) )
{ {
......
...@@ -32,7 +32,8 @@ default $wrkptspta\dbfadrblkcn order 1000 ...@@ -32,7 +32,8 @@ default $wrkptspta\dbfadrblkcn order 1000
relLev = Platform.getContent( $tmpptsppath.getValue() + "\\RELLEV" ); relLev = Platform.getContent( $tmpptsppath.getValue() + "\\RELLEV" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( relLev ); //Platform.clear( relLev );
relLev = NULLSTR;
} }
if( Platform.isEmpty( relLev ) ) if( Platform.isEmpty( relLev ) )
{ {
......
...@@ -6,7 +6,8 @@ void ptsmodGetPtaOfPtspta(#ptspta argptspta) ...@@ -6,7 +6,8 @@ void ptsmodGetPtaOfPtspta(#ptspta argptspta)
if( Platform.isEmpty( $$argptspta\pts\ptainr ) || Platform.compareTo( $$argptspta\pts\ptainr , "//DELETE#" ) == 0 ) if( Platform.isEmpty( $$argptspta\pts\ptainr ) || Platform.compareTo( $$argptspta\pts\ptainr , "//DELETE#" ) == 0 )
{ {
Platform.clear( $$argptspta\pta ); Platform.clear( $$argptspta\pta );
Platform.clear( $$argptspta\pts\ptainr ); //Platform.clear( $$argptspta\pts\ptainr );
$$argptspta\pts\ptainr = NULLSTR;
} }
else else
{ {
......
...@@ -99,6 +99,7 @@ void ptsmodSetPtsFromPta(#ptspta argptspta) ...@@ -99,6 +99,7 @@ void ptsmodSetPtsFromPta(#ptspta argptspta)
if( ! Platform.isModified( $$argptspta\pts\extkey ) ) if( ! Platform.isModified( $$argptspta\pts\extkey ) )
{ {
Platform.clear( $$argptspta\pts\extkey ); Platform.clear( $$argptspta\pts\extkey );
$$argptspta\pts\extkey = NULLSTR;
} }
} }
else else
......
...@@ -41,7 +41,9 @@ void getFepEntries(Argument<Boolean> argfirstcall) ...@@ -41,7 +41,9 @@ void getFepEntries(Argument<Boolean> argfirstcall)
} }
Platform.cacheWrite( sqlStm, "SEFMOD", "FEPSQL" ); Platform.cacheWrite( sqlStm, "SEFMOD", "FEPSQL" );
// remove old pool entries from cache (if any) // remove old pool entries from cache (if any)
Platform.cacheRead( cnt, "SETFEG", "FEPCNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEPCNT" );
cnt = cntBox.value;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
......
...@@ -56,7 +56,9 @@ void addTrnFee(String id,String feetyp,String feeflg,int feeunt,Date from,Date t ...@@ -56,7 +56,9 @@ void addTrnFee(String id,String feetyp,String feeflg,int feeunt,Date from,Date t
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
cnt = 0; cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
cnt = 0; cnt = 0;
......
...@@ -2,7 +2,9 @@ void getfepinrs(IStream res,boolean feponly) ...@@ -2,7 +2,9 @@ void getfepinrs(IStream res,boolean feponly)
{ {
Platform.streamClear( res ); Platform.streamClear( res );
int cnt = 0; int cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEPCNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEPCNT" );
cnt = cntBox.value;
String id = NULLSTR; String id = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
...@@ -26,7 +28,8 @@ void getfepinrs(IStream res,boolean feponly) ...@@ -26,7 +28,8 @@ void getfepinrs(IStream res,boolean feponly)
if( ! feponly ) if( ! feponly )
{ {
cnt = 0; cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
......
...@@ -3,7 +3,9 @@ void remTrnFeeGroup(String argid) ...@@ -3,7 +3,9 @@ void remTrnFeeGroup(String argid)
//! remove logically a group of entries from list of fee positions //! remove logically a group of entries from list of fee positions
//! ArgId : Prefix of Ids to be removed as used in AddTrnFee //! ArgId : Prefix of Ids to be removed as used in AddTrnFee
int cnt = 0; int cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
String id = NULLSTR; String id = NULLSTR;
String mac = NULLSTR; String mac = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
......
...@@ -8,7 +8,7 @@ String getfepval(String inr,String nam) ...@@ -8,7 +8,7 @@ String getfepval(String inr,String nam)
value = valueBox.value; value = valueBox.value;
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
Platform.clear( value ); value = NULLSTR;
} }
else else
{ {
......
...@@ -5,7 +5,9 @@ default $macbog order 1000 ...@@ -5,7 +5,9 @@ default $macbog order 1000
int cnt = 0; int cnt = 0;
IStream stm = new StreamImpl(); IStream stm = new StreamImpl();
Platform.streamClear( stm ); Platform.streamClear( stm );
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
String mac = NULLSTR; String mac = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
......
...@@ -5,7 +5,9 @@ void fillPtyInrStmForFep(IStream argstm) ...@@ -5,7 +5,9 @@ void fillPtyInrStmForFep(IStream argstm)
IStream ptyinrs = new StreamImpl(); IStream ptyinrs = new StreamImpl();
Platform.streamClear( ptyinrs ); Platform.streamClear( ptyinrs );
int cnt = 0; int cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEPCNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEPCNT" );
cnt = cntBox.value;
String id = NULLSTR; String id = NULLSTR;
String ptyinr = NULLSTR; String ptyinr = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
......
...@@ -11,7 +11,9 @@ boolean isFeeCodSettled(String argfeecod,IModule arggrp) ...@@ -11,7 +11,9 @@ boolean isFeeCodSettled(String argfeecod,IModule arggrp)
{ {
fepCnt = 0; fepCnt = 0;
lbl = objTyp + objInr + argfeecod; lbl = objTyp + objInr + argfeecod;
Platform.cacheRead( fepCnt, lbl ); Argument<Integer> fepCntBox = new Argument<>("",0);
Platform.cacheRead( fepCntBox, lbl );
fepCnt = fepCntBox.value;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
......
...@@ -3,7 +3,9 @@ void getfepfeecods(IStream res,boolean feponly) ...@@ -3,7 +3,9 @@ void getfepfeecods(IStream res,boolean feponly)
//! res returns a stream with lines such as "feecod|inr" //! res returns a stream with lines such as "feecod|inr"
Platform.streamClear( res ); Platform.streamClear( res );
int cnt = 0; int cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEPCNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEPCNT" );
cnt = cntBox.value;
String id = NULLSTR; String id = NULLSTR;
String feecod = NULLSTR; String feecod = NULLSTR;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
...@@ -32,7 +34,8 @@ void getfepfeecods(IStream res,boolean feponly) ...@@ -32,7 +34,8 @@ void getfepfeecods(IStream res,boolean feponly)
if( ! feponly ) if( ! feponly )
{ {
cnt = 0; cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
......
...@@ -10,7 +10,9 @@ static void delTrnFee(String id,String feetyp,String feeflg) ...@@ -10,7 +10,9 @@ static void delTrnFee(String id,String feetyp,String feeflg)
{ {
Platform.cacheDelete( "SETFEG", "FEEIDS", idx ); Platform.cacheDelete( "SETFEG", "FEEIDS", idx );
cnt = 0; cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
......
...@@ -56,7 +56,9 @@ void addTrnFee1(String id,String feetyp,String feeflg,int feeunt,Date from,Date ...@@ -56,7 +56,9 @@ void addTrnFee1(String id,String feetyp,String feeflg,int feeunt,Date from,Date
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
cnt = 0; cnt = 0;
Platform.cacheRead( cnt, "SETFEG", "FEECNT" ); Argument<Integer> cntBox = new Argument<>("",0);
Platform.cacheRead( cntBox, "SETFEG", "FEECNT" );
cnt = cntBox.value;
if( Platform.errorCode() == tdCacheNotFound ) if( Platform.errorCode() == tdCacheNotFound )
{ {
cnt = 0; cnt = 0;
......
...@@ -135,7 +135,8 @@ String swtCreateMT768(Date argmsgdat,String argrol) ...@@ -135,7 +135,8 @@ String swtCreateMT768(Date argmsgdat,String argrol)
account = $setglg\setgll[idx]\acccur.getValue() + "-account No " + $setglg\setgll[idx]\act.getValue(); account = $setglg\setgll[idx]\acccur.getValue() + "-account No " + $setglg\setgll[idx]\act.getValue();
tag72 = tag72 + cr + "We kindly ask you to credit the amount of charges to our " + "\r\n" + account; tag72 = tag72 + cr + "We kindly ask you to credit the amount of charges to our " + "\r\n" + account;
Platform.streamInsert( tag72Stm, 0, "72: " + Platform.convertBlock( tag72, 1, 6, 35 ) ); Platform.streamInsert( tag72Stm, 0, "72: " + Platform.convertBlock( tag72, 1, 6, 35 ) );
Platform.clear( cr ); //Platform.clear( cr );
cr = NULLSTR;
} }
} }
} }
......
...@@ -170,7 +170,8 @@ String swtCreateMT769(Date argmsgdat,String argrol,String argcur,int argamt,Stri ...@@ -170,7 +170,8 @@ String swtCreateMT769(Date argmsgdat,String argrol,String argcur,int argamt,Stri
account = $setglg\setgll[idx]\acccur.getValue() + "-account No " + $setglg\setgll[idx]\act.getValue(); account = $setglg\setgll[idx]\acccur.getValue() + "-account No " + $setglg\setgll[idx]\act.getValue();
tag72 = tag72 + cr + "We kindly ask you to credit the amount of charges to our " + "\r\n" + account; tag72 = tag72 + cr + "We kindly ask you to credit the amount of charges to our " + "\r\n" + account;
Platform.streamInsert( tag72Stm, 0, "72: " + Platform.convertBlock( tag72, 1, 6, 35 ) ); Platform.streamInsert( tag72Stm, 0, "72: " + Platform.convertBlock( tag72, 1, 6, 35 ) );
Platform.clear( cr ); //Platform.clear( cr );
cr = NULLSTR;
} }
} }
} }
......
...@@ -224,7 +224,8 @@ default $sptstm order 1000 ...@@ -224,7 +224,8 @@ default $sptstm order 1000
// NRA本行转账 // NRA本行转账
if( ! Platform.isEmpty( $chknra ) ) if( ! Platform.isEmpty( $chknra ) )
{ {
Platform.clear( sql ); //Platform.clear( sql );
sql = NULLSTR;
sql = " WHERE"; sql = " WHERE";
if( ! Platform.isEmpty( usrSql ) ) if( ! Platform.isEmpty( usrSql ) )
{ {
......
...@@ -40,12 +40,16 @@ void gridEtyLoad(IStream argstg,String argtds,IModule argrec,String argetyins,St ...@@ -40,12 +40,16 @@ void gridEtyLoad(IStream argstg,String argtds,IModule argrec,String argetyins,St
**/ **/
cntMax = 99999999; cntMax = 99999999;
} }
Argument<Integer> cntLowBox = new Argument<>("",0);
Platform.cacheRead( cntLow, "stgmod", argtds, "Low-Limit" ); Platform.cacheRead( cntLow, "stgmod", argtds, "Low-Limit" );
cntLow = cntLowBox.value;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
} }
Argument<Integer> cntMaxBox = new Argument<>("",0);
Platform.cacheRead( cntMax, "stgmod", argtds, "Max-Limit" ); Platform.cacheRead( cntMax, "stgmod", argtds, "Max-Limit" );
cntMax = cntMaxBox.value;
if( Platform.errorCode() != tdCacheNotFound ) if( Platform.errorCode() != tdCacheNotFound )
{ {
Platform.reraise(); Platform.reraise();
......
...@@ -70,7 +70,8 @@ void getSysInfStream(IStream argstm) ...@@ -70,7 +70,8 @@ void getSysInfStream(IStream argstm)
} }
Platform.streamInsert( argstm, 0, Platform.mid( ctxVar + " " + ctxVal, 1, 96 ) ); Platform.streamInsert( argstm, 0, Platform.mid( ctxVar + " " + ctxVal, 1, 96 ) );
ctxVal = Platform.mid( ctxVal, 96 - len ); ctxVal = Platform.mid( ctxVal, 96 - len );
Platform.clear( ctxVar ); //Platform.clear( ctxVar );
ctxVar = NULLSTR;
} }
} }
} }
......
...@@ -20,7 +20,7 @@ void internalSetupEty() ...@@ -20,7 +20,7 @@ void internalSetupEty()
internalTIMZONSet(); internalTIMZONSet();
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.sysDump( Platform.formatText( "Error setting time zone.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText(), $\sysmod\ety\timzon.getValue() ) ); //Platform.sysDump( Platform.formatText( "Error setting time zone.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText(), $\sysmod\ety\timzon.getValue() ) );
} }
String ety = $\sysmod\ssn\ety; String ety = $\sysmod\ssn\ety;
// Store the active Entity in the session entry // Store the active Entity in the session entry
......
...@@ -31,7 +31,7 @@ init $$\ order 9000550 ...@@ -31,7 +31,7 @@ init $$\ order 9000550
ssnInrNumeric = $syspth.valBase36( ssnInr ); ssnInrNumeric = $syspth.valBase36( ssnInr );
if( ssnInrNumeric < 0 ) if( ssnInrNumeric < 0 )
{ {
Platform.sysDump( Platform.formatText( "Invalid base 36 number '$1' passed following -SSNINR", ssnInr ) ); // Platform.sysDump( Platform.formatText( "Invalid base 36 number '$1' passed following -SSNINR", ssnInr ) );
//return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew //return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew
SSNNewFlag = true; SSNNewFlag = true;
break SSNNewLabel; break SSNNewLabel;
...@@ -94,7 +94,7 @@ init $$\ order 9000550 ...@@ -94,7 +94,7 @@ init $$\ order 9000550
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
$\sysmod\ssn\inr = "NO"; $\sysmod\ssn\inr = "NO";
Platform.sysDump( Platform.formatText( "Unable to lock session ID upon start of transaction.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText() ) ); //Platform.sysDump( Platform.formatText( "Unable to lock session ID upon start of transaction.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText() ) );
//return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew //return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew
SSNNewFlag = true; SSNNewFlag = true;
break SSNNewLabel; break SSNNewLabel;
...@@ -111,7 +111,7 @@ init $$\ order 9000550 ...@@ -111,7 +111,7 @@ init $$\ order 9000550
{ {
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.sysDump( Platform.formatText( "Unable to read session ID upon start of transaction.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText() ) ); // Platform.sysDump( Platform.formatText( "Unable to read session ID upon start of transaction.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText() ) );
$\sysmod\ssn\inr = "NO"; $\sysmod\ssn\inr = "NO";
//return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew //return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew
SSNNewFlag = true; SSNNewFlag = true;
...@@ -125,7 +125,7 @@ init $$\ order 9000550 ...@@ -125,7 +125,7 @@ init $$\ order 9000550
// The stored Applications server id has to fit // The stored Applications server id has to fit
if( Platform.compareTo($\sysmod\ssn\appsrv.getValue(), Platform.mid( Platform.getContext( tdContextSERVERID ), 1, Platform.getAttribute( $\sysmod\ssn\appsrv.getValue(), tdAttrLength ) )) != 0 ) if( Platform.compareTo($\sysmod\ssn\appsrv.getValue(), Platform.mid( Platform.getContext( tdContextSERVERID ), 1, Platform.getAttribute( $\sysmod\ssn\appsrv.getValue(), tdAttrLength ) )) != 0 )
{ {
Platform.sysDump( Platform.formatText( "Inconsistent session data upon start of transaction.\nThe session record identifies the application server as $1, but it is $2.\nSession not registered.\n(Session INR used: $3)", $\sysmod\ssn\appsrv.getValue(), Platform.getContext( tdContextSERVERID ),$\sysmod\ssn\inr.getValue() ) ); //Platform.sysDump( Platform.formatText( "Inconsistent session data upon start of transaction.\nThe session record identifies the application server as $1, but it is $2.\nSession not registered.\n(Session INR used: $3)", $\sysmod\ssn\appsrv.getValue(), Platform.getContext( tdContextSERVERID ),$\sysmod\ssn\inr.getValue() ) );
$\sysmod\ssn\inr = "NO"; $\sysmod\ssn\inr = "NO";
//return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew //return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew
SSNNewFlag = true; SSNNewFlag = true;
...@@ -142,7 +142,7 @@ init $$\ order 9000550 ...@@ -142,7 +142,7 @@ init $$\ order 9000550
// The stored Applications server pid has to fit // The stored Applications server pid has to fit
if( Platform.compareTo($\sysmod\ssn\apppid.getValue(), Platform.getContext( tdContextSERVERPID )) != 0 ) if( Platform.compareTo($\sysmod\ssn\apppid.getValue(), Platform.getContext( tdContextSERVERPID )) != 0 )
{ {
Platform.sysDump( Platform.formatText( "Inconsistent session data upon start of transaction.\nThe session record identifies the application pid as $1, but it is $2.\nSession not registered.\n(Session INR used: $3)", $\sysmod\ssn\apppid.getValue(), Platform.getContext( tdContextSERVERPID ),$\sysmod\ssn\inr.getValue() ) ); // Platform.sysDump( Platform.formatText( "Inconsistent session data upon start of transaction.\nThe session record identifies the application pid as $1, but it is $2.\nSession not registered.\n(Session INR used: $3)", $\sysmod\ssn\apppid.getValue(), Platform.getContext( tdContextSERVERPID ),$\sysmod\ssn\inr.getValue() ) );
$\sysmod\ssn\inr = "NO"; $\sysmod\ssn\inr = "NO";
//return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew //return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew
SSNNewFlag = true; SSNNewFlag = true;
...@@ -158,7 +158,7 @@ init $$\ order 9000550 ...@@ -158,7 +158,7 @@ init $$\ order 9000550
// The stored Userid has to fit // The stored Userid has to fit
if( Platform.compareTo(Platform.toUpper( $\sysmod\ssn\usr.getValue() ), Platform.toUpper( Platform.getLoginUser() )) != 0 ) if( Platform.compareTo(Platform.toUpper( $\sysmod\ssn\usr.getValue() ), Platform.toUpper( Platform.getLoginUser() )) != 0 )
{ {
Platform.sysDump( Platform.formatText( "Inconsistent session data upon start of transaction.\nThe session record identifies the user as $1, but it is $2.\nSession not registered.\n(Session INR used: $3)", $\sysmod\ssn\usr.getValue(), Platform.getLoginUser(), $\sysmod\ssn\inr.getValue() ) ); //Platform.sysDump( Platform.formatText( "Inconsistent session data upon start of transaction.\nThe session record identifies the user as $1, but it is $2.\nSession not registered.\n(Session INR used: $3)", $\sysmod\ssn\usr.getValue(), Platform.getLoginUser(), $\sysmod\ssn\inr.getValue() ) );
$\sysmod\ssn\inr = "NO"; $\sysmod\ssn\inr = "NO";
//return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew //return ; // #######TODO 改写 LABEL与GOTO #### goto SSNNew
SSNNewFlag = true; SSNNewFlag = true;
...@@ -233,7 +233,7 @@ init $$\ order 9000550 ...@@ -233,7 +233,7 @@ init $$\ order 9000550
$\sysmod\ssn\inr = "NO"; $\sysmod\ssn\inr = "NO";
if( Platform.errorCode() == 271 ) if( Platform.errorCode() == 271 )
{ {
Platform.sysDump( Platform.formatText( "Licensed user count of $1 sessions exceeded", Platform.getContext( "MAXUSERCOUNT" ) ) ); //Platform.sysDump( Platform.formatText( "Licensed user count of $1 sessions exceeded", Platform.getContext( "MAXUSERCOUNT" ) ) );
} }
else else
{ {
...@@ -290,7 +290,7 @@ init $$\ order 9000550 ...@@ -290,7 +290,7 @@ init $$\ order 9000550
Platform.dbCommit(); Platform.dbCommit();
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.sysDump( Platform.formatText( "Error occured on commiting the update of the session record.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText() ) ); // Platform.sysDump( Platform.formatText( "Error occured on commiting the update of the session record.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText() ) );
} }
} }
internalSetupUsr(); internalSetupUsr();
...@@ -318,12 +318,12 @@ init $$\ order 9000550 ...@@ -318,12 +318,12 @@ init $$\ order 9000550
if( Platform.errorCode() == tdOdbcNotFound ) if( Platform.errorCode() == tdOdbcNotFound )
{ {
// Passed SPT not found // Passed SPT not found
Platform.sysDump( Platform.formatText( "A SPT has been externally passed (via command line), but internally this SPT is not found.\nPassed SPTINR (=$1) is ignored.", sptInr ) ); //Platform.sysDump( Platform.formatText( "A SPT has been externally passed (via command line), but internally this SPT is not found.\nPassed SPTINR (=$1) is ignored.", sptInr ) );
} }
else else
{ {
// other errors on access to SPT // other errors on access to SPT
Platform.sysDump( Platform.formatText( "A SPT has been externally passed (via command line), but on access to this SPT an error occured.\nPassed SPTINR (=$3) is ignored.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText(), sptInr ) ); //Platform.sysDump( Platform.formatText( "A SPT has been externally passed (via command line), but on access to this SPT an error occured.\nPassed SPTINR (=$3) is ignored.\n(Error=$1 $2)", Platform.errorCode(), Platform.getErrorText(), sptInr ) );
Platform.reraise(); Platform.reraise();
} }
} }
......
...@@ -6,12 +6,21 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -6,12 +6,21 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
boolean prompt = Platform.prompt( #CT000049 ); boolean prompt = Platform.prompt( #CT000049 );
BigDecimal destnum = null; BigDecimal destnum = null;
String queHldFlg = NULLSTR; String queHldFlg = NULLSTR;
if( prompt )
{
destnum = new BigDecimal("0");
queHldFlg = " ";
//return ; // #### goto ExitNoUpdateLabel
Platform.dbRollback();
return destnum;
}
//检核牌价是否变化 //检核牌价是否变化
/*if( checkXrtChg( $$argtrn\inr.getValue() ) ) if( checkXrtChg( $$argtrn\inr.getValue() ) )
{ {
//return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
}*/ return destnum;
}
//新增结售汇,更新汇率处理 //新增结售汇,更新汇率处理
boolean getXrtReturn = false; boolean getXrtReturn = false;
Argument<Boolean> getXrtReturnBox = new Argument<Boolean>("",getXrtReturn); Argument<Boolean> getXrtReturnBox = new Argument<Boolean>("",getXrtReturn);
...@@ -20,14 +29,27 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -20,14 +29,27 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
getXrtReturn = getXrtReturnBox.value; getXrtReturn = getXrtReturnBox.value;
//新增更新gle汇率异常处理,如果异常直接不能复核,(其实也可以直接不更新,后面再优化) //新增更新gle汇率异常处理,如果异常直接不能复核,(其实也可以直接不更新,后面再优化)
ExitNoUpdateLabel:
while(true){
if( getXrtReturn ) if( getXrtReturn )
{ {
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
Platform.errorMessage( #CT000072 ); Platform.errorMessage( #CT000072 );
//return destnum; //#### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
}
//Settemod 如果包含保证金和内部户进行提示
boolean chkbusflg = false;
if( Platform.checkActBusTyp( argtrn ) )
{
chkbusflg = Platform.prompt( #CT000057, "交易中包含保证金账户或内部户,是否继续授权? " );
if( chkbusflg )
{
destnum = new BigDecimal("0");
queHldFlg = " ";
//return ; // #### goto ExitNoUpdateLabel
Platform.dbRollback();
return destnum;
}
} }
//! brtset bctset cptopn 交易提示一下如果结算贷款登记时绑定过借据号 //! brtset bctset cptopn 交易提示一下如果结算贷款登记时绑定过借据号
String jjh = NULLSTR; String jjh = NULLSTR;
...@@ -52,8 +74,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -52,8 +74,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
{ {
Platform.errorMessage( #CT000058, Platform.mid( $$argtrn\ownref.getValue(), 3 ) ); Platform.errorMessage( #CT000058, Platform.mid( $$argtrn\ownref.getValue(), 3 ) );
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
} }
queHldFlg = "D"; queHldFlg = "D";
...@@ -67,8 +90,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -67,8 +90,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
Platform.errorMessage( #CT000028, $$argtrn\inr.getValue(), GetLockUID, GetLockDateTime ); Platform.errorMessage( #CT000028, $$argtrn\inr.getValue(), GetLockUID, GetLockDateTime );
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
queHldFlg = " "; queHldFlg = " ";
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
Platform.reraise(); Platform.reraise();
} }
...@@ -81,19 +105,21 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -81,19 +105,21 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
Platform.errorMessage( #CT000029, $$argtrn\inr.getValue(), GetLockUID, GetLockDateTime ); Platform.errorMessage( #CT000029, $$argtrn\inr.getValue(), GetLockUID, GetLockDateTime );
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
queHldFlg = " "; queHldFlg = " ";
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
Platform.reraise(); Platform.reraise();
} }
// Checking the current status after locking the TRN // Checking the current status after locking the TRN
if( ( Platform.compareTo( $$argtrn\relflg , "X") ) != 0 && ( Platform.compareTo( $$argtrn\relflg , "W") ) != 0 ) if( !( Platform.compareTo( $$argtrn\relflg , "X") == 0) && !( Platform.compareTo( $$argtrn\relflg , "W") == 0) )
{ {
Platform.errorMessage( #CT000030 ); Platform.errorMessage( #CT000030 );
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
// Checking the commit status after locking the TRN // Checking the commit status after locking the TRN
if( Platform.compareTo($$argtrn\comflg, "D" )== 0 ) if( Platform.compareTo($$argtrn\comflg, "D" )== 0 )
...@@ -101,8 +127,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -101,8 +127,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
Platform.errorMessage( #CT000031 ); Platform.errorMessage( #CT000031 );
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
destnum = new BigDecimal(argrelnum); destnum = new BigDecimal(argrelnum);
// Force reread of WFEs // Force reread of WFEs
...@@ -110,22 +137,22 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -110,22 +137,22 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
// Check wether REL Entry is waiting // Check wether REL Entry is waiting
// if service "REL" is used, SRVREL must be included and executed in MGRTSK in order to set WFE for REL to "D"one // if service "REL" is used, SRVREL must be included and executed in MGRTSK in order to set WFE for REL to "D"one
int err = 0; int err = 0;
ExitLabel: ExitLabelLabel:
while(true){ while(true){
if( ! checkServiceWfe( argtrn, "REL" ) ) if( ! checkServiceWfe( argtrn, "REL" ) )
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitLabel //return ; // #### goto ExitLabel
break ExitLabel; break ExitLabelLabel;
} }
//检查服务状态是否有,"E" or "F" ,如果有,必须先进行处理才能RELEASE //检查服务状态是否有,"E" or "F" ,如果有,必须先进行处理才能RELEASE
if( ! checkWfeStat() ) if( ! checkWfeStat() )
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitLabel //return ; // #### goto ExitLabel
break ExitLabel; break ExitLabelLabel;
} }
// check wether user already gave signature // check wether user already gave signature
destnum = setSign( argtrn, argrelnum ); destnum = setSign( argtrn, argrelnum );
...@@ -133,15 +160,17 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -133,15 +160,17 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
if( ! checkPDP( argtrn ) ) if( ! checkPDP( argtrn ) )
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
// 资金报价交易有时间控制,超过时间不允许Release // 资金报价交易有时间控制,超过时间不允许Release
Date time = null; Date time = null;
...@@ -157,10 +186,32 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -157,10 +186,32 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
Platform.errorMessage( #CT000050 ); Platform.errorMessage( #CT000050 );
queHldFlg = " "; queHldFlg = " ";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
//return destnum; // #### goto ExitNoUpdateLabel //return ; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel; Platform.dbRollback();
return destnum;
} }
} }
/**
// 融资交易隔日不让Release的控制
if not CheckFinance( ArgTRN ) then
Error( 'LG000056' )
$QueHldFlg = " "
$destnum = 0
goto ExitNoUpdateLabel
endif
**/
/**
//检核牌价是否变化
if CheckXrtChg( argtrn\inr ) then
goto ExitNoUpdateLabel
endif
**/
/**
//新增结售汇,更新汇率处理
if Checkgletimeandamt( argtrn\inr ) then
ExitEvent
endif
**/
//gleXrtChgAfterRelease( argtrn\inr ) //gleXrtChgAfterRelease( argtrn\inr )
if( Platform.compareTo( $$argtrn\relres , $$argtrn\relreq ) == 0 ) if( Platform.compareTo( $$argtrn\relres , $$argtrn\relreq ) == 0 )
{ {
...@@ -177,6 +228,26 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -177,6 +228,26 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
$$argtrn\relflg = "W"; $$argtrn\relflg = "W";
} }
} }
//CHANGE BY ZYF ,ORDER XXF
/**
//额度确认
//不管是否收单行模式,都在TRNREL中真正占用和归还额度
//if IsEmpty( ORDMOD\ORD\SDHFLG ) then
if argtrn\relflg == "R" then
// 最后一步,直接更新数据库表
$Boolean = LsnDoRelease( ArgTrn\OrdInr )
else
// 非最后一步,只检查
$Boolean = LsnProcessEntry( ArgTrn\OrdInr, "CHK" )
endif
if not $Boolean then
ShowError
$QueHldFlg = " "
$destnum = 0
goto ExitNoUpdateLabel
endif
//endif
**/
IStream msgStream = new StreamImpl(); IStream msgStream = new StreamImpl();
if( Platform.compareTo( $$argtrn\relflg , "R" ) == 0 ) if( Platform.compareTo( $$argtrn\relflg , "R" ) == 0 )
...@@ -283,9 +354,10 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -283,9 +354,10 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
{ {
$imgmod.imgrel ( $$argtrn\imginr.getValue(), $$argtrn\ownref.getValue(), $$argtrn\relflg.getValue(), $$argtrn\relres.getValue() ); $imgmod.imgrel ( $$argtrn\imginr.getValue(), $$argtrn\ownref.getValue(), $$argtrn\relflg.getValue(), $$argtrn\relres.getValue() );
} }
break ExitLabel; break ExitLabelLabel;
} }
// #### label ExitLabel
// #### label ExitLabel
$$argtrn\inftxt = inftxttmp; $$argtrn\inftxt = inftxttmp;
$$argtrn\infdsp = infdsptmp; $$argtrn\infdsp = infdsptmp;
setTrnOrgFlg( argtrn ); setTrnOrgFlg( argtrn );
...@@ -339,10 +411,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -339,10 +411,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
updategrid( argtrn ); updategrid( argtrn );
Platform.SetAttributeStream( $trnstm.getValue(), tdAttrSelected, lines ); Platform.SetAttributeStream( $trnstm.getValue(), tdAttrSelected, lines );
} }
break ExitNoUpdateLabel;
}
// #### label ExitNoUpdateLabel
Platform.dbRollback();
return destnum; return destnum;
// #### label ExitNoUpdateLabel
//Platform.dbRollback();
//return destnum;
} }
\ No newline at end of file
...@@ -12,7 +12,8 @@ void internalCtlSavDia(String argpth,#dia argdia,String argflg) ...@@ -12,7 +12,8 @@ void internalCtlSavDia(String argpth,#dia argdia,String argflg)
// This field must be empty in Save-Structure and is always new defaulted before to be shown or saved // This field must be empty in Save-Structure and is always new defaulted before to be shown or saved
if( Platform.compareTo(Platform.mid( argflg, 1, 1 ), "S") != 0 && ! Platform.isModified( $$argdia\ownusr ) ) if( Platform.compareTo(Platform.mid( argflg, 1, 1 ), "S") != 0 && ! Platform.isModified( $$argdia\ownusr ) )
{ {
Platform.clear( $$argdia\ownusr ); //Platform.clear( $$argdia\ownusr );
$$argdia\ownusr = NULLSTR;
} }
internalClearAddFldForDia( argdia, argflg ); internalClearAddFldForDia( argdia, argflg );
// set a list of modified fields // set a list of modified fields
......
...@@ -170,7 +170,8 @@ String swtPrtReference(String argtag,String argcortyp,String argrol) ...@@ -170,7 +170,8 @@ String swtPrtReference(String argtag,String argcortyp,String argrol)
} }
else else
{ {
Platform.clear( ref ); //Platform.clear( ref );
ref = NULLSTR;
} }
} }
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
......
...@@ -18,7 +18,8 @@ String coverta() ...@@ -18,7 +18,8 @@ String coverta()
} }
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.clear( sec ); //Platform.clear( sec );
sec = NULLSTR;
} }
String mt = NULLSTR; String mt = NULLSTR;
String tags = NULLSTR; String tags = NULLSTR;
......
...@@ -4,7 +4,8 @@ String getOwnRef() ...@@ -4,7 +4,8 @@ String getOwnRef()
String ownRef = Platform.getContent( $doccur\objmod.getValue() + "\\OWNREF" ); String ownRef = Platform.getContent( $doccur\objmod.getValue() + "\\OWNREF" );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.clear( ownRef ); //Platform.clear( ownRef );
ownRef = NULLSTR;
Platform.message( #CT000953, Platform.errorCode() ); Platform.message( #CT000953, Platform.errorCode() );
} }
return ownRef; return ownRef;
......
...@@ -17,7 +17,8 @@ String getYourRef() ...@@ -17,7 +17,8 @@ String getYourRef()
fremsg = Platform.getModule( "\\FREMSG" ); fremsg = Platform.getModule( "\\FREMSG" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( yourref ); //Platform.clear( yourref );
yourref = NULLSTR;
} }
else else
{ {
...@@ -25,7 +26,8 @@ String getYourRef() ...@@ -25,7 +26,8 @@ String getYourRef()
msgrolcc = Platform.getContent( "\\FREMSG\\CCROL" ); msgrolcc = Platform.getContent( "\\FREMSG\\CCROL" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( yourref ); //Platform.clear( yourref );
yourref = NULLSTR;
} }
else else
{ {
...@@ -46,12 +48,14 @@ String getYourRef() ...@@ -46,12 +48,14 @@ String getYourRef()
} }
else else
{ {
Platform.clear( yourref ); //Platform.clear( yourref );
yourref = NULLSTR;
} }
} }
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.clear( yourref ); //Platform.clear( yourref );
yourref = NULLSTR;
} }
else else
{ {
...@@ -60,7 +64,8 @@ String getYourRef() ...@@ -60,7 +64,8 @@ String getYourRef()
} }
else else
{ {
Platform.clear( yourref ); //Platform.clear( yourref );
yourref = NULLSTR;
} }
} }
} }
...@@ -72,7 +77,8 @@ String getYourRef() ...@@ -72,7 +77,8 @@ String getYourRef()
yourref = Platform.getContent( grpMod + "\\" + $doccur\role.getValue() + "\\PTS\\REF" ); yourref = Platform.getContent( grpMod + "\\" + $doccur\role.getValue() + "\\PTS\\REF" );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.clear( yourref ); //Platform.clear( yourref );
yourref = NULLSTR;
Platform.message( #CT000955, Platform.errorCode() ); Platform.message( #CT000955, Platform.errorCode() );
} }
} }
......
...@@ -11,6 +11,7 @@ String getCtrAmt() ...@@ -11,6 +11,7 @@ String getCtrAmt()
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.clear( ctrCur ); Platform.clear( ctrCur );
ctrCur = NULLSTR;
Platform.message( #CT000958, Platform.errorCode() ); Platform.message( #CT000958, Platform.errorCode() );
} }
} }
...@@ -26,7 +27,8 @@ String getCtrAmt() ...@@ -26,7 +27,8 @@ String getCtrAmt()
ctrAmt = Platform.getContentNumeric( mod + "\\CBS\\OPN1\\AMT" ); ctrAmt = Platform.getContentNumeric( mod + "\\CBS\\OPN1\\AMT" );
if( Platform.errorCode() != 0 ) if( Platform.errorCode() != 0 )
{ {
Platform.clear( ctrAmt ); //Platform.clear( ctrAmt );
ctrAmt = BigDecimal.ZERO;
Platform.message( #CT000956, Platform.errorCode() ); Platform.message( #CT000956, Platform.errorCode() );
} }
} }
......
...@@ -82,7 +82,8 @@ void bopTroLoadContract(IModule obj) ...@@ -82,7 +82,8 @@ void bopTroLoadContract(IModule obj)
if( ! Platform.sptIsAnyLoaded() ) if( ! Platform.sptIsAnyLoaded() )
{ {
Platform.clear( obj ); Platform.clear( obj );
Platform.clear( objINR ); //Platform.clear( objINR );
objINR = NULLSTR;
} }
//goto done //goto done
//return ; // #######TODO 改写 LABEL与GOTO #### goto NoContract //return ; // #######TODO 改写 LABEL与GOTO #### goto NoContract
......
...@@ -8,7 +8,8 @@ void getcur(String argcur,#cur currec) ...@@ -8,7 +8,8 @@ void getcur(String argcur,#cur currec)
{ {
if( Platform.compareTo($$currec\cod.getValue(), argcur) != 0 ) if( Platform.compareTo($$currec\cod.getValue(), argcur) != 0 )
{ {
Platform.clear( $$currec\cod ); //Platform.clear( $$currec\cod );
$$currec\cod = NULLSTR;
Platform.cacheDbReadSql( currec, Platform.sdbEtyGenSql( currec, "where COD = " + Platform.sqlLit( argcur ) ) ); Platform.cacheDbReadSql( currec, Platform.sdbEtyGenSql( currec, "where COD = " + Platform.sqlLit( argcur ) ) );
if( Platform.isEmpty( $$currec\cod ) || Platform.errorCode() == tdOdbcNotFound ) if( Platform.isEmpty( $$currec\cod ) || Platform.errorCode() == tdOdbcNotFound )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment