Ejemplo n.º 1
0
        /// <summary>
        /// 往SAP系统写入数据
        /// </summary>
        public void WriteTable()
        {
            _importTable = new FunctionImportTable();
            _importTable.eventImportTableFinished += new delegateImporeTableDone(functionImportTable_eventImportTableFinished);
            _importTable.Delimiter = this.ImportDelimiter;

            _importTable.isDelete  = this.isDelete;
            _importTable.isInsert  = this.isInsert;
            _importTable.isModify  = this.isModify;
            _importTable.isUpdate  = this.isUpdate;
            _importTable.SapClient = this.TargetSystemName;
            _importTable.TableName = this.TargetTableName;

            _importTable.setFields(this.Fields);

            if (this.writeOperation == OperationType.direct)
            {
                _importTable.DATA      = this.DATA;
                _importTable.FIELDS    = this.FIELDS;
                _importTable.Operation = OperationType.direct;
            }
            else
            {
                _importTable.DataInput = this.ExchangeData;
                _importTable.Operation = OperationType.write;
            }


            _importTable.Excute();

            //this.WriteTable(this.TargetSystemName, TargetTableName);
        }
 private void functionImportTable_eventImportTableFinished(FunctionImportTable sender)
 {
     NotifyListener(sender.Message);
     //throw new NotImplementedException();
 }
        /// <summary>
        /// 往SAP系统写入数据
        /// </summary>
        public void WriteTable()
        {
            _importTable = new FunctionImportTable();
            _importTable.eventImportTableFinished += new delegateImporeTableDone(functionImportTable_eventImportTableFinished);
            _importTable.Delimiter = this.ImportDelimiter;

            _importTable.isDelete = this.isDelete;
            _importTable.isInsert = this.isInsert;
            _importTable.isModify = this.isModify;
            _importTable.isUpdate = this.isUpdate;
            _importTable.SapClient = this.TargetSystemName;
            _importTable.TableName = this.TargetTableName;

            _importTable.setFields(this.Fields);

            if (this.writeOperation == OperationType.direct)
            {
                _importTable.DATA = this.DATA;
                _importTable.FIELDS = this.FIELDS;
                _importTable.Operation = OperationType.direct;
            }
            else
            {
                _importTable.DataInput = this.ExchangeData;
                _importTable.Operation = OperationType.write;
            }

            _importTable.Excute();

            //this.WriteTable(this.TargetSystemName, TargetTableName);
        }
Ejemplo n.º 4
0
 private void functionImportTable_eventImportTableFinished(FunctionImportTable sender)
 {
     NotifyListener(sender.Message);
     //throw new NotImplementedException();
 }