private void LoadDataLokacije(int maxRows) { int num = 0; if (this.RcdFound253 != 0) { this.ScanLoadLokacije(); while ((this.RcdFound253 != 0) && (num != maxRows)) { num++; this.LoadRowLokacije(); this.CreateNewRowLokacije(); this.ScanNextLokacije(); } } if (num > 0) { this.RcdFound253 = 1; } this.ScanEndLokacije(); if (this.LOKACIJESet.LOKACIJE.Count > 0) { this.rowLOKACIJE = this.LOKACIJESet.LOKACIJE[this.LOKACIJESet.LOKACIJE.Count - 1]; } }
public LOKACIJEDataSet.LOKACIJERow AddLOKACIJERow(int iDLOKACIJE, string oPISLOKACIJE) { LOKACIJEDataSet.LOKACIJERow row = (LOKACIJEDataSet.LOKACIJERow) this.NewRow(); row["IDLOKACIJE"] = iDLOKACIJE; row["OPISLOKACIJE"] = oPISLOKACIJE; this.Rows.Add(row); return(row); }
private void LoadByIDLOKACIJE(int startRow, int maxRows) { bool enforceConstraints = this.LOKACIJESet.EnforceConstraints; this.LOKACIJESet.LOKACIJE.BeginLoadData(); this.ScanByIDLOKACIJE(startRow, maxRows); this.LOKACIJESet.LOKACIJE.EndLoadData(); this.LOKACIJESet.EnforceConstraints = enforceConstraints; if (this.LOKACIJESet.LOKACIJE.Count > 0) { this.rowLOKACIJE = this.LOKACIJESet.LOKACIJE[this.LOKACIJESet.LOKACIJE.Count - 1]; } }
private void ReadRowLokacije() { this.Gx_mode = Mode.FromRowState(this.rowLOKACIJE.RowState); if (this.rowLOKACIJE.RowState != DataRowState.Added) { this.m__OPISLOKACIJEOriginal = RuntimeHelpers.GetObjectValue(this.rowLOKACIJE["OPISLOKACIJE", DataRowVersion.Original]); } else { this.m__OPISLOKACIJEOriginal = RuntimeHelpers.GetObjectValue(this.rowLOKACIJE["OPISLOKACIJE"]); } this._Gxremove = this.rowLOKACIJE.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowLOKACIJE = (LOKACIJEDataSet.LOKACIJERow)DataSetUtil.CloneOriginalDataRow(this.rowLOKACIJE); } }
public virtual bool FillByIDLOKACIJE(LOKACIJEDataSet dataSet, int iDLOKACIJE) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.LOKACIJESet = dataSet; this.rowLOKACIJE = this.LOKACIJESet.LOKACIJE.NewLOKACIJERow(); this.rowLOKACIJE.IDLOKACIJE = iDLOKACIJE; try { this.LoadByIDLOKACIJE(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound253 == 0) { return(false); } return(true); }
public LOKACIJEEventArgs(LOKACIJEDataSet.LOKACIJERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.LOKACIJESet = (LOKACIJEDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.LOKACIJESet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.LOKACIJESet.LOKACIJE.GetEnumerator(); while (enumerator.MoveNext()) { LOKACIJEDataSet.LOKACIJERow current = (LOKACIJEDataSet.LOKACIJERow)enumerator.Current; this.rowLOKACIJE = current; if (Helpers.IsRowChanged(this.rowLOKACIJE)) { this.ReadRowLokacije(); if (this.rowLOKACIJE.RowState == DataRowState.Added) { this.InsertLokacije(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateLokacije(); } } } } 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 CreateNewRowLokacije() { this.rowLOKACIJE = this.LOKACIJESet.LOKACIJE.NewLOKACIJERow(); }
public LOKACIJERowChangeEvent(LOKACIJEDataSet.LOKACIJERow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveLOKACIJERow(LOKACIJEDataSet.LOKACIJERow row) { this.Rows.Remove(row); }
public void AddLOKACIJERow(LOKACIJEDataSet.LOKACIJERow row) { this.Rows.Add(row); }