private void LoadDataRad1melementi(int maxRows) { int num = 0; if (this.RcdFound282 != 0) { this.ScanLoadRad1melementi(); while ((this.RcdFound282 != 0) && (num != maxRows)) { num++; this.LoadRowRad1melementi(); this.CreateNewRowRad1melementi(); this.ScanNextRad1melementi(); } } if (num > 0) { this.RcdFound282 = 1; } this.ScanEndRad1melementi(); if (this.RAD1MELEMENTISet.RAD1MELEMENTI.Count > 0) { this.rowRAD1MELEMENTI = this.RAD1MELEMENTISet.RAD1MELEMENTI[this.RAD1MELEMENTISet.RAD1MELEMENTI.Count - 1]; } }
public RAD1MELEMENTIDataSet.RAD1MELEMENTIRow AddRAD1MELEMENTIRow(int rAD1ELEMENTIID, string rAD1ELEMENTINAZIV) { RAD1MELEMENTIDataSet.RAD1MELEMENTIRow row = (RAD1MELEMENTIDataSet.RAD1MELEMENTIRow) this.NewRow(); row["RAD1ELEMENTIID"] = rAD1ELEMENTIID; row["RAD1ELEMENTINAZIV"] = rAD1ELEMENTINAZIV; this.Rows.Add(row); return(row); }
private void LoadByRAD1ELEMENTIID(int startRow, int maxRows) { bool enforceConstraints = this.RAD1MELEMENTISet.EnforceConstraints; this.RAD1MELEMENTISet.RAD1MELEMENTI.BeginLoadData(); this.ScanByRAD1ELEMENTIID(startRow, maxRows); this.RAD1MELEMENTISet.RAD1MELEMENTI.EndLoadData(); this.RAD1MELEMENTISet.EnforceConstraints = enforceConstraints; if (this.RAD1MELEMENTISet.RAD1MELEMENTI.Count > 0) { this.rowRAD1MELEMENTI = this.RAD1MELEMENTISet.RAD1MELEMENTI[this.RAD1MELEMENTISet.RAD1MELEMENTI.Count - 1]; } }
private void ReadRowRad1melementi() { this.Gx_mode = Mode.FromRowState(this.rowRAD1MELEMENTI.RowState); if (this.rowRAD1MELEMENTI.RowState != DataRowState.Added) { this.m__RAD1ELEMENTINAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1MELEMENTI["RAD1ELEMENTINAZIV", DataRowVersion.Original]); } else { this.m__RAD1ELEMENTINAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1MELEMENTI["RAD1ELEMENTINAZIV"]); } this._Gxremove = this.rowRAD1MELEMENTI.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowRAD1MELEMENTI = (RAD1MELEMENTIDataSet.RAD1MELEMENTIRow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1MELEMENTI); } }
public virtual bool FillByRAD1ELEMENTIID(RAD1MELEMENTIDataSet dataSet, int rAD1ELEMENTIID) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.RAD1MELEMENTISet = dataSet; this.rowRAD1MELEMENTI = this.RAD1MELEMENTISet.RAD1MELEMENTI.NewRAD1MELEMENTIRow(); this.rowRAD1MELEMENTI.RAD1ELEMENTIID = rAD1ELEMENTIID; try { this.LoadByRAD1ELEMENTIID(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound282 == 0) { return(false); } return(true); }
public RAD1MELEMENTIEventArgs(RAD1MELEMENTIDataSet.RAD1MELEMENTIRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.RAD1MELEMENTISet = (RAD1MELEMENTIDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.RAD1MELEMENTISet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.RAD1MELEMENTISet.RAD1MELEMENTI.GetEnumerator(); while (enumerator.MoveNext()) { RAD1MELEMENTIDataSet.RAD1MELEMENTIRow current = (RAD1MELEMENTIDataSet.RAD1MELEMENTIRow)enumerator.Current; this.rowRAD1MELEMENTI = current; if (Helpers.IsRowChanged(this.rowRAD1MELEMENTI)) { this.ReadRowRad1melementi(); if (this.rowRAD1MELEMENTI.RowState == DataRowState.Added) { this.InsertRad1melementi(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateRad1melementi(); } } } } 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); }
private void CreateNewRowRad1melementi() { this.rowRAD1MELEMENTI = this.RAD1MELEMENTISet.RAD1MELEMENTI.NewRAD1MELEMENTIRow(); }
public RAD1MELEMENTIRowChangeEvent(RAD1MELEMENTIDataSet.RAD1MELEMENTIRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveRAD1MELEMENTIRow(RAD1MELEMENTIDataSet.RAD1MELEMENTIRow row) { this.Rows.Remove(row); }
public void AddRAD1MELEMENTIRow(RAD1MELEMENTIDataSet.RAD1MELEMENTIRow row) { this.Rows.Add(row); }