public void ReadTable()
        {
            _readTable = new FunctionReadTable();
            _readTable.eventReadTableDone += new delegateReadTableDone(functionReadTable_eventReadTableDone);
            _readTable.RowCount            = this.RowCount;
            _readTable.Delimiter           = this.Delimiter;
            _readTable.conditions          = this.Conditions;
            _readTable.SapClient           = this.SourceSystemName;
            _readTable.TableName           = this.SourceTableName;

            _readTable.setFields(this.Fields);

            if (this.readOperation == OperationType.direct)
            {
                _readTable.Operation = OperationType.direct;
                _readTable.Excute();

                this.DATA   = _readTable.RfcDATA;
                this.FIELDS = _readTable.RfcFIELDS;
            }
            else
            {
                //this.Fields = _readTable.getFields();
                _readTable.Operation = OperationType.read;//读取到界面
                _readTable.Excute();
                this.ExchangeData = _readTable.Result;
                this.Fields       = _readTable.getFields();
            }


            //this.ReadTable(SourceSystemName, SourceTableName);
        }
 void functionReadTable_eventReadTableDone(FunctionReadTable sender, List <CopyTableField> fields, List <String> result)
 {
     if (EventCopied != null)
     {
         this.Message = sender.Message;
         EventCopied(this, fields, result);
     }
     // throw new NotImplementedException();
 }
 void functionReadTable_eventReadTableDone(FunctionReadTable sender, List<CopyTableField> fields, List<String> result)
 {
     if (EventCopied != null)
     {
         this.Message = sender.Message;
         EventCopied(this, fields, result);
     }
     // throw new NotImplementedException();
 }
        public void ReadTable()
        {
            _readTable = new FunctionReadTable();
            _readTable.eventReadTableDone += new delegateReadTableDone(functionReadTable_eventReadTableDone);
            _readTable.RowCount = this.RowCount;
            _readTable.Delimiter = this.Delimiter;
            _readTable.conditions = this.Conditions;
            _readTable.SapClient = this.SourceSystemName;
            _readTable.TableName = this.SourceTableName;

            _readTable.setFields(this.Fields);

            if (this.readOperation == OperationType.direct)
            {
                _readTable.Operation = OperationType.direct;
                _readTable.Excute();

                this.DATA = _readTable.RfcDATA;
                this.FIELDS = _readTable.RfcFIELDS;
            }
            else
            {

                //this.Fields = _readTable.getFields();
                _readTable.Operation = OperationType.read;//读取到界面
                _readTable.Excute();
                this.ExchangeData = _readTable.Result;
                this.Fields = _readTable.getFields();

            }

            //this.ReadTable(SourceSystemName, SourceTableName);
        }