Commit 58e63d06 by wangguangchao

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

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