private void LoadDataVrstadoprinos(int maxRows) { int num = 0; if (this.RcdFound41 != 0) { this.ScanLoadVrstadoprinos(); while ((this.RcdFound41 != 0) && (num != maxRows)) { num++; this.LoadRowVrstadoprinos(); this.CreateNewRowVrstadoprinos(); this.ScanNextVrstadoprinos(); } } if (num > 0) { this.RcdFound41 = 1; } this.ScanEndVrstadoprinos(); if (this.VRSTADOPRINOSSet.VRSTADOPRINOS.Count > 0) { this.rowVRSTADOPRINOS = this.VRSTADOPRINOSSet.VRSTADOPRINOS[this.VRSTADOPRINOSSet.VRSTADOPRINOS.Count - 1]; } }
public VRSTADOPRINOSDataSet.VRSTADOPRINOSRow AddVRSTADOPRINOSRow(int iDVRSTADOPRINOS, string nAZIVVRSTADOPRINOS) { VRSTADOPRINOSDataSet.VRSTADOPRINOSRow row = (VRSTADOPRINOSDataSet.VRSTADOPRINOSRow) this.NewRow(); row["IDVRSTADOPRINOS"] = iDVRSTADOPRINOS; row["NAZIVVRSTADOPRINOS"] = nAZIVVRSTADOPRINOS; this.Rows.Add(row); return(row); }
private void LoadByIDVRSTADOPRINOS(int startRow, int maxRows) { bool enforceConstraints = this.VRSTADOPRINOSSet.EnforceConstraints; this.VRSTADOPRINOSSet.VRSTADOPRINOS.BeginLoadData(); this.ScanByIDVRSTADOPRINOS(startRow, maxRows); this.VRSTADOPRINOSSet.VRSTADOPRINOS.EndLoadData(); this.VRSTADOPRINOSSet.EnforceConstraints = enforceConstraints; if (this.VRSTADOPRINOSSet.VRSTADOPRINOS.Count > 0) { this.rowVRSTADOPRINOS = this.VRSTADOPRINOSSet.VRSTADOPRINOS[this.VRSTADOPRINOSSet.VRSTADOPRINOS.Count - 1]; } }
private void ReadRowVrstadoprinos() { this.Gx_mode = Mode.FromRowState(this.rowVRSTADOPRINOS.RowState); if (this.rowVRSTADOPRINOS.RowState != DataRowState.Added) { this.m__NAZIVVRSTADOPRINOSOriginal = RuntimeHelpers.GetObjectValue(this.rowVRSTADOPRINOS["NAZIVVRSTADOPRINOS", DataRowVersion.Original]); } else { this.m__NAZIVVRSTADOPRINOSOriginal = RuntimeHelpers.GetObjectValue(this.rowVRSTADOPRINOS["NAZIVVRSTADOPRINOS"]); } this._Gxremove = this.rowVRSTADOPRINOS.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowVRSTADOPRINOS = (VRSTADOPRINOSDataSet.VRSTADOPRINOSRow)DataSetUtil.CloneOriginalDataRow(this.rowVRSTADOPRINOS); } }
public virtual bool FillByIDVRSTADOPRINOS(VRSTADOPRINOSDataSet dataSet, int iDVRSTADOPRINOS) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.VRSTADOPRINOSSet = dataSet; this.rowVRSTADOPRINOS = this.VRSTADOPRINOSSet.VRSTADOPRINOS.NewVRSTADOPRINOSRow(); this.rowVRSTADOPRINOS.IDVRSTADOPRINOS = iDVRSTADOPRINOS; try { this.LoadByIDVRSTADOPRINOS(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound41 == 0) { return(false); } return(true); }
public VRSTADOPRINOSRowChangeEvent(VRSTADOPRINOSDataSet.VRSTADOPRINOSRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveVRSTADOPRINOSRow(VRSTADOPRINOSDataSet.VRSTADOPRINOSRow row) { this.Rows.Remove(row); }
public void AddVRSTADOPRINOSRow(VRSTADOPRINOSDataSet.VRSTADOPRINOSRow row) { this.Rows.Add(row); }
public VRSTADOPRINOSEventArgs(VRSTADOPRINOSDataSet.VRSTADOPRINOSRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.VRSTADOPRINOSSet = (VRSTADOPRINOSDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.VRSTADOPRINOSSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.VRSTADOPRINOSSet.VRSTADOPRINOS.GetEnumerator(); while (enumerator.MoveNext()) { VRSTADOPRINOSDataSet.VRSTADOPRINOSRow current = (VRSTADOPRINOSDataSet.VRSTADOPRINOSRow)enumerator.Current; this.rowVRSTADOPRINOS = current; if (Helpers.IsRowChanged(this.rowVRSTADOPRINOS)) { this.ReadRowVrstadoprinos(); if (this.rowVRSTADOPRINOS.RowState == DataRowState.Added) { this.InsertVrstadoprinos(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateVrstadoprinos(); } } } } 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 CreateNewRowVrstadoprinos() { this.rowVRSTADOPRINOS = this.VRSTADOPRINOSSet.VRSTADOPRINOS.NewVRSTADOPRINOSRow(); }