Commit d287d83b by lsk

t-x goto语法转换修改提交

parent 2f67ac06
#Tue Oct 12 14:48:20 CST 2021 #Tue Oct 12 16:26:34 CST 2021
LastTarget=eIBS LastTarget=eIBS
ScalePercent=80 ScalePercent=80
DefaultTransName=ditopn DefaultTransName=ditopn
......
...@@ -23,6 +23,8 @@ boolean doConfirm(#trn argtrn) ...@@ -23,6 +23,8 @@ boolean doConfirm(#trn argtrn)
} }
// Check wether CNF Entry is waiting // Check wether CNF Entry is waiting
int destnum = 0; int destnum = 0;
ExitLabel:
while(true){
if( ! checkServiceWfe( argtrn, "CNF" ) ) if( ! checkServiceWfe( argtrn, "CNF" ) )
{ {
destnum = 0; destnum = 0;
...@@ -32,13 +34,14 @@ boolean doConfirm(#trn argtrn) ...@@ -32,13 +34,14 @@ boolean doConfirm(#trn argtrn)
Platform.sdbUpdate( argtrn ); Platform.sdbUpdate( argtrn );
Platform.dbCommit(); Platform.dbCommit();
updategrid( argtrn ); updategrid( argtrn );
return true; // #######TODO 改写 LABEL与GOTO #### goto ExitLabel //return true; // #### goto ExitLabel
break ExitLabel;
} }
sigWrite( "E", argtrn, "SG3" ); // external confirmation entered` sigWrite( "E", argtrn, "SG3" ); // external confirmation entered`
String setflg = Platform.mid( $$argtrn\relreq.getValue(), 3, 1 ); String setflg = Platform.mid( $$argtrn\relreq.getValue(), 3, 1 );
$$argtrn\relres = Platform.mid( $$argtrn\relres.getValue(), 1, 2 ) + setflg; $$argtrn\relres = Platform.mid( $$argtrn\relres.getValue(), 1, 2 ) + setflg;
Platform.status( #CT000002, $$argtrn\ownref.getValue() ); Platform.status( #CT000002, $$argtrn\ownref.getValue() );
// #######TODO 改写 LABEL与GOTO #### label ReturnLabel // #### label ReturnLabel
if( Platform.compareTo( $$argtrn\relres , $$argtrn\relreq ) == 0 ) if( Platform.compareTo( $$argtrn\relres , $$argtrn\relreq ) == 0 )
{ {
$$argtrn\relflg = "R"; $$argtrn\relflg = "R";
...@@ -47,7 +50,9 @@ boolean doConfirm(#trn argtrn) ...@@ -47,7 +50,9 @@ boolean doConfirm(#trn argtrn)
{ {
$$argtrn\relflg = "W"; $$argtrn\relflg = "W";
} }
// #######TODO 改写 LABEL与GOTO #### label ExitLabel break ExitLabel;
}
// #### label ExitLabel
updateServiceWfe( argtrn, "CNF" ); // Update status of WFE entry for release updateServiceWfe( argtrn, "CNF" ); // Update status of WFE entry for release
$$argtrn\inftxt = inftxttmp; $$argtrn\inftxt = inftxttmp;
$$argtrn\infdsp = infdsptmp; $$argtrn\infdsp = infdsptmp;
......
...@@ -9,7 +9,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -9,7 +9,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
//检核牌价是否变化 //检核牌价是否变化
/*if( checkXrtChg( $$argtrn\inr.getValue() ) ) /*if( checkXrtChg( $$argtrn\inr.getValue() ) )
{ {
return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
}*/ }*/
//新增结售汇,更新汇率处理 //新增结售汇,更新汇率处理
boolean getXrtReturn = false; boolean getXrtReturn = false;
...@@ -19,11 +20,14 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -19,11 +20,14 @@ 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; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; //#### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
//! brtset bctset cptopn 交易提示一下如果结算贷款登记时绑定过借据号 //! brtset bctset cptopn 交易提示一下如果结算贷款登记时绑定过借据号
String jjh = NULLSTR; String jjh = NULLSTR;
...@@ -48,7 +52,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -48,7 +52,8 @@ 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; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
} }
queHldFlg = "D"; queHldFlg = "D";
...@@ -62,7 +67,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -62,7 +67,8 @@ 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; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
Platform.reraise(); Platform.reraise();
} }
...@@ -75,7 +81,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -75,7 +81,8 @@ 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; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
Platform.reraise(); Platform.reraise();
} }
...@@ -85,7 +92,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -85,7 +92,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
Platform.errorMessage( #CT000030 ); Platform.errorMessage( #CT000030 );
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
// 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 )
...@@ -93,25 +101,30 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -93,25 +101,30 @@ 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; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
destnum = new BigDecimal(argrelnum); destnum = new BigDecimal(argrelnum);
// Force reread of WFEs // Force reread of WFEs
Platform.clear( $wfmmod\wfs ); Platform.clear( $wfmmod\wfs );
// 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
ExitLabel:
while(true){
if( ! checkServiceWfe( argtrn, "REL" ) ) if( ! checkServiceWfe( argtrn, "REL" ) )
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitLabel //return destnum; // #### goto ExitLabel
break ExitLabel;
} }
//检查服务状态是否有,"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; // #######TODO 改写 LABEL与GOTO #### goto ExitLabel //return destnum; // #### goto ExitLabel
break ExitLabel;
} }
// check wether user already gave signature // check wether user already gave signature
destnum = setSign( argtrn, argrelnum ); destnum = setSign( argtrn, argrelnum );
...@@ -119,13 +132,15 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -119,13 +132,15 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
if( ! checkPDP( argtrn ) ) if( ! checkPDP( argtrn ) )
{ {
queHldFlg = "D"; queHldFlg = "D";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
// 资金报价交易有时间控制,超过时间不允许Release // 资金报价交易有时间控制,超过时间不允许Release
Date time = null; Date time = null;
...@@ -141,7 +156,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -141,7 +156,8 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
Platform.errorMessage( #CT000050 ); Platform.errorMessage( #CT000050 );
queHldFlg = " "; queHldFlg = " ";
destnum = new BigDecimal("0"); destnum = new BigDecimal("0");
return destnum; // #######TODO 改写 LABEL与GOTO #### goto ExitNoUpdateLabel //return destnum; // #### goto ExitNoUpdateLabel
break ExitNoUpdateLabel;
} }
} }
//gleXrtChgAfterRelease( argtrn\inr ) //gleXrtChgAfterRelease( argtrn\inr )
...@@ -266,7 +282,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -266,7 +282,9 @@ 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() );
} }
// #######TODO 改写 LABEL与GOTO #### label ExitLabel break ExitLabel;
}
// #### label ExitLabel
$$argtrn\inftxt = inftxttmp; $$argtrn\inftxt = inftxttmp;
$$argtrn\infdsp = infdsptmp; $$argtrn\infdsp = infdsptmp;
setTrnOrgFlg( argtrn ); setTrnOrgFlg( argtrn );
...@@ -320,7 +338,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum) ...@@ -320,7 +338,9 @@ BigDecimal doRelease(#trn argtrn,int argrelnum)
updategrid( argtrn ); updategrid( argtrn );
Platform.SetAttributeStream( $trnstm.getValue(), tdAttrSelected, lines ); Platform.SetAttributeStream( $trnstm.getValue(), tdAttrSelected, lines );
} }
// #######TODO 改写 LABEL与GOTO #### label ExitNoUpdateLabel break ExitNoUpdateLabel;
}
// #### label ExitNoUpdateLabel
Platform.dbRollback(); Platform.dbRollback();
return destnum; return destnum;
......
...@@ -135,9 +135,12 @@ void saveNewDiaries() ...@@ -135,9 +135,12 @@ void saveNewDiaries()
// analyse of controlflag // analyse of controlflag
flg = internalCtlGetFlgOfLbl( lbl ); flg = internalCtlGetFlgOfLbl( lbl );
// entry mustn`t be saved in DB when diary was not modified or is a dummy-entry // entry mustn`t be saved in DB when diary was not modified or is a dummy-entry
diary:
while(true){
if( Platform.compareTo( flg , "SNN" ) == 0 || Platform.compareTo( flg , "SND" ) == 0 || Platform.compareTo( flg , "NNN" ) == 0 ) if( Platform.compareTo( flg , "SNN" ) == 0 || Platform.compareTo( flg , "SND" ) == 0 || Platform.compareTo( flg , "NNN" ) == 0 )
{ {
return ; // #######TODO 改写 LABEL与GOTO #### goto diary //return ; // #### goto diary
break diary;
} }
if( Platform.compareTo( Platform.getTransName() , "CPTREP" ) == 0 ) if( Platform.compareTo( Platform.getTransName() , "CPTREP" ) == 0 )
{ {
...@@ -218,7 +221,9 @@ void saveNewDiaries() ...@@ -218,7 +221,9 @@ void saveNewDiaries()
Platform.reraise(); Platform.reraise();
} }
} }
// #######TODO 改写 LABEL与GOTO #### label diary break diary;
}
// #### label diary
} }
} }
\ No newline at end of file
...@@ -30,7 +30,9 @@ void internalCtlGetDiaOfType(String argpth,String argdiatyp,String argsubkey,ISt ...@@ -30,7 +30,9 @@ void internalCtlGetDiaOfType(String argpth,String argdiatyp,String argsubkey,ISt
} }
} }
int idx = 1; int idx = 1;
// #######TODO 改写 LABEL与GOTO #### label NextEntry NextEntry:
while(true){
//#### label NextEntry
int fnd = Platform.streamSearch( $diawrkstm, lbl, idx ); int fnd = Platform.streamSearch( $diawrkstm, lbl, idx );
if( fnd == 0 && lblWithInr ) if( fnd == 0 && lblWithInr )
{ {
...@@ -38,13 +40,17 @@ void internalCtlGetDiaOfType(String argpth,String argdiatyp,String argsubkey,ISt ...@@ -38,13 +40,17 @@ void internalCtlGetDiaOfType(String argpth,String argdiatyp,String argsubkey,ISt
lbl = argpth + "//#" + argsubkey + "#" + argdiatyp + "#"; lbl = argpth + "//#" + argsubkey + "#" + argdiatyp + "#";
idx = 1; idx = 1;
lblWithInr = false; lblWithInr = false;
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry //return ; //#### goto NextEntry
continue NextEntry;
} }
if( fnd > 0 ) if( fnd > 0 )
{ {
Platform.streamInsert( argwrkstm, 0, Platform.getLine( $diawrkstm.getValue(), fnd ) ); Platform.streamInsert( argwrkstm, 0, Platform.getLine( $diawrkstm.getValue(), fnd ) );
idx = fnd + 1; idx = fnd + 1;
return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry //return ; // #######TODO 改写 LABEL与GOTO #### goto NextEntry
continue NextEntry;
}
break NextEntry;
} }
} }
\ No newline at end of file
...@@ -5,6 +5,8 @@ boolean isOpenDiariesExists() ...@@ -5,6 +5,8 @@ boolean isOpenDiariesExists()
boolean res = false; boolean res = false;
int stmCnt = 0; int stmCnt = 0;
String lbl = NULLSTR; String lbl = NULLSTR;
done:
while(true){
if( ! Platform.isEmpty( $diawrkstm ) ) if( ! Platform.isEmpty( $diawrkstm ) )
{ {
stmCnt = Platform.streamCount( $diawrkstm.getValue() ); stmCnt = Platform.streamCount( $diawrkstm.getValue() );
...@@ -15,11 +17,14 @@ boolean isOpenDiariesExists() ...@@ -15,11 +17,14 @@ boolean isOpenDiariesExists()
if( Platform.isEmpty( $diachk\donflg ) ) if( Platform.isEmpty( $diachk\donflg ) )
{ {
res = true; res = true;
return res; // #######TODO 改写 LABEL与GOTO #### goto done //return res; //#### goto done
break done;
} }
} }
} }
// #######TODO 改写 LABEL与GOTO #### label done break done;
}
// #### label done
return res; return res;
} }
\ No newline at end of file
...@@ -74,6 +74,9 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -74,6 +74,9 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
String docnam = Platform.mid( argdocpannam, 1, Platform.len( argdocpannam ) - 2 ) + Platform.mid( argdocpannam, Platform.len( argdocpannam ), 1 ); String docnam = Platform.mid( argdocpannam, 1, Platform.len( argdocpannam ) - 2 ) + Platform.mid( argdocpannam, Platform.len( argdocpannam ), 1 );
// check if message is already in list // check if message is already in list
int gridCnt = Platform.gridCount( $doceot ); int gridCnt = Platform.gridCount( $doceot );
boolean setitFlag = true;
setitLabel:
while(true){
if( gridCnt > 0 ) if( gridCnt > 0 )
{ {
for(int i = 1;i <= gridCnt;i++) for(int i = 1;i <= gridCnt;i++)
...@@ -88,7 +91,8 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -88,7 +91,8 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
if( Platform.compareTo($doceot[i]\argptainr.getValue(), ptainr) != 0 ) if( Platform.compareTo($doceot[i]\argptainr.getValue(), ptainr) != 0 )
{ {
Platform.clear( $doceot[i] ); Platform.clear( $doceot[i] );
return ; // #######TODO 改写 LABEL与GOTO #### goto setit //return ; //#### goto setit
break setitLabel;
} }
$doceot[i]\pandsc = pandsc; $doceot[i]\pandsc = pandsc;
$doceot[i]\role = role; $doceot[i]\role = role;
...@@ -143,7 +147,9 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -143,7 +147,9 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
Platform.clear( $doceot[i]\docdat ); Platform.clear( $doceot[i]\docdat );
} }
} }
return ; // #######TODO 改写 LABEL与GOTO #### goto DoRegisterAddTxt // return ; //#### goto DoRegisterAddTxt
setitFlag = false;
break setitLabel;
} }
} }
} }
...@@ -156,15 +162,19 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -156,15 +162,19 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
if( Platform.isEmpty( $doceot[i]\id ) ) if( Platform.isEmpty( $doceot[i]\id ) )
{ {
fnd = i; fnd = i;
return ; // #######TODO 改写 LABEL与GOTO #### goto setit //return ; //#### goto setit
break setitLabel;
} }
} }
} }
Platform.gridInsertRow( $doceot, 0, 10 ); Platform.gridInsertRow( $doceot, 0, 10 );
fnd = Platform.gridCount( $doceot ) - 9; fnd = Platform.gridCount( $doceot ) - 9;
int i = fnd; int i = fnd;
break setitLabel;
}
// set line in DOCEOT // set line in DOCEOT
// #######TODO 改写 LABEL与GOTO #### label setit // #### label setit
if(setitFlag){
if( i > 0 ) if( i > 0 )
{ {
$doceot[i]\id = id; $doceot[i]\id = id;
...@@ -209,8 +219,9 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -209,8 +219,9 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
Platform.clear( $doceot[i]\docdat ); Platform.clear( $doceot[i]\docdat );
} }
} }
}
// defaulting for ADDTXT/ADDSTR from RegisterAddTxt // defaulting for ADDTXT/ADDSTR from RegisterAddTxt
// #######TODO 改写 LABEL与GOTO #### label DoRegisterAddTxt // #### label DoRegisterAddTxt
int stmCnt = 0; int stmCnt = 0;
String postcmd = NULLSTR; String postcmd = NULLSTR;
if( ! Platform.isModified( $doceot[i]\addtxt ) && ! Platform.isModified( $doceot[i]\addstr ) ) if( ! Platform.isModified( $doceot[i]\addtxt ) && ! Platform.isModified( $doceot[i]\addstr ) )
......
...@@ -28,6 +28,8 @@ event $butatt order 1000 ...@@ -28,6 +28,8 @@ event $butatt order 1000
int stmCnt = Platform.streamCount( selStm ); int stmCnt = Platform.streamCount( selStm );
String objtyp = NULLSTR; String objtyp = NULLSTR;
String objinr = NULLSTR; String objinr = NULLSTR;
UpdateGrids:
while(true){
for(int selidx = 1;selidx <= stmCnt;selidx++) for(int selidx = 1;selidx <= stmCnt;selidx++)
{ {
line = Platform.getLine( selStm, selidx ); line = Platform.getLine( selStm, selidx );
...@@ -44,7 +46,8 @@ event $butatt order 1000 ...@@ -44,7 +46,8 @@ event $butatt order 1000
{ {
Platform.errorMessage( #CT001100 ); Platform.errorMessage( #CT001100 );
fillCONDOCSTM(); fillCONDOCSTM();
return ; // #######TODO 改写 LABEL与GOTO #### goto UpdateGrids //return ; //#### goto UpdateGrids
break UpdateGrids;
} }
else else
{ {
...@@ -54,17 +57,21 @@ event $butatt order 1000 ...@@ -54,17 +57,21 @@ event $butatt order 1000
break; break;
default: default:
Platform.errorMessage( #CT001099, objtyp ); Platform.errorMessage( #CT001099, objtyp );
return ; // #######TODO 改写 LABEL与GOTO #### goto UpdateGrids //return ; // #### goto UpdateGrids
break UpdateGrids;
} }
// Attachment entry does not yet exist, create new attachment under selected document // Attachment entry does not yet exist, create new attachment under selected document
newid = createAttachment( $doceot[dOCEOTidx]\id.getValue(), $smh\nam.getValue(), "SMH", $smh\inr.getValue(), "" ); newid = createAttachment( $doceot[dOCEOTidx]\id.getValue(), $smh\nam.getValue(), "SMH", $smh\inr.getValue(), "" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.errorMessage( #CT001098, Platform.getErrorText() ); Platform.errorMessage( #CT001098, Platform.getErrorText() );
return ; // #######TODO 改写 LABEL与GOTO #### goto UpdateGrids //return ; //#### goto UpdateGrids
break UpdateGrids;
} }
} }
// #######TODO 改写 LABEL与GOTO #### label UpdateGrids break UpdateGrids;
}
//#### label UpdateGrids
Platform.invokeModulePath( "assertDOCS", 0 ); Platform.invokeModulePath( "assertDOCS", 0 );
Platform.invokeModulePath( "TRNDOCFillDOCTree", 0 ); Platform.invokeModulePath( "TRNDOCFillDOCTree", 0 );
if( Platform.compareTo(newid, "") != 0 ) if( Platform.compareTo(newid, "") != 0 )
......
...@@ -37,20 +37,26 @@ event $filrecv order 1000 ...@@ -37,20 +37,26 @@ event $filrecv order 1000
filenameout = getNormalizedFilename( Platform.getLastNode( filenamein ) ); filenameout = getNormalizedFilename( Platform.getLastNode( filenamein ) );
filenameoutfull = Platform.getFullName( "tmp", filenameout ); filenameoutfull = Platform.getFullName( "tmp", filenameout );
Platform.FileCopy( "client:" + filenamein, filenameoutfull ); Platform.FileCopy( "client:" + filenamein, filenameoutfull );
UpdateGrids:
while(true){
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.errorMessage( #CT001116, Platform.getErrorText() ); Platform.errorMessage( #CT001116, Platform.getErrorText() );
return ; // #######TODO 改写 LABEL与GOTO #### goto UpdateGrids //return ; // #### goto UpdateGrids
break UpdateGrids;
} }
// Attachment entry does not yet exist, create new attachment under selected document // Attachment entry does not yet exist, create new attachment under selected document
newid = createAttachment( $doceot[dOCEOTidx]\id.getValue(), filenameout, "FIL", filenameout, "" ); newid = createAttachment( $doceot[dOCEOTidx]\id.getValue(), filenameout, "FIL", filenameout, "" );
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.errorMessage( #CT001118, Platform.getErrorText() ); Platform.errorMessage( #CT001118, Platform.getErrorText() );
return ; // #######TODO 改写 LABEL与GOTO #### goto UpdateGrids //return ; // #### goto UpdateGrids
break UpdateGrids;
} }
} }
// #######TODO 改写 LABEL与GOTO #### label UpdateGrids break UpdateGrids;
}
// #### label UpdateGrids
Platform.invokeModulePath( "assertDOCS", 0 ); Platform.invokeModulePath( "assertDOCS", 0 );
Platform.invokeModulePath( "TRNDOCFillDOCTree", 0 ); Platform.invokeModulePath( "TRNDOCFillDOCTree", 0 );
if( ! Platform.isEmpty( newid ) ) if( ! Platform.isEmpty( newid ) )
......
...@@ -34,6 +34,8 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -34,6 +34,8 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
// check if message is already in list // check if message is already in list
int gridcnt = Platform.gridCount( $doceot ); int gridcnt = Platform.gridCount( $doceot );
int fnd = 0; int fnd = 0;
setit:
while(true){
if( gridcnt > 0 ) if( gridcnt > 0 )
{ {
for(int i = 1;i <= gridcnt;i++) for(int i = 1;i <= gridcnt;i++)
...@@ -41,7 +43,8 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -41,7 +43,8 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
if( Platform.compareTo( id , $doceot[i]\id ) == 0 ) if( Platform.compareTo( id , $doceot[i]\id ) == 0 )
{ {
fnd = i; fnd = i;
return ; // #######TODO 改写 LABEL与GOTO #### goto setit //return ; //#### goto setit
break setit;
} }
} }
} }
...@@ -54,7 +57,8 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -54,7 +57,8 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
if( Platform.isEmpty( $doceot[i]\id ) ) if( Platform.isEmpty( $doceot[i]\id ) )
{ {
fnd = i; fnd = i;
return ; // #######TODO 改写 LABEL与GOTO #### goto setit //return ; // #### goto setit
break setit;
} }
} }
} }
...@@ -62,8 +66,10 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -62,8 +66,10 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
gridcnt = Platform.gridCount( $doceot ); gridcnt = Platform.gridCount( $doceot );
fnd = gridcnt - 9; fnd = gridcnt - 9;
int i = fnd; int i = fnd;
break setit;
}
// set line in DOCEOT // set line in DOCEOT
// #######TODO 改写 LABEL与GOTO #### label setit // #### label setit
if( i > 0 ) if( i > 0 )
{ {
$doceot[i]\id = id; $doceot[i]\id = id;
......
...@@ -43,12 +43,17 @@ event $butattapy order 1000 ...@@ -43,12 +43,17 @@ event $butattapy order 1000
Platform.exitEvent(); Platform.exitEvent();
} }
String newid = createAttachment( $doceot[dOCEOTidx]\id.getValue(), attName, "EOT", attInr, "" ); String newid = createAttachment( $doceot[dOCEOTidx]\id.getValue(), attName, "EOT", attInr, "" );
UpdateGrids:
while(true){
if( Platform.errorCode() > 0 ) if( Platform.errorCode() > 0 )
{ {
Platform.errorMessage( #CT001188, Platform.getErrorText() ); Platform.errorMessage( #CT001188, Platform.getErrorText() );
return ; // #######TODO 改写 LABEL与GOTO #### goto UpdateGrids //return ; // #### goto UpdateGrids
break UpdateGrids;
} }
// #######TODO 改写 LABEL与GOTO #### label UpdateGrids break UpdateGrids;
}
// #### label UpdateGrids
Platform.invokeModulePath( "assertDOCS", 0 ); Platform.invokeModulePath( "assertDOCS", 0 );
Platform.invokeModulePath( "TRNDOCFillDOCTree", 0 ); Platform.invokeModulePath( "TRNDOCFillDOCTree", 0 );
if( ! Platform.isEmpty( newid ) ) if( ! Platform.isEmpty( newid ) )
......
...@@ -14,8 +14,8 @@ static void getStandardReference(Argument<String> ownref,String sector,String pn ...@@ -14,8 +14,8 @@ static void getStandardReference(Argument<String> ownref,String sector,String pn
} }
if( Platform.isEmpty( pntref ) ) if( Platform.isEmpty( pntref ) )
{ {
//return ; // #######TODO 改写 LABEL与GOTO #### goto GetNewRef //return ; // #### goto GetNewRef
// #######TODO 改写 LABEL与GOTO #### label GetNewRef // #### label GetNewRef
// if number of parents contract empty // if number of parents contract empty
// - generate new reference // - generate new reference
// Generate Name of counter to be taken // Generate Name of counter to be taken
...@@ -115,9 +115,9 @@ static void getStandardReference(Argument<String> ownref,String sector,String pn ...@@ -115,9 +115,9 @@ static void getStandardReference(Argument<String> ownref,String sector,String pn
if(1==1) return; if(1==1) return;
} }
} }
//return ; // #######TODO 改写 LABEL与GOTO #### goto done //return ; // #### goto done
/** /**
// #######TODO 改写 LABEL与GOTO #### label GetNewRef // #### label GetNewRef
// if number of parents contract empty // if number of parents contract empty
// - generate new reference // - generate new reference
// Generate Name of counter to be taken // Generate Name of counter to be taken
......
...@@ -37,12 +37,12 @@ void getgrpnew(String sec,String bchkey,String branch,Argument<String> grp) ...@@ -37,12 +37,12 @@ void getgrpnew(String sec,String bchkey,String branch,Argument<String> grp)
if( Platform.errorCode() == 0 ) if( Platform.errorCode() == 0 )
{ {
grp.value = $rou\grp; grp.value = $rou\grp;
return ; // #######TODO 改写 LABEL与GOTO #### goto end2 return ; //#### goto end2
} }
else else
{ {
err = Platform.errorCode(); err = Platform.errorCode();
return ; // #######TODO 改写 LABEL与GOTO #### goto END1 //return ; // #### goto END1
} }
} }
else else
...@@ -50,7 +50,7 @@ void getgrpnew(String sec,String bchkey,String branch,Argument<String> grp) ...@@ -50,7 +50,7 @@ void getgrpnew(String sec,String bchkey,String branch,Argument<String> grp)
grp.value = ""; grp.value = "";
} }
//2、------查找该分行除了第一步中已设定组以外其它所有支行的组别所属-------------- //2、------查找该分行除了第一步中已设定组以外其它所有支行的组别所属--------------
// #######TODO 改写 LABEL与GOTO #### label END1 // #### label END1
rousql = "Where (BUSSEC = '" + sec + "' AND TRNGRP='" + trl + "' AND BCHCOD='' )"; rousql = "Where (BUSSEC = '" + sec + "' AND TRNGRP='" + trl + "' AND BCHCOD='' )";
Platform.dbSelectCursor( $rou, rousql ); Platform.dbSelectCursor( $rou, rousql );
if( Platform.errorCode() == 0 ) if( Platform.errorCode() == 0 )
...@@ -69,7 +69,7 @@ void getgrpnew(String sec,String bchkey,String branch,Argument<String> grp) ...@@ -69,7 +69,7 @@ void getgrpnew(String sec,String bchkey,String branch,Argument<String> grp)
{ {
grp.value = ""; grp.value = "";
} }
// #######TODO 改写 LABEL与GOTO #### label end2 // #### label end2
/** /**
if Pos( \SYSMOD\USR\TRLGRP, "A" ) == 1 then if Pos( \SYSMOD\USR\TRLGRP, "A" ) == 1 then
GRP = "" GRP = ""
......
...@@ -5,7 +5,7 @@ void troWriteEntry(String objtyp,String objinr,String trninr) ...@@ -5,7 +5,7 @@ void troWriteEntry(String objtyp,String objinr,String trninr)
if( Platform.isEmpty( objinr ) ) if( Platform.isEmpty( objinr ) )
{ {
Platform.sysDump( "Can not insert contract without INR in SRO" ); Platform.sysDump( "Can not insert contract without INR in SRO" );
return ; // #######TODO 改写 LABEL与GOTO #### goto done return ; //#### goto done
} }
// Is already a last TRN stored for this contract? // Is already a last TRN stored for this contract?
String sql = Platform.sdbEtyGenSql( $tro, "where OBJTYP = " + Platform.sqlLit( objtyp ) + " AND OBJINR = " + Platform.sqlLit( objinr ) + " AND LSTFLG = 'X'" ); String sql = Platform.sdbEtyGenSql( $tro, "where OBJTYP = " + Platform.sqlLit( objtyp ) + " AND OBJINR = " + Platform.sqlLit( objinr ) + " AND LSTFLG = 'X'" );
...@@ -38,6 +38,6 @@ void troWriteEntry(String objtyp,String objinr,String trninr) ...@@ -38,6 +38,6 @@ void troWriteEntry(String objtyp,String objinr,String trninr)
Platform.sdbInsert( $tro ); Platform.sdbInsert( $tro );
} }
} }
// #######TODO 改写 LABEL与GOTO #### label done //#### label done
} }
\ No newline at end of file
...@@ -80,6 +80,6 @@ void autoRegistration(IModule arggrp,String argfrm,String argtxt) ...@@ -80,6 +80,6 @@ void autoRegistration(IModule arggrp,String argfrm,String argtxt)
$\sysmod.sptSaveEntry( $sptaut, arggrp, SptWaitingRegistration, bakStm, "", "" ); $\sysmod.sptSaveEntry( $sptaut, arggrp, SptWaitingRegistration, bakStm, "", "" );
// reset SMH // reset SMH
Platform.loadData( $smh, oldSmh ); Platform.loadData( $smh, oldSmh );
// #######TODO 改写 LABEL与GOTO #### label done // #### label done
} }
\ No newline at end of file
...@@ -23,13 +23,16 @@ void troLockAdditionalContract(IModule obj) ...@@ -23,13 +23,16 @@ void troLockAdditionalContract(IModule obj)
$mtabut\syswrn.sysWarningSet( SYSWRNTypeWarning, "", "ADDRELWRN" + Platform.recGetObj( obj ) + Platform.recGetInr( obj ) ); $mtabut\syswrn.sysWarningSet( SYSWRNTypeWarning, "", "ADDRELWRN" + Platform.recGetObj( obj ) + Platform.recGetInr( obj ) );
int a = 0; int a = 0;
String notFndTxt = NULLSTR; String notFndTxt = NULLSTR;
doneLabel:
while(true){
if( Platform.isEmpty( objINR ) && ! Platform.sptIsAnyLoaded() ) if( Platform.isEmpty( objINR ) && ! Platform.sptIsAnyLoaded() )
{ {
Platform.setContentText( objPath + "\\OWNREF", "" ); Platform.setContentText( objPath + "\\OWNREF", "" );
a = Platform.errorCode(); a = Platform.errorCode();
notFndTxt = #CT000026; notFndTxt = #CT000026;
Platform.setErrorCode( 27, notFndTxt ); Platform.setErrorCode( 27, notFndTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto done //return ; //#### goto done
break doneLabel;
} }
String ownRef = Platform.getContent( objPath + "\\OWNREF" ); String ownRef = Platform.getContent( objPath + "\\OWNREF" );
Platform.sdbReadLock( Platform.getModule( objPath ), objINR ); Platform.sdbReadLock( Platform.getModule( objPath ), objINR );
...@@ -37,7 +40,8 @@ void troLockAdditionalContract(IModule obj) ...@@ -37,7 +40,8 @@ void troLockAdditionalContract(IModule obj)
int errorCode = 0; int errorCode = 0;
if( Platform.errorCode() == tdOdbcNotFound ) if( Platform.errorCode() == tdOdbcNotFound )
{ {
return ; // #######TODO 改写 LABEL与GOTO #### goto done //return ; // #### goto done
break doneLabel;
} }
else else
{ {
...@@ -48,7 +52,8 @@ void troLockAdditionalContract(IModule obj) ...@@ -48,7 +52,8 @@ void troLockAdditionalContract(IModule obj)
errorCode = Platform.errorCode(); errorCode = Platform.errorCode();
$mtabut\syswrn.sysWarningSet( SYSWRNTypeWarning, Platform.getText( #CT000028, Platform.errorCode(), Platform.trim( GetLockUID ), GetLockDate, Platform.mid( Platform.fmtTime( (int)GetLockTime ), 1, 5 ), ownRef ), "ADDLCKWRN" + Platform.recGetObj( obj ) + Platform.recGetInr( obj ) ); $mtabut\syswrn.sysWarningSet( SYSWRNTypeWarning, Platform.getText( #CT000028, Platform.errorCode(), Platform.trim( GetLockUID ), GetLockDate, Platform.mid( Platform.fmtTime( (int)GetLockTime ), 1, 5 ), ownRef ), "ADDLCKWRN" + Platform.recGetObj( obj ) + Platform.recGetInr( obj ) );
Platform.setErrorCode( errorCode, lckTxt ); Platform.setErrorCode( errorCode, lckTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto done //return ; // #### goto done
break doneLabel;
} }
else else
{ {
...@@ -78,7 +83,8 @@ void troLockAdditionalContract(IModule obj) ...@@ -78,7 +83,8 @@ void troLockAdditionalContract(IModule obj)
errTxt = Platform.getText( #CT000080, ref, trnLst ); errTxt = Platform.getText( #CT000080, ref, trnLst );
$mtabut\syswrn.sysWarningSet( SYSWRNTypeWarning, errTxt, "ADDXREWRN" + Platform.recGetObj( obj ) + Platform.recGetInr( obj ) ); $mtabut\syswrn.sysWarningSet( SYSWRNTypeWarning, errTxt, "ADDXREWRN" + Platform.recGetObj( obj ) + Platform.recGetInr( obj ) );
Platform.setErrorCode( tdOdbcLocked, errTxt ); Platform.setErrorCode( tdOdbcLocked, errTxt );
return ; // #######TODO 改写 LABEL与GOTO #### goto done //return ; // #### goto done
break doneLabel;
} }
else else
{ {
...@@ -90,7 +96,9 @@ void troLockAdditionalContract(IModule obj) ...@@ -90,7 +96,9 @@ void troLockAdditionalContract(IModule obj)
trnLst = trnLstBox.value; trnLst = trnLstBox.value;
Platform.setErrorCode( 0, "" ); Platform.setErrorCode( 0, "" );
// #######TODO 改写 LABEL与GOTO #### label done break doneLabel;
}
// #### label done
// reraise all errorcodes // reraise all errorcodes
Platform.reraise(); Platform.reraise();
// Use EXIT to return to caller with the errorcode set // Use EXIT to return to caller with the errorcode set
......
...@@ -28,6 +28,8 @@ void fillWFESTM() ...@@ -28,6 +28,8 @@ void fillWFESTM()
{ {
srv = Platform.getLine( remainSrv, idx ); srv = Platform.getLine( remainSrv, idx );
preLst = $wfmmod.getPreLst ( srv ); preLst = $wfmmod.getPreLst ( srv );
Nextsrv:
while(true){
for(int sroidx = 1;sroidx <= Platform.len( preLst );sroidx+=6) for(int sroidx = 1;sroidx <= Platform.len( preLst );sroidx+=6)
{ {
// PreLst contains list of (possible) predecessors of $srv // PreLst contains list of (possible) predecessors of $srv
...@@ -39,14 +41,17 @@ void fillWFESTM() ...@@ -39,14 +41,17 @@ void fillWFESTM()
if( Platform.streamSearch( remainSrv, preSrv ) > 0 ) if( Platform.streamSearch( remainSrv, preSrv ) > 0 )
{ {
// service still has predecessor // service still has predecessor
return ; // #######TODO 改写 LABEL与GOTO #### goto Nextsrv //return ; //#### goto Nextsrv
break Nextsrv;
} }
} }
} }
loopFlag = false; loopFlag = false;
Platform.streamDelete( remainSrv, idx ); Platform.streamDelete( remainSrv, idx );
Platform.streamInsert( srvstm, 0, srv ); Platform.streamInsert( srvstm, 0, srv );
// #######TODO 改写 LABEL与GOTO #### label Nextsrv break Nextsrv;
}
//#### label Nextsrv
} }
if( loopFlag == true ) if( loopFlag == true )
{ {
......
...@@ -296,6 +296,8 @@ void updateGridButtons() ...@@ -296,6 +296,8 @@ void updateGridButtons()
} }
} }
int useidx = 0; int useidx = 0;
orelabLabel:
while(true){
if( ! Platform.isEmpty( $trncorco\selinr ) ) if( ! Platform.isEmpty( $trncorco\selinr ) )
{ {
for(int trnidx = 1;trnidx <= Platform.streamCount( $trncorco\selinr.getValue() );trnidx++) for(int trnidx = 1;trnidx <= Platform.streamCount( $trncorco\selinr.getValue() );trnidx++)
...@@ -307,7 +309,8 @@ void updateGridButtons() ...@@ -307,7 +309,8 @@ void updateGridButtons()
if( Platform.compareTo($trn\relflg.getValue(), "W") != 0 && Platform.compareTo($trn\relflg.getValue(), "X") != 0 ) if( Platform.compareTo($trn\relflg.getValue(), "W") != 0 && Platform.compareTo($trn\relflg.getValue(), "X") != 0 )
{ {
//Platform.disable( $relrow, $reldsp ); //Platform.disable( $relrow, $reldsp );
return ; // #######TODO 改写 LABEL与GOTO #### goto orelab //return ; // #### goto orelab
break orelabLabel;
} }
else else
{ {
...@@ -320,14 +323,17 @@ void updateGridButtons() ...@@ -320,14 +323,17 @@ void updateGridButtons()
if( useidx <= 0 ) if( useidx <= 0 )
{ {
//Platform.disable( $relrow, $reldsp ); //Platform.disable( $relrow, $reldsp );
return ; // #######TODO 改写 LABEL与GOTO #### goto orelab //return ; //#### goto orelab
break orelabLabel;
} }
} }
} }
} }
} }
Platform.invisible( $rejrow ); Platform.invisible( $rejrow );
// #######TODO 改写 LABEL与GOTO #### label orelab break orelabLabel;
}
// #### label orelab
if( Platform.compareTo( $\sysmod\bch\lev , "3" ) == 0 ) if( Platform.compareTo( $\sysmod\bch\lev , "3" ) == 0 )
{ {
$seaownflg = "X"; $seaownflg = "X";
......
...@@ -18,7 +18,9 @@ void updateTdparaCurTable() ...@@ -18,7 +18,9 @@ void updateTdparaCurTable()
String curCod = ""; String curCod = "";
int curDec = 0; int curDec = 0;
Platform.dbExecuteSql( sql ); Platform.dbExecuteSql( sql );
// #######TODO 改写 LABEL与GOTO #### label GetNext // #### label GetNext
GetNext:
while(true){
Platform.dbFetchFields( "COD", curCod, "DEC", curDec ); Platform.dbFetchFields( "COD", curCod, "DEC", curDec );
String curNam = NULLSTR; String curNam = NULLSTR;
String curLin = NULLSTR; String curLin = NULLSTR;
...@@ -34,7 +36,8 @@ void updateTdparaCurTable() ...@@ -34,7 +36,8 @@ void updateTdparaCurTable()
{ {
curTbl = curTbl + "\r\n" + curLin; curTbl = curTbl + "\r\n" + curLin;
} }
return ; // #######TODO 改写 LABEL与GOTO #### goto GetNext //return ; // #### goto GetNext
continue GetNext;
} }
else else
{ {
...@@ -43,6 +46,8 @@ void updateTdparaCurTable() ...@@ -43,6 +46,8 @@ void updateTdparaCurTable()
Platform.reraise(); Platform.reraise();
} }
} }
break GetNext;
}
Platform.dbCloseCursor(); Platform.dbCloseCursor();
Platform.SetIniBlock( "TDPARA.INI", "CURRENCY", "Currency", curTbl ); Platform.SetIniBlock( "TDPARA.INI", "CURRENCY", "Currency", curTbl );
Platform.CacheClear(); Platform.CacheClear();
......
...@@ -9,7 +9,7 @@ void getratCeb(String fromcur,String tocur,String typ,Date value,Argument<BigDec ...@@ -9,7 +9,7 @@ void getratCeb(String fromcur,String tocur,String typ,Date value,Argument<BigDec
if( Platform.compareTo( fromcur , tocur ) == 0 ) if( Platform.compareTo( fromcur , tocur ) == 0 )
{ {
rmbrat.value = new BigDecimal(1); rmbrat.value = new BigDecimal(1);
return ; // #######TODO 改写 LABEL与GOTO #### goto done return ; // #### goto done
} }
if( ( Platform.compareTo(fromcur, sysiso) != 0 ) && ( ! Platform.isEmpty( fromcur ) ) ) if( ( Platform.compareTo(fromcur, sysiso) != 0 ) && ( ! Platform.isEmpty( fromcur ) ) )
{ {
...@@ -32,6 +32,6 @@ void getratCeb(String fromcur,String tocur,String typ,Date value,Argument<BigDec ...@@ -32,6 +32,6 @@ void getratCeb(String fromcur,String tocur,String typ,Date value,Argument<BigDec
rmbrat.value = Platform.round( $xrt\midrat.getValue(), 6 ); rmbrat.value = Platform.round( $xrt\midrat.getValue(), 6 );
} }
} }
// #######TODO 改写 LABEL与GOTO #### label done // #### label done
} }
\ No newline at end of file
...@@ -14,7 +14,7 @@ void getratCebTim(String fromcur,String tocur,Date value,Argument<String> rmbrat ...@@ -14,7 +14,7 @@ void getratCebTim(String fromcur,String tocur,Date value,Argument<String> rmbrat
if( Platform.compareTo( fromcur , tocur ) == 0 ) if( Platform.compareTo( fromcur , tocur ) == 0 )
{ {
rmbrat.value = ""; rmbrat.value = "";
return ; // #######TODO 改写 LABEL与GOTO #### goto done return ; // #### goto done
} }
if( ( Platform.compareTo(fromcur, sysiso) != 0 || Platform.compareTo(tocur, sysiso) != 0 ) && ( ! Platform.isEmpty( fromcur ) ) ) if( ( Platform.compareTo(fromcur, sysiso) != 0 || Platform.compareTo(tocur, sysiso) != 0 ) && ( ! Platform.isEmpty( fromcur ) ) )
{ {
...@@ -58,6 +58,6 @@ void getratCebTim(String fromcur,String tocur,Date value,Argument<String> rmbrat ...@@ -58,6 +58,6 @@ void getratCebTim(String fromcur,String tocur,Date value,Argument<String> rmbrat
cbrate = XRT\BUY1RAT cbrate = XRT\BUY1RAT
endif endif
**/ **/
// #######TODO 改写 LABEL与GOTO #### label done // #### label done
} }
\ No newline at end of file
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