private void LoadDataBlgvrstedok(int maxRows) { int num = 0; if (this.RcdFound183 != 0) { this.ScanLoadBlgvrstedok(); while ((this.RcdFound183 != 0) && (num != maxRows)) { num++; this.LoadRowBlgvrstedok(); this.CreateNewRowBlgvrstedok(); this.ScanNextBlgvrstedok(); } } if (num > 0) { this.RcdFound183 = 1; } this.ScanEndBlgvrstedok(); if (this.BLGVRSTEDOKSet.BLGVRSTEDOK.Count > 0) { this.rowBLGVRSTEDOK = this.BLGVRSTEDOKSet.BLGVRSTEDOK[this.BLGVRSTEDOKSet.BLGVRSTEDOK.Count - 1]; } }
public BLGVRSTEDOKDataSet.BLGVRSTEDOKRow AddBLGVRSTEDOKRow(int iDBLGVRSTEDOK, string nAZIVVRSTEDOK) { BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row = (BLGVRSTEDOKDataSet.BLGVRSTEDOKRow) this.NewRow(); row["IDBLGVRSTEDOK"] = iDBLGVRSTEDOK; row["NAZIVVRSTEDOK"] = nAZIVVRSTEDOK; this.Rows.Add(row); return(row); }
private void LoadByIDBLGVRSTEDOK(int startRow, int maxRows) { bool enforceConstraints = this.BLGVRSTEDOKSet.EnforceConstraints; this.BLGVRSTEDOKSet.BLGVRSTEDOK.BeginLoadData(); this.ScanByIDBLGVRSTEDOK(startRow, maxRows); this.BLGVRSTEDOKSet.BLGVRSTEDOK.EndLoadData(); this.BLGVRSTEDOKSet.EnforceConstraints = enforceConstraints; if (this.BLGVRSTEDOKSet.BLGVRSTEDOK.Count > 0) { this.rowBLGVRSTEDOK = this.BLGVRSTEDOKSet.BLGVRSTEDOK[this.BLGVRSTEDOKSet.BLGVRSTEDOK.Count - 1]; } }
private void ReadRowBlgvrstedok() { this.Gx_mode = Mode.FromRowState(this.rowBLGVRSTEDOK.RowState); if (this.rowBLGVRSTEDOK.RowState != DataRowState.Added) { this.m__NAZIVVRSTEDOKOriginal = RuntimeHelpers.GetObjectValue(this.rowBLGVRSTEDOK["NAZIVVRSTEDOK", DataRowVersion.Original]); } else { this.m__NAZIVVRSTEDOKOriginal = RuntimeHelpers.GetObjectValue(this.rowBLGVRSTEDOK["NAZIVVRSTEDOK"]); } this._Gxremove = this.rowBLGVRSTEDOK.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowBLGVRSTEDOK = (BLGVRSTEDOKDataSet.BLGVRSTEDOKRow)DataSetUtil.CloneOriginalDataRow(this.rowBLGVRSTEDOK); } }
public virtual bool FillByIDBLGVRSTEDOK(BLGVRSTEDOKDataSet dataSet, int iDBLGVRSTEDOK) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.BLGVRSTEDOKSet = dataSet; this.rowBLGVRSTEDOK = this.BLGVRSTEDOKSet.BLGVRSTEDOK.NewBLGVRSTEDOKRow(); this.rowBLGVRSTEDOK.IDBLGVRSTEDOK = iDBLGVRSTEDOK; try { this.LoadByIDBLGVRSTEDOK(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound183 == 0) { return(false); } return(true); }
public BLGVRSTEDOKEventArgs(BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.BLGVRSTEDOKSet = (BLGVRSTEDOKDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.BLGVRSTEDOKSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.BLGVRSTEDOKSet.BLGVRSTEDOK.GetEnumerator(); while (enumerator.MoveNext()) { BLGVRSTEDOKDataSet.BLGVRSTEDOKRow current = (BLGVRSTEDOKDataSet.BLGVRSTEDOKRow)enumerator.Current; this.rowBLGVRSTEDOK = current; if (Helpers.IsRowChanged(this.rowBLGVRSTEDOK)) { this.ReadRowBlgvrstedok(); if (this.rowBLGVRSTEDOK.RowState == DataRowState.Added) { this.InsertBlgvrstedok(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateBlgvrstedok(); } } } } 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 CreateNewRowBlgvrstedok() { this.rowBLGVRSTEDOK = this.BLGVRSTEDOKSet.BLGVRSTEDOK.NewBLGVRSTEDOKRow(); }
public BLGVRSTEDOKRowChangeEvent(BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveBLGVRSTEDOKRow(BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row) { this.Rows.Remove(row); }
public void AddBLGVRSTEDOKRow(BLGVRSTEDOKDataSet.BLGVRSTEDOKRow row) { this.Rows.Add(row); }