示例#1
0
        private void LoadDataRad1gelementiveza(int maxRows)
        {
            int num = 0;

            if (this.RcdFound286 != 0)
            {
                this.ScanLoadRad1gelementiveza();
                while ((this.RcdFound286 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowRad1gelementiveza();
                    this.CreateNewRowRad1gelementiveza();
                    this.ScanNextRad1gelementiveza();
                }
            }
            if (num > 0)
            {
                this.RcdFound286 = 1;
            }
            this.ScanEndRad1gelementiveza();
            if (this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.Count > 0)
            {
                this.rowRAD1GELEMENTIVEZA = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA[this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.Count - 1];
            }
        }
示例#2
0
 public RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow AddRAD1GELEMENTIVEZARow(int rAD1GELEMENTIID, int iDELEMENT)
 {
     RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow row = (RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow) this.NewRow();
     row["RAD1GELEMENTIID"] = rAD1GELEMENTIID;
     row["IDELEMENT"]       = iDELEMENT;
     this.Rows.Add(row);
     return(row);
 }
示例#3
0
 private void ReadRowRad1gelementiveza()
 {
     this.Gx_mode = Mode.FromRowState(this.rowRAD1GELEMENTIVEZA.RowState);
     if (this.rowRAD1GELEMENTIVEZA.RowState == DataRowState.Added)
     {
     }
     this._Gxremove = this.rowRAD1GELEMENTIVEZA.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowRAD1GELEMENTIVEZA = (RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1GELEMENTIVEZA);
     }
 }
示例#4
0
        private void LoadByRAD1GELEMENTIIDIDELEMENT(int startRow, int maxRows)
        {
            bool enforceConstraints = this.RAD1GELEMENTIVEZASet.EnforceConstraints;

            this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.BeginLoadData();
            this.ScanByRAD1GELEMENTIIDIDELEMENT(startRow, maxRows);
            this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.EndLoadData();
            this.RAD1GELEMENTIVEZASet.EnforceConstraints = enforceConstraints;
            if (this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.Count > 0)
            {
                this.rowRAD1GELEMENTIVEZA = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA[this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.Count - 1];
            }
        }
示例#5
0
 public virtual int FillPageByRAD1GELEMENTIID(RAD1GELEMENTIVEZADataSet dataSet, int rAD1GELEMENTIID, int startRow, int maxRows)
 {
     this.InitializeMembers();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1GELEMENTIVEZASet = dataSet;
     this.rowRAD1GELEMENTIVEZA = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.NewRAD1GELEMENTIVEZARow();
     this.rowRAD1GELEMENTIVEZA.RAD1GELEMENTIID = rAD1GELEMENTIID;
     try
     {
         this.LoadByRAD1GELEMENTIID(startRow, maxRows);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
示例#6
0
 public virtual int FillByIDELEMENT(RAD1GELEMENTIVEZADataSet dataSet, int iDELEMENT)
 {
     this.InitializeMembers();
     this.connDefault                    = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1GELEMENTIVEZASet           = dataSet;
     this.rowRAD1GELEMENTIVEZA           = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.NewRAD1GELEMENTIVEZARow();
     this.rowRAD1GELEMENTIVEZA.IDELEMENT = iDELEMENT;
     try
     {
         this.LoadByIDELEMENT(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
示例#7
0
 public virtual bool FillByRAD1GELEMENTIIDIDELEMENT(RAD1GELEMENTIVEZADataSet dataSet, int rAD1GELEMENTIID, int iDELEMENT)
 {
     this.InitializeMembers();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1GELEMENTIVEZASet = dataSet;
     this.rowRAD1GELEMENTIVEZA = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.NewRAD1GELEMENTIVEZARow();
     this.rowRAD1GELEMENTIVEZA.RAD1GELEMENTIID = rAD1GELEMENTIID;
     this.rowRAD1GELEMENTIVEZA.IDELEMENT       = iDELEMENT;
     try
     {
         this.LoadByRAD1GELEMENTIIDIDELEMENT(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound286 == 0)
     {
         return(false);
     }
     return(true);
 }
示例#8
0
 public RAD1GELEMENTIVEZARowChangeEvent(RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
示例#9
0
 public void RemoveRAD1GELEMENTIVEZARow(RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow row)
 {
     this.Rows.Remove(row);
 }
示例#10
0
 public void AddRAD1GELEMENTIVEZARow(RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow row)
 {
     this.Rows.Add(row);
 }
示例#11
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.RAD1GELEMENTIVEZASet = (RAD1GELEMENTIVEZADataSet)dataSet;
            this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.RAD1GELEMENTIVEZASet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow current = (RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow)enumerator.Current;
                        this.rowRAD1GELEMENTIVEZA = current;
                        if (Helpers.IsRowChanged(this.rowRAD1GELEMENTIVEZA))
                        {
                            this.ReadRowRad1gelementiveza();
                            if (this.rowRAD1GELEMENTIVEZA.RowState == DataRowState.Added)
                            {
                                this.InsertRad1gelementiveza();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateRad1gelementiveza();
                            }
                        }
                    }
                }
                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);
        }
示例#12
0
 private void CreateNewRowRad1gelementiveza()
 {
     this.rowRAD1GELEMENTIVEZA = this.RAD1GELEMENTIVEZASet.RAD1GELEMENTIVEZA.NewRAD1GELEMENTIVEZARow();
 }
示例#13
0
 public RAD1GELEMENTIVEZAEventArgs(RAD1GELEMENTIVEZADataSet.RAD1GELEMENTIVEZARow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }