Beispiel #1
0
        private void LoadDataRad1melementiveza(int maxRows)
        {
            int num = 0;

            if (this.RcdFound287 != 0)
            {
                this.ScanLoadRad1melementiveza();
                while ((this.RcdFound287 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowRad1melementiveza();
                    this.CreateNewRowRad1melementiveza();
                    this.ScanNextRad1melementiveza();
                }
            }
            if (num > 0)
            {
                this.RcdFound287 = 1;
            }
            this.ScanEndRad1melementiveza();
            if (this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.Count > 0)
            {
                this.rowRAD1MELEMENTIVEZA = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA[this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.Count - 1];
            }
        }
Beispiel #2
0
 public RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow AddRAD1MELEMENTIVEZARow(int rAD1ELEMENTIID, int iDELEMENT)
 {
     RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow row = (RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow) this.NewRow();
     row["RAD1ELEMENTIID"] = rAD1ELEMENTIID;
     row["IDELEMENT"]      = iDELEMENT;
     this.Rows.Add(row);
     return(row);
 }
Beispiel #3
0
 private void ReadRowRad1melementiveza()
 {
     this.Gx_mode = Mode.FromRowState(this.rowRAD1MELEMENTIVEZA.RowState);
     if (this.rowRAD1MELEMENTIVEZA.RowState == DataRowState.Added)
     {
     }
     this._Gxremove = this.rowRAD1MELEMENTIVEZA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowRAD1MELEMENTIVEZA = (RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1MELEMENTIVEZA);
     }
 }
Beispiel #4
0
        private void LoadByRAD1ELEMENTIIDIDELEMENT(int startRow, int maxRows)
        {
            bool enforceConstraints = this.RAD1MELEMENTIVEZASet.EnforceConstraints;

            this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.BeginLoadData();
            this.ScanByRAD1ELEMENTIIDIDELEMENT(startRow, maxRows);
            this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.EndLoadData();
            this.RAD1MELEMENTIVEZASet.EnforceConstraints = enforceConstraints;
            if (this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.Count > 0)
            {
                this.rowRAD1MELEMENTIVEZA = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA[this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.Count - 1];
            }
        }
Beispiel #5
0
 public virtual int FillPageByRAD1ELEMENTIID(RAD1MELEMENTIVEZADataSet dataSet, int rAD1ELEMENTIID, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1MELEMENTIVEZASet = dataSet;
     this.rowRAD1MELEMENTIVEZA = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.NewRAD1MELEMENTIVEZARow();
     this.rowRAD1MELEMENTIVEZA.RAD1ELEMENTIID = rAD1ELEMENTIID;
     try
     {
         this.LoadByRAD1ELEMENTIID(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Beispiel #6
0
 public virtual int FillByIDELEMENT(RAD1MELEMENTIVEZADataSet dataSet, int iDELEMENT)
 {
     this.InitializeMembers();
     this.connDefault                    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1MELEMENTIVEZASet           = dataSet;
     this.rowRAD1MELEMENTIVEZA           = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.NewRAD1MELEMENTIVEZARow();
     this.rowRAD1MELEMENTIVEZA.IDELEMENT = iDELEMENT;
     try
     {
         this.LoadByIDELEMENT(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Beispiel #7
0
 public virtual bool FillByRAD1ELEMENTIIDIDELEMENT(RAD1MELEMENTIVEZADataSet dataSet, int rAD1ELEMENTIID, int iDELEMENT)
 {
     this.InitializeMembers();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1MELEMENTIVEZASet = dataSet;
     this.rowRAD1MELEMENTIVEZA = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.NewRAD1MELEMENTIVEZARow();
     this.rowRAD1MELEMENTIVEZA.RAD1ELEMENTIID = rAD1ELEMENTIID;
     this.rowRAD1MELEMENTIVEZA.IDELEMENT      = iDELEMENT;
     try
     {
         this.LoadByRAD1ELEMENTIIDIDELEMENT(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound287 == 0)
     {
         return(false);
     }
     return(true);
 }
Beispiel #8
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.RAD1MELEMENTIVEZASet = (RAD1MELEMENTIVEZADataSet)dataSet;
            this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.RAD1MELEMENTIVEZASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow current = (RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow)enumerator.Current;
                        this.rowRAD1MELEMENTIVEZA = current;
                        if (Helpers.IsRowChanged(this.rowRAD1MELEMENTIVEZA))
                        {
                            this.ReadRowRad1melementiveza();
                            if (this.rowRAD1MELEMENTIVEZA.RowState == DataRowState.Added)
                            {
                                this.InsertRad1melementiveza();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateRad1melementiveza();
                            }
                        }
                    }
                }
                finally
                {
                    if (enumerator is IDisposable)
                    {
                        (enumerator as IDisposable).Dispose();
                    }
                }
                dataSet.AcceptChanges();
                this.connDefault.Commit();
            }
            catch (System.Exception exception1)
            {
                throw exception1;

                //this.connDefault.Rollback();
            }
            finally
            {
                this.Cleanup();
            }
            return(0);
        }
Beispiel #9
0
 private void CreateNewRowRad1melementiveza()
 {
     this.rowRAD1MELEMENTIVEZA = this.RAD1MELEMENTIVEZASet.RAD1MELEMENTIVEZA.NewRAD1MELEMENTIVEZARow();
 }
Beispiel #10
0
 public RAD1MELEMENTIVEZAEventArgs(RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Beispiel #11
0
 public RAD1MELEMENTIVEZARowChangeEvent(RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Beispiel #12
0
 public void RemoveRAD1MELEMENTIVEZARow(RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow row)
 {
     this.Rows.Remove(row);
 }
Beispiel #13
0
 public void AddRAD1MELEMENTIVEZARow(RAD1MELEMENTIVEZADataSet.RAD1MELEMENTIVEZARow row)
 {
     this.Rows.Add(row);
 }