private void LoadDataTipolaksice(int maxRows) { int num = 0; if (this.RcdFound37 != 0) { this.ScanLoadTipolaksice(); while ((this.RcdFound37 != 0) && (num != maxRows)) { num++; this.LoadRowTipolaksice(); this.CreateNewRowTipolaksice(); this.ScanNextTipolaksice(); } } if (num > 0) { this.RcdFound37 = 1; } this.ScanEndTipolaksice(); if (this.TIPOLAKSICESet.TIPOLAKSICE.Count > 0) { this.rowTIPOLAKSICE = this.TIPOLAKSICESet.TIPOLAKSICE[this.TIPOLAKSICESet.TIPOLAKSICE.Count - 1]; } }
public TIPOLAKSICEDataSet.TIPOLAKSICERow AddTIPOLAKSICERow(int iDTIPOLAKSICE, string nAZIVTIPOLAKSICE) { TIPOLAKSICEDataSet.TIPOLAKSICERow row = (TIPOLAKSICEDataSet.TIPOLAKSICERow) this.NewRow(); row["IDTIPOLAKSICE"] = iDTIPOLAKSICE; row["NAZIVTIPOLAKSICE"] = nAZIVTIPOLAKSICE; this.Rows.Add(row); return(row); }
private void LoadByIDTIPOLAKSICE(int startRow, int maxRows) { bool enforceConstraints = this.TIPOLAKSICESet.EnforceConstraints; this.TIPOLAKSICESet.TIPOLAKSICE.BeginLoadData(); this.ScanByIDTIPOLAKSICE(startRow, maxRows); this.TIPOLAKSICESet.TIPOLAKSICE.EndLoadData(); this.TIPOLAKSICESet.EnforceConstraints = enforceConstraints; if (this.TIPOLAKSICESet.TIPOLAKSICE.Count > 0) { this.rowTIPOLAKSICE = this.TIPOLAKSICESet.TIPOLAKSICE[this.TIPOLAKSICESet.TIPOLAKSICE.Count - 1]; } }
private void ReadRowTipolaksice() { this.Gx_mode = Mode.FromRowState(this.rowTIPOLAKSICE.RowState); if (this.rowTIPOLAKSICE.RowState != DataRowState.Added) { this.m__NAZIVTIPOLAKSICEOriginal = RuntimeHelpers.GetObjectValue(this.rowTIPOLAKSICE["NAZIVTIPOLAKSICE", DataRowVersion.Original]); } else { this.m__NAZIVTIPOLAKSICEOriginal = RuntimeHelpers.GetObjectValue(this.rowTIPOLAKSICE["NAZIVTIPOLAKSICE"]); } this._Gxremove = this.rowTIPOLAKSICE.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowTIPOLAKSICE = (TIPOLAKSICEDataSet.TIPOLAKSICERow)DataSetUtil.CloneOriginalDataRow(this.rowTIPOLAKSICE); } }
public virtual bool FillByIDTIPOLAKSICE(TIPOLAKSICEDataSet dataSet, int iDTIPOLAKSICE) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.TIPOLAKSICESet = dataSet; this.rowTIPOLAKSICE = this.TIPOLAKSICESet.TIPOLAKSICE.NewTIPOLAKSICERow(); this.rowTIPOLAKSICE.IDTIPOLAKSICE = iDTIPOLAKSICE; try { this.LoadByIDTIPOLAKSICE(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound37 == 0) { return(false); } return(true); }
public TIPOLAKSICEEventArgs(TIPOLAKSICEDataSet.TIPOLAKSICERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.TIPOLAKSICESet = (TIPOLAKSICEDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.TIPOLAKSICESet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.TIPOLAKSICESet.TIPOLAKSICE.GetEnumerator(); while (enumerator.MoveNext()) { TIPOLAKSICEDataSet.TIPOLAKSICERow current = (TIPOLAKSICEDataSet.TIPOLAKSICERow)enumerator.Current; this.rowTIPOLAKSICE = current; if (Helpers.IsRowChanged(this.rowTIPOLAKSICE)) { this.ReadRowTipolaksice(); if (this.rowTIPOLAKSICE.RowState == DataRowState.Added) { this.InsertTipolaksice(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateTipolaksice(); } } } } 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 CreateNewRowTipolaksice() { this.rowTIPOLAKSICE = this.TIPOLAKSICESet.TIPOLAKSICE.NewTIPOLAKSICERow(); }
public TIPOLAKSICERowChangeEvent(TIPOLAKSICEDataSet.TIPOLAKSICERow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveTIPOLAKSICERow(TIPOLAKSICEDataSet.TIPOLAKSICERow row) { this.Rows.Remove(row); }
public void AddTIPOLAKSICERow(TIPOLAKSICEDataSet.TIPOLAKSICERow row) { this.Rows.Add(row); }