Commit 58e63d06 by wangguangchao

trndoc goto修改错误代码修复提交

parent a4f4d6fd
...@@ -74,7 +74,7 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -74,7 +74,7 @@ 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 );
int fnd = 0; int n = 0;
boolean setitFlag = true; boolean setitFlag = true;
setitLabel: setitLabel:
while(true){ while(true){
...@@ -93,6 +93,7 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -93,6 +93,7 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
{ {
Platform.clear( $doceot[i] ); Platform.clear( $doceot[i] );
//return ; //#### goto setit //return ; //#### goto setit
n = i;
break setitLabel; break setitLabel;
} }
$doceot[i]\pandsc = pandsc; $doceot[i]\pandsc = pandsc;
...@@ -149,13 +150,14 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -149,13 +150,14 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
} }
} }
// return ; //#### goto DoRegisterAddTxt // return ; //#### goto DoRegisterAddTxt
n = i;
setitFlag = false; setitFlag = false;
break setitLabel; break setitLabel;
} }
} }
} }
// find empty line // find empty line
int fnd = 0;
if( gridCnt > 0 ) if( gridCnt > 0 )
{ {
for(int i = 1;i <= gridCnt;i++) for(int i = 1;i <= gridCnt;i++)
...@@ -164,17 +166,20 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int ...@@ -164,17 +166,20 @@ void defDocEot(String trigger,String subid,String argdocpannam,String apfcod,int
{ {
fnd = i; fnd = i;
//return ; //#### goto setit //return ; //#### goto setit
n = i;
break setitLabel; 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;
n = fnd;
break setitLabel; break setitLabel;
} }
// set line in DOCEOT // set line in DOCEOT
// #### label setit // #### label setit
int i = fnd; int i = n;
if(setitFlag){ if(setitFlag){
if( i > 0 ) if( i > 0 )
{ {
......
...@@ -34,6 +34,7 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -34,6 +34,7 @@ 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;
int n = 0;
setit: setit:
while(true){ while(true){
if( gridcnt > 0 ) if( gridcnt > 0 )
...@@ -44,6 +45,7 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -44,6 +45,7 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
{ {
fnd = i; fnd = i;
//return ; //#### goto setit //return ; //#### goto setit
n = i;
break setit; break setit;
} }
} }
...@@ -58,6 +60,7 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -58,6 +60,7 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
{ {
fnd = i; fnd = i;
//return ; // #### goto setit //return ; // #### goto setit
n = i;
break setit; break setit;
} }
} }
...@@ -65,11 +68,13 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String ...@@ -65,11 +68,13 @@ void defDocAtt(String trigger,String argid,String argsubid,String argdsc,String
Platform.gridInsertRow( $doceot, 0, 10 ); Platform.gridInsertRow( $doceot, 0, 10 );
gridcnt = Platform.gridCount( $doceot ); gridcnt = Platform.gridCount( $doceot );
fnd = gridcnt - 9; fnd = gridcnt - 9;
int i = fnd;
n = fnd;
break setit; break setit;
} }
// set line in DOCEOT // set line in DOCEOT
// #### label setit // #### label setit
int i = fnd; int i = n;
if( i > 0 ) if( i > 0 )
{ {
$doceot[i]\id = id; $doceot[i]\id = id;
......
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