private void LoadDataRad1spreme(int maxRows) { int num = 0; if (this.RcdFound280 != 0) { this.ScanLoadRad1spreme(); while ((this.RcdFound280 != 0) && (num != maxRows)) { num++; this.LoadRowRad1spreme(); this.CreateNewRowRad1spreme(); this.ScanNextRad1spreme(); } } if (num > 0) { this.RcdFound280 = 1; } this.ScanEndRad1spreme(); if (this.RAD1SPREMESet.RAD1SPREME.Count > 0) { this.rowRAD1SPREME = this.RAD1SPREMESet.RAD1SPREME[this.RAD1SPREMESet.RAD1SPREME.Count - 1]; } }
public RAD1SPREMEDataSet.RAD1SPREMERow AddRAD1SPREMERow(int rAD1IDSPREME, string rAD1NAZIVSPREME) { RAD1SPREMEDataSet.RAD1SPREMERow row = (RAD1SPREMEDataSet.RAD1SPREMERow) this.NewRow(); row["RAD1IDSPREME"] = rAD1IDSPREME; row["RAD1NAZIVSPREME"] = rAD1NAZIVSPREME; this.Rows.Add(row); return(row); }
private void LoadByRAD1IDSPREME(int startRow, int maxRows) { bool enforceConstraints = this.RAD1SPREMESet.EnforceConstraints; this.RAD1SPREMESet.RAD1SPREME.BeginLoadData(); this.ScanByRAD1IDSPREME(startRow, maxRows); this.RAD1SPREMESet.RAD1SPREME.EndLoadData(); this.RAD1SPREMESet.EnforceConstraints = enforceConstraints; if (this.RAD1SPREMESet.RAD1SPREME.Count > 0) { this.rowRAD1SPREME = this.RAD1SPREMESet.RAD1SPREME[this.RAD1SPREMESet.RAD1SPREME.Count - 1]; } }
private void ReadRowRad1spreme() { this.Gx_mode = Mode.FromRowState(this.rowRAD1SPREME.RowState); if (this.rowRAD1SPREME.RowState != DataRowState.Added) { this.m__RAD1NAZIVSPREMEOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1SPREME["RAD1NAZIVSPREME", DataRowVersion.Original]); } else { this.m__RAD1NAZIVSPREMEOriginal = RuntimeHelpers.GetObjectValue(this.rowRAD1SPREME["RAD1NAZIVSPREME"]); } this._Gxremove = this.rowRAD1SPREME.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowRAD1SPREME = (RAD1SPREMEDataSet.RAD1SPREMERow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1SPREME); } }
public virtual bool FillByRAD1IDSPREME(RAD1SPREMEDataSet dataSet, int rAD1IDSPREME) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.RAD1SPREMESet = dataSet; this.rowRAD1SPREME = this.RAD1SPREMESet.RAD1SPREME.NewRAD1SPREMERow(); this.rowRAD1SPREME.RAD1IDSPREME = rAD1IDSPREME; try { this.LoadByRAD1IDSPREME(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound280 == 0) { return(false); } return(true); }
public RAD1SPREMEEventArgs(RAD1SPREMEDataSet.RAD1SPREMERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.RAD1SPREMESet = (RAD1SPREMEDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.RAD1SPREMESet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.RAD1SPREMESet.RAD1SPREME.GetEnumerator(); while (enumerator.MoveNext()) { RAD1SPREMEDataSet.RAD1SPREMERow current = (RAD1SPREMEDataSet.RAD1SPREMERow)enumerator.Current; this.rowRAD1SPREME = current; if (Helpers.IsRowChanged(this.rowRAD1SPREME)) { this.ReadRowRad1spreme(); if (this.rowRAD1SPREME.RowState == DataRowState.Added) { this.InsertRad1spreme(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateRad1spreme(); } } } } 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 CreateNewRowRad1spreme() { this.rowRAD1SPREME = this.RAD1SPREMESet.RAD1SPREME.NewRAD1SPREMERow(); }
public RAD1SPREMERowChangeEvent(RAD1SPREMEDataSet.RAD1SPREMERow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveRAD1SPREMERow(RAD1SPREMEDataSet.RAD1SPREMERow row) { this.Rows.Remove(row); }
public void AddRAD1SPREMERow(RAD1SPREMEDataSet.RAD1SPREMERow row) { this.Rows.Add(row); }