private void LoadDataGoobracun(int maxRows) { int num = 0; if (this.RcdFound257 != 0) { this.ScanLoadGoobracun(); while ((this.RcdFound257 != 0) && (num != maxRows)) { num++; this.LoadRowGoobracun(); this.CreateNewRowGoobracun(); this.ScanNextGoobracun(); } } if (num > 0) { this.RcdFound257 = 1; } this.ScanEndGoobracun(); if (this.GOOBRACUNSet.GOOBRACUN.Count > 0) { this.rowGOOBRACUN = this.GOOBRACUNSet.GOOBRACUN[this.GOOBRACUNSet.GOOBRACUN.Count - 1]; } }
public GOOBRACUNDataSet.GOOBRACUNRow AddGOOBRACUNRow(int iDRADNIK, decimal oLAKSICEISKORISTIVO, decimal oDBICIISKORISTIVO) { GOOBRACUNDataSet.GOOBRACUNRow row = (GOOBRACUNDataSet.GOOBRACUNRow) this.NewRow(); row["IDRADNIK"] = iDRADNIK; row["OLAKSICEISKORISTIVO"] = oLAKSICEISKORISTIVO; row["ODBICIISKORISTIVO"] = oDBICIISKORISTIVO; this.Rows.Add(row); return(row); }
private void LoadByIDRADNIK(int startRow, int maxRows) { bool enforceConstraints = this.GOOBRACUNSet.EnforceConstraints; this.GOOBRACUNSet.GOOBRACUN.BeginLoadData(); this.ScanByIDRADNIK(startRow, maxRows); this.GOOBRACUNSet.GOOBRACUN.EndLoadData(); this.GOOBRACUNSet.EnforceConstraints = enforceConstraints; if (this.GOOBRACUNSet.GOOBRACUN.Count > 0) { this.rowGOOBRACUN = this.GOOBRACUNSet.GOOBRACUN[this.GOOBRACUNSet.GOOBRACUN.Count - 1]; } }
public virtual int FillPageByIDRADNIK(GOOBRACUNDataSet dataSet, int iDRADNIK, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.GOOBRACUNSet = dataSet; this.rowGOOBRACUN = this.GOOBRACUNSet.GOOBRACUN.NewGOOBRACUNRow(); this.rowGOOBRACUN.IDRADNIK = iDRADNIK; try { this.LoadByIDRADNIK(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
private void ReadRowGoobracun() { this.Gx_mode = Mode.FromRowState(this.rowGOOBRACUN.RowState); if (this.rowGOOBRACUN.RowState != DataRowState.Added) { this.m__OLAKSICEISKORISTIVOOriginal = RuntimeHelpers.GetObjectValue(this.rowGOOBRACUN["OLAKSICEISKORISTIVO", DataRowVersion.Original]); this.m__ODBICIISKORISTIVOOriginal = RuntimeHelpers.GetObjectValue(this.rowGOOBRACUN["ODBICIISKORISTIVO", DataRowVersion.Original]); this.m__IDRADNIKOriginal = RuntimeHelpers.GetObjectValue(this.rowGOOBRACUN["IDRADNIK", DataRowVersion.Original]); } else { this.m__OLAKSICEISKORISTIVOOriginal = RuntimeHelpers.GetObjectValue(this.rowGOOBRACUN["OLAKSICEISKORISTIVO"]); this.m__ODBICIISKORISTIVOOriginal = RuntimeHelpers.GetObjectValue(this.rowGOOBRACUN["ODBICIISKORISTIVO"]); this.m__IDRADNIKOriginal = RuntimeHelpers.GetObjectValue(this.rowGOOBRACUN["IDRADNIK"]); } this._Gxremove = this.rowGOOBRACUN.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowGOOBRACUN = (GOOBRACUNDataSet.GOOBRACUNRow)DataSetUtil.CloneOriginalDataRow(this.rowGOOBRACUN); } }
public virtual bool FillByIDGOOBRACUN(GOOBRACUNDataSet dataSet, int iDGOOBRACUN) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.GOOBRACUNSet = dataSet; this.rowGOOBRACUN = this.GOOBRACUNSet.GOOBRACUN.NewGOOBRACUNRow(); this.rowGOOBRACUN.IDGOOBRACUN = iDGOOBRACUN; try { this.LoadByIDGOOBRACUN(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound257 == 0) { return(false); } return(true); }
public GOOBRACUNEventArgs(GOOBRACUNDataSet.GOOBRACUNRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.GOOBRACUNSet = (GOOBRACUNDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.GOOBRACUNSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.GOOBRACUNSet.GOOBRACUN.GetEnumerator(); while (enumerator.MoveNext()) { GOOBRACUNDataSet.GOOBRACUNRow current = (GOOBRACUNDataSet.GOOBRACUNRow)enumerator.Current; this.rowGOOBRACUN = current; if (Helpers.IsRowChanged(this.rowGOOBRACUN)) { this.ReadRowGoobracun(); if (this.rowGOOBRACUN.RowState == DataRowState.Added) { this.InsertGoobracun(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateGoobracun(); } } } } 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 CreateNewRowGoobracun() { this.rowGOOBRACUN = this.GOOBRACUNSet.GOOBRACUN.NewGOOBRACUNRow(); }
public GOOBRACUNRowChangeEvent(GOOBRACUNDataSet.GOOBRACUNRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveGOOBRACUNRow(GOOBRACUNDataSet.GOOBRACUNRow row) { this.Rows.Remove(row); }
public void AddGOOBRACUNRow(GOOBRACUNDataSet.GOOBRACUNRow row) { this.Rows.Add(row); }