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

            if (this.RcdFound281 != 0)
            {
                this.ScanLoadRad1gelementi();
                while ((this.RcdFound281 != 0) && (num != maxRows))
                {
                    num++;
                    this.LoadRowRad1gelementi();
                    this.CreateNewRowRad1gelementi();
                    this.ScanNextRad1gelementi();
                }
            }
            if (num > 0)
            {
                this.RcdFound281 = 1;
            }
            this.ScanEndRad1gelementi();
            if (this.RAD1GELEMENTISet.RAD1GELEMENTI.Count > 0)
            {
                this.rowRAD1GELEMENTI = this.RAD1GELEMENTISet.RAD1GELEMENTI[this.RAD1GELEMENTISet.RAD1GELEMENTI.Count - 1];
            }
        }
Beispiel #2
0
 public RAD1GELEMENTIDataSet.RAD1GELEMENTIRow AddRAD1GELEMENTIRow(int rAD1GELEMENTIID, string rAD1GELEMENTINAZIV)
 {
     RAD1GELEMENTIDataSet.RAD1GELEMENTIRow row = (RAD1GELEMENTIDataSet.RAD1GELEMENTIRow) this.NewRow();
     row["RAD1GELEMENTIID"]    = rAD1GELEMENTIID;
     row["RAD1GELEMENTINAZIV"] = rAD1GELEMENTINAZIV;
     this.Rows.Add(row);
     return(row);
 }
Beispiel #3
0
        private void LoadByRAD1GELEMENTIID(int startRow, int maxRows)
        {
            bool enforceConstraints = this.RAD1GELEMENTISet.EnforceConstraints;

            this.RAD1GELEMENTISet.RAD1GELEMENTI.BeginLoadData();
            this.ScanByRAD1GELEMENTIID(startRow, maxRows);
            this.RAD1GELEMENTISet.RAD1GELEMENTI.EndLoadData();
            this.RAD1GELEMENTISet.EnforceConstraints = enforceConstraints;
            if (this.RAD1GELEMENTISet.RAD1GELEMENTI.Count > 0)
            {
                this.rowRAD1GELEMENTI = this.RAD1GELEMENTISet.RAD1GELEMENTI[this.RAD1GELEMENTISet.RAD1GELEMENTI.Count - 1];
            }
        }
Beispiel #4
0
 private void ReadRowRad1gelementi()
 {
     this.Gx_mode = Mode.FromRowState(this.rowRAD1GELEMENTI.RowState);
     if (this.rowRAD1GELEMENTI.RowState != DataRowState.Added)
     {
         this.m__RAD1GELEMENTINAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1GELEMENTI["RAD1GELEMENTINAZIV", DataRowVersion.Original]);
     }
     else
     {
         this.m__RAD1GELEMENTINAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1GELEMENTI["RAD1GELEMENTINAZIV"]);
     }
     this._Gxremove = this.rowRAD1GELEMENTI.RowState == DataRowState.Deleted;
     if (this._Gxremove)
     {
         this.rowRAD1GELEMENTI = (RAD1GELEMENTIDataSet.RAD1GELEMENTIRow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1GELEMENTI);
     }
 }
Beispiel #5
0
 public virtual bool FillByRAD1GELEMENTIID(RAD1GELEMENTIDataSet dataSet, int rAD1GELEMENTIID)
 {
     this.InitializeMembers();
     this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.RAD1GELEMENTISet = dataSet;
     this.rowRAD1GELEMENTI = this.RAD1GELEMENTISet.RAD1GELEMENTI.NewRAD1GELEMENTIRow();
     this.rowRAD1GELEMENTI.RAD1GELEMENTIID = rAD1GELEMENTIID;
     try
     {
         this.LoadByRAD1GELEMENTIID(0, -1);
         dataSet.AcceptChanges();
     }
     finally
     {
         this.Cleanup();
     }
     if (this.RcdFound281 == 0)
     {
         return(false);
     }
     return(true);
 }
Beispiel #6
0
 public RAD1GELEMENTIRowChangeEvent(RAD1GELEMENTIDataSet.RAD1GELEMENTIRow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Beispiel #7
0
 public void RemoveRAD1GELEMENTIRow(RAD1GELEMENTIDataSet.RAD1GELEMENTIRow row)
 {
     this.Rows.Remove(row);
 }
Beispiel #8
0
 public void AddRAD1GELEMENTIRow(RAD1GELEMENTIDataSet.RAD1GELEMENTIRow row)
 {
     this.Rows.Add(row);
 }
Beispiel #9
0
 public RAD1GELEMENTIEventArgs(RAD1GELEMENTIDataSet.RAD1GELEMENTIRow row, System.Data.StatementType statementType)
 {
     this.m_dataRow       = row;
     this.m_statementType = statementType;
 }
Beispiel #10
0
        public virtual int Update(DataSet dataSet)
        {
            this.InitializeMembers();
            this.RAD1GELEMENTISet = (RAD1GELEMENTIDataSet)dataSet;
            this.connDefault      = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
            if (this.RAD1GELEMENTISet == null)
            {
                throw new ArgumentException(this.resourceManager.GetString("nulldset"));
            }
            try
            {
                IEnumerator enumerator = null;
                this.connDefault.BeginTransaction();
                try
                {
                    enumerator = this.RAD1GELEMENTISet.RAD1GELEMENTI.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        RAD1GELEMENTIDataSet.RAD1GELEMENTIRow current = (RAD1GELEMENTIDataSet.RAD1GELEMENTIRow)enumerator.Current;
                        this.rowRAD1GELEMENTI = current;
                        if (Helpers.IsRowChanged(this.rowRAD1GELEMENTI))
                        {
                            this.ReadRowRad1gelementi();
                            if (this.rowRAD1GELEMENTI.RowState == DataRowState.Added)
                            {
                                this.InsertRad1gelementi();
                            }
                            else
                            {
                                if (this._Gxremove)
                                {
                                    this.Delete();
                                    continue;
                                }
                                this.UpdateRad1gelementi();
                            }
                        }
                    }
                }
                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 #11
0
 private void CreateNewRowRad1gelementi()
 {
     this.rowRAD1GELEMENTI = this.RAD1GELEMENTISet.RAD1GELEMENTI.NewRAD1GELEMENTIRow();
 }