private void LoadDataRad1spol(int maxRows) { int num = 0; if (this.RcdFound283 != 0) { this.ScanLoadRad1spol(); while ((this.RcdFound283 != 0) && (num != maxRows)) { num++; this.LoadRowRad1spol(); this.CreateNewRowRad1spol(); this.ScanNextRad1spol(); } } if (num > 0) { this.RcdFound283 = 1; } this.ScanEndRad1spol(); if (this.RAD1SPOLSet.RAD1SPOL.Count > 0) { this.rowRAD1SPOL = this.RAD1SPOLSet.RAD1SPOL[this.RAD1SPOLSet.RAD1SPOL.Count - 1]; } }
public RAD1SPOLDataSet.RAD1SPOLRow AddRAD1SPOLRow(int rAD1SPOLID, string rAD1SPOLNAZIV) { RAD1SPOLDataSet.RAD1SPOLRow row = (RAD1SPOLDataSet.RAD1SPOLRow) this.NewRow(); row["RAD1SPOLID"] = rAD1SPOLID; row["RAD1SPOLNAZIV"] = rAD1SPOLNAZIV; this.Rows.Add(row); return(row); }
private void LoadByRAD1SPOLID(int startRow, int maxRows) { bool enforceConstraints = this.RAD1SPOLSet.EnforceConstraints; this.RAD1SPOLSet.RAD1SPOL.BeginLoadData(); this.ScanByRAD1SPOLID(startRow, maxRows); this.RAD1SPOLSet.RAD1SPOL.EndLoadData(); this.RAD1SPOLSet.EnforceConstraints = enforceConstraints; if (this.RAD1SPOLSet.RAD1SPOL.Count > 0) { this.rowRAD1SPOL = this.RAD1SPOLSet.RAD1SPOL[this.RAD1SPOLSet.RAD1SPOL.Count - 1]; } }
private void ReadRowRad1spol() { this.Gx_mode = Mode.FromRowState(this.rowRAD1SPOL.RowState); if (this.rowRAD1SPOL.RowState != DataRowState.Added) { this.m__RAD1SPOLNAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1SPOL["RAD1SPOLNAZIV", DataRowVersion.Original]); } else { this.m__RAD1SPOLNAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1SPOL["RAD1SPOLNAZIV"]); } this._Gxremove = this.rowRAD1SPOL.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowRAD1SPOL = (RAD1SPOLDataSet.RAD1SPOLRow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1SPOL); } }
public virtual bool FillByRAD1SPOLID(RAD1SPOLDataSet dataSet, int rAD1SPOLID) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.RAD1SPOLSet = dataSet; this.rowRAD1SPOL = this.RAD1SPOLSet.RAD1SPOL.NewRAD1SPOLRow(); this.rowRAD1SPOL.RAD1SPOLID = rAD1SPOLID; try { this.LoadByRAD1SPOLID(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound283 == 0) { return(false); } return(true); }
public RAD1SPOLEventArgs(RAD1SPOLDataSet.RAD1SPOLRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.RAD1SPOLSet = (RAD1SPOLDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.RAD1SPOLSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.RAD1SPOLSet.RAD1SPOL.GetEnumerator(); while (enumerator.MoveNext()) { RAD1SPOLDataSet.RAD1SPOLRow current = (RAD1SPOLDataSet.RAD1SPOLRow)enumerator.Current; this.rowRAD1SPOL = current; if (Helpers.IsRowChanged(this.rowRAD1SPOL)) { this.ReadRowRad1spol(); if (this.rowRAD1SPOL.RowState == DataRowState.Added) { this.InsertRad1spol(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateRad1spol(); } } } } 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 CreateNewRowRad1spol() { this.rowRAD1SPOL = this.RAD1SPOLSet.RAD1SPOL.NewRAD1SPOLRow(); }
public RAD1SPOLRowChangeEvent(RAD1SPOLDataSet.RAD1SPOLRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveRAD1SPOLRow(RAD1SPOLDataSet.RAD1SPOLRow row) { this.Rows.Remove(row); }
public void AddRAD1SPOLRow(RAD1SPOLDataSet.RAD1SPOLRow row) { this.Rows.Add(row); }