private void LoadDataDdvrsteposla(int maxRows) { int num = 0; if (this.RcdFound168 != 0) { this.ScanLoadDdvrsteposla(); while ((this.RcdFound168 != 0) && (num != maxRows)) { num++; this.LoadRowDdvrsteposla(); this.CreateNewRowDdvrsteposla(); this.ScanNextDdvrsteposla(); } } if (num > 0) { this.RcdFound168 = 1; } this.ScanEndDdvrsteposla(); if (this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count > 0) { this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA[this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count - 1]; } }
public DDVRSTEPOSLADataSet.DDVRSTEPOSLARow AddDDVRSTEPOSLARow(int dDIDVRSTAPOSLA, string dDNAZIVVRSTAPOSLA) { DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row = (DDVRSTEPOSLADataSet.DDVRSTEPOSLARow) this.NewRow(); row["DDIDVRSTAPOSLA"] = dDIDVRSTAPOSLA; row["DDNAZIVVRSTAPOSLA"] = dDNAZIVVRSTAPOSLA; this.Rows.Add(row); return(row); }
private void LoadByDDIDVRSTAPOSLA(int startRow, int maxRows) { bool enforceConstraints = this.DDVRSTEPOSLASet.EnforceConstraints; this.DDVRSTEPOSLASet.DDVRSTEPOSLA.BeginLoadData(); this.ScanByDDIDVRSTAPOSLA(startRow, maxRows); this.DDVRSTEPOSLASet.DDVRSTEPOSLA.EndLoadData(); this.DDVRSTEPOSLASet.EnforceConstraints = enforceConstraints; if (this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count > 0) { this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA[this.DDVRSTEPOSLASet.DDVRSTEPOSLA.Count - 1]; } }
private void ReadRowDdvrsteposla() { this.Gx_mode = Mode.FromRowState(this.rowDDVRSTEPOSLA.RowState); if (this.rowDDVRSTEPOSLA.RowState != DataRowState.Added) { this.m__DDNAZIVVRSTAPOSLAOriginal = RuntimeHelpers.GetObjectValue(this.rowDDVRSTEPOSLA["DDNAZIVVRSTAPOSLA", DataRowVersion.Original]); } else { this.m__DDNAZIVVRSTAPOSLAOriginal = RuntimeHelpers.GetObjectValue(this.rowDDVRSTEPOSLA["DDNAZIVVRSTAPOSLA"]); } this._Gxremove = this.rowDDVRSTEPOSLA.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowDDVRSTEPOSLA = (DDVRSTEPOSLADataSet.DDVRSTEPOSLARow)DataSetUtil.CloneOriginalDataRow(this.rowDDVRSTEPOSLA); } }
public virtual bool FillByDDIDVRSTAPOSLA(DDVRSTEPOSLADataSet dataSet, int dDIDVRSTAPOSLA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.DDVRSTEPOSLASet = dataSet; this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA.NewDDVRSTEPOSLARow(); this.rowDDVRSTEPOSLA.DDIDVRSTAPOSLA = dDIDVRSTAPOSLA; try { this.LoadByDDIDVRSTAPOSLA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound168 == 0) { return(false); } return(true); }
public DDVRSTEPOSLAEventArgs(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.DDVRSTEPOSLASet = (DDVRSTEPOSLADataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.DDVRSTEPOSLASet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.DDVRSTEPOSLASet.DDVRSTEPOSLA.GetEnumerator(); while (enumerator.MoveNext()) { DDVRSTEPOSLADataSet.DDVRSTEPOSLARow current = (DDVRSTEPOSLADataSet.DDVRSTEPOSLARow)enumerator.Current; this.rowDDVRSTEPOSLA = current; if (Helpers.IsRowChanged(this.rowDDVRSTEPOSLA)) { this.ReadRowDdvrsteposla(); if (this.rowDDVRSTEPOSLA.RowState == DataRowState.Added) { this.InsertDdvrsteposla(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateDdvrsteposla(); } } } } 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 CreateNewRowDdvrsteposla() { this.rowDDVRSTEPOSLA = this.DDVRSTEPOSLASet.DDVRSTEPOSLA.NewDDVRSTEPOSLARow(); }
public DDVRSTEPOSLARowChangeEvent(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveDDVRSTEPOSLARow(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row) { this.Rows.Remove(row); }
public void AddDDVRSTEPOSLARow(DDVRSTEPOSLADataSet.DDVRSTEPOSLARow row) { this.Rows.Add(row); }