private void LoadDataVrstaelement(int maxRows) { int num = 0; if (this.RcdFound55 != 0) { this.ScanLoadVrstaelement(); while ((this.RcdFound55 != 0) && (num != maxRows)) { num++; this.LoadRowVrstaelement(); this.CreateNewRowVrstaelement(); this.ScanNextVrstaelement(); } } if (num > 0) { this.RcdFound55 = 1; } this.ScanEndVrstaelement(); if (this.VRSTAELEMENTSet.VRSTAELEMENT.Count > 0) { this.rowVRSTAELEMENT = this.VRSTAELEMENTSet.VRSTAELEMENT[this.VRSTAELEMENTSet.VRSTAELEMENT.Count - 1]; } }
public VRSTAELEMENTDataSet.VRSTAELEMENTRow AddVRSTAELEMENTRow(short iDVRSTAELEMENTA, string nAZIVVRSTAELEMENT) { VRSTAELEMENTDataSet.VRSTAELEMENTRow row = (VRSTAELEMENTDataSet.VRSTAELEMENTRow) this.NewRow(); row["IDVRSTAELEMENTA"] = iDVRSTAELEMENTA; row["NAZIVVRSTAELEMENT"] = nAZIVVRSTAELEMENT; this.Rows.Add(row); return(row); }
private void LoadByIDVRSTAELEMENTA(int startRow, int maxRows) { bool enforceConstraints = this.VRSTAELEMENTSet.EnforceConstraints; this.VRSTAELEMENTSet.VRSTAELEMENT.BeginLoadData(); this.ScanByIDVRSTAELEMENTA(startRow, maxRows); this.VRSTAELEMENTSet.VRSTAELEMENT.EndLoadData(); this.VRSTAELEMENTSet.EnforceConstraints = enforceConstraints; if (this.VRSTAELEMENTSet.VRSTAELEMENT.Count > 0) { this.rowVRSTAELEMENT = this.VRSTAELEMENTSet.VRSTAELEMENT[this.VRSTAELEMENTSet.VRSTAELEMENT.Count - 1]; } }
private void ReadRowVrstaelement() { this.Gx_mode = Mode.FromRowState(this.rowVRSTAELEMENT.RowState); if (this.rowVRSTAELEMENT.RowState != DataRowState.Added) { this.m__NAZIVVRSTAELEMENTOriginal = RuntimeHelpers.GetObjectValue(this.rowVRSTAELEMENT["NAZIVVRSTAELEMENT", DataRowVersion.Original]); } else { this.m__NAZIVVRSTAELEMENTOriginal = RuntimeHelpers.GetObjectValue(this.rowVRSTAELEMENT["NAZIVVRSTAELEMENT"]); } this._Gxremove = this.rowVRSTAELEMENT.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowVRSTAELEMENT = (VRSTAELEMENTDataSet.VRSTAELEMENTRow)DataSetUtil.CloneOriginalDataRow(this.rowVRSTAELEMENT); } }
public virtual bool FillByIDVRSTAELEMENTA(VRSTAELEMENTDataSet dataSet, short iDVRSTAELEMENTA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.VRSTAELEMENTSet = dataSet; this.rowVRSTAELEMENT = this.VRSTAELEMENTSet.VRSTAELEMENT.NewVRSTAELEMENTRow(); this.rowVRSTAELEMENT.IDVRSTAELEMENTA = iDVRSTAELEMENTA; try { this.LoadByIDVRSTAELEMENTA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound55 == 0) { return(false); } return(true); }
public VRSTAELEMENTEventArgs(VRSTAELEMENTDataSet.VRSTAELEMENTRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.VRSTAELEMENTSet = (VRSTAELEMENTDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.VRSTAELEMENTSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.VRSTAELEMENTSet.VRSTAELEMENT.GetEnumerator(); while (enumerator.MoveNext()) { VRSTAELEMENTDataSet.VRSTAELEMENTRow current = (VRSTAELEMENTDataSet.VRSTAELEMENTRow)enumerator.Current; this.rowVRSTAELEMENT = current; if (Helpers.IsRowChanged(this.rowVRSTAELEMENT)) { this.ReadRowVrstaelement(); if (this.rowVRSTAELEMENT.RowState == DataRowState.Added) { this.InsertVrstaelement(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateVrstaelement(); } } } } 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 CreateNewRowVrstaelement() { this.rowVRSTAELEMENT = this.VRSTAELEMENTSet.VRSTAELEMENT.NewVRSTAELEMENTRow(); }
public VRSTAELEMENTRowChangeEvent(VRSTAELEMENTDataSet.VRSTAELEMENTRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveVRSTAELEMENTRow(VRSTAELEMENTDataSet.VRSTAELEMENTRow row) { this.Rows.Remove(row); }
public void AddVRSTAELEMENTRow(VRSTAELEMENTDataSet.VRSTAELEMENTRow row) { this.Rows.Add(row); }