private void LoadDataTitula(int maxRows) { int num = 0; if (this.RcdFound38 != 0) { this.ScanLoadTitula(); while ((this.RcdFound38 != 0) && (num != maxRows)) { num++; this.LoadRowTitula(); this.CreateNewRowTitula(); this.ScanNextTitula(); } } if (num > 0) { this.RcdFound38 = 1; } this.ScanEndTitula(); if (this.TITULASet.TITULA.Count > 0) { this.rowTITULA = this.TITULASet.TITULA[this.TITULASet.TITULA.Count - 1]; } }
public TITULADataSet.TITULARow AddTITULARow(int iDTITULA, string nAZIVTITULA) { TITULADataSet.TITULARow row = (TITULADataSet.TITULARow) this.NewRow(); row["IDTITULA"] = iDTITULA; row["NAZIVTITULA"] = nAZIVTITULA; this.Rows.Add(row); return(row); }
private void LoadByIDTITULA(int startRow, int maxRows) { bool enforceConstraints = this.TITULASet.EnforceConstraints; this.TITULASet.TITULA.BeginLoadData(); this.ScanByIDTITULA(startRow, maxRows); this.TITULASet.TITULA.EndLoadData(); this.TITULASet.EnforceConstraints = enforceConstraints; if (this.TITULASet.TITULA.Count > 0) { this.rowTITULA = this.TITULASet.TITULA[this.TITULASet.TITULA.Count - 1]; } }
private void ReadRowTitula() { this.Gx_mode = Mode.FromRowState(this.rowTITULA.RowState); if (this.rowTITULA.RowState != DataRowState.Added) { this.m__NAZIVTITULAOriginal = RuntimeHelpers.GetObjectValue(this.rowTITULA["NAZIVTITULA", DataRowVersion.Original]); } else { this.m__NAZIVTITULAOriginal = RuntimeHelpers.GetObjectValue(this.rowTITULA["NAZIVTITULA"]); } this._Gxremove = this.rowTITULA.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowTITULA = (TITULADataSet.TITULARow)DataSetUtil.CloneOriginalDataRow(this.rowTITULA); } }
public virtual bool FillByIDTITULA(TITULADataSet dataSet, int iDTITULA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.TITULASet = dataSet; this.rowTITULA = this.TITULASet.TITULA.NewTITULARow(); this.rowTITULA.IDTITULA = iDTITULA; try { this.LoadByIDTITULA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound38 == 0) { return(false); } return(true); }
public TITULAEventArgs(TITULADataSet.TITULARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.TITULASet = (TITULADataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.TITULASet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.TITULASet.TITULA.GetEnumerator(); while (enumerator.MoveNext()) { TITULADataSet.TITULARow current = (TITULADataSet.TITULARow)enumerator.Current; this.rowTITULA = current; if (Helpers.IsRowChanged(this.rowTITULA)) { this.ReadRowTitula(); if (this.rowTITULA.RowState == DataRowState.Added) { this.InsertTitula(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateTitula(); } } } } 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 CreateNewRowTitula() { this.rowTITULA = this.TITULASet.TITULA.NewTITULARow(); }
public TITULARowChangeEvent(TITULADataSet.TITULARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveTITULARow(TITULADataSet.TITULARow row) { this.Rows.Remove(row); }
public void AddTITULARow(TITULADataSet.TITULARow row) { this.Rows.Add(row); }