Commit 8c3d3f0c by 潘际乾

使用Argument对字符串进行修改复制

parent 62bc4d8a
...@@ -7,13 +7,15 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri ...@@ -7,13 +7,15 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri
// FIELDS: 输出字段的值 // FIELDS: 输出字段的值
//<<< ZL------------------------------------------- //<<< ZL-------------------------------------------
String fileds = NULLSTR; String fileds = NULLSTR;
Argument<String> filedsBox = new Argument<>();
if( Platform.compareTo( flg , "I" ) == 0 ) if( Platform.compareTo( flg , "I" ) == 0 )
{ {
fileds = ""; fileds = "";
Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where inr='" + inr + "' " ); Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where inr='" + inr + "' " );
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
Platform.dbFetchFields( "", fileds ); Platform.dbFetchFields( "", filedsBox );
fileds = filedsBox.value;
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
fields.value = fileds; fields.value = fileds;
...@@ -35,7 +37,8 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri ...@@ -35,7 +37,8 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri
Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where BRANCH='" + inr + "' " ); Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where BRANCH='" + inr + "' " );
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
Platform.dbFetchFields( "", fileds ); Platform.dbFetchFields( "", filedsBox );
fileds = filedsBox.value;
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
fields.value = fileds; fields.value = fileds;
...@@ -57,7 +60,8 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri ...@@ -57,7 +60,8 @@ void getxxdfields(String xxd,String infileds,String inr,String flg,Argument<Stri
Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where ACCBCH='" + inr + "' " ); Platform.dbExecuteSql( "select " + infileds + " from " + xxd + " where ACCBCH='" + inr + "' " );
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
Platform.dbFetchFields( "", fileds ); Platform.dbFetchFields( "", filedsBox );
fileds = filedsBox.value;
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
fields.value = fileds; fields.value = fileds;
......
...@@ -10,7 +10,9 @@ void getBchInrList(String table,String infileds,String inr,Argument<String> fiel ...@@ -10,7 +10,9 @@ void getBchInrList(String table,String infileds,String inr,Argument<String> fiel
int error = 0; int error = 0;
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
Platform.dbFetchFields( "", fileds ); Argument<String> filedsBox = new Argument<>();
ctx.getDaoSession().dbFetchFields("",filedsBox);
fileds = filedsBox.value;
error = Platform.errorCode(); error = Platform.errorCode();
} }
Platform.dbCloseCursor(); Platform.dbCloseCursor();
......
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