private void LoadDataUravrstaiznosa(int maxRows) { int num = 0; if (this.RcdFound217 != 0) { this.ScanLoadUravrstaiznosa(); while ((this.RcdFound217 != 0) && (num != maxRows)) { num++; this.LoadRowUravrstaiznosa(); this.CreateNewRowUravrstaiznosa(); this.ScanNextUravrstaiznosa(); } } if (num > 0) { this.RcdFound217 = 1; } this.ScanEndUravrstaiznosa(); if (this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.Count > 0) { this.rowURAVRSTAIZNOSA = this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA[this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.Count - 1]; } }
public URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow AddURAVRSTAIZNOSARow(int iDURAVRSTAIZNOSA, string uRAVRSTAIZNOSANAZIV) { URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow row = (URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow) this.NewRow(); row["IDURAVRSTAIZNOSA"] = iDURAVRSTAIZNOSA; row["URAVRSTAIZNOSANAZIV"] = uRAVRSTAIZNOSANAZIV; this.Rows.Add(row); return(row); }
private void LoadByIDURAVRSTAIZNOSA(int startRow, int maxRows) { bool enforceConstraints = this.URAVRSTAIZNOSASet.EnforceConstraints; this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.BeginLoadData(); this.ScanByIDURAVRSTAIZNOSA(startRow, maxRows); this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.EndLoadData(); this.URAVRSTAIZNOSASet.EnforceConstraints = enforceConstraints; if (this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.Count > 0) { this.rowURAVRSTAIZNOSA = this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA[this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.Count - 1]; } }
private void ReadRowUravrstaiznosa() { this.Gx_mode = Mode.FromRowState(this.rowURAVRSTAIZNOSA.RowState); if (this.rowURAVRSTAIZNOSA.RowState != DataRowState.Added) { this.m__URAVRSTAIZNOSANAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowURAVRSTAIZNOSA["URAVRSTAIZNOSANAZIV", DataRowVersion.Original]); } else { this.m__URAVRSTAIZNOSANAZIVOriginal = RuntimeHelpers.GetObjectValue(this.rowURAVRSTAIZNOSA["URAVRSTAIZNOSANAZIV"]); } this._Gxremove = this.rowURAVRSTAIZNOSA.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowURAVRSTAIZNOSA = (URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow)DataSetUtil.CloneOriginalDataRow(this.rowURAVRSTAIZNOSA); } }
public virtual bool FillByIDURAVRSTAIZNOSA(URAVRSTAIZNOSADataSet dataSet, int iDURAVRSTAIZNOSA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.URAVRSTAIZNOSASet = dataSet; this.rowURAVRSTAIZNOSA = this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.NewURAVRSTAIZNOSARow(); this.rowURAVRSTAIZNOSA.IDURAVRSTAIZNOSA = iDURAVRSTAIZNOSA; try { this.LoadByIDURAVRSTAIZNOSA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound217 == 0) { return(false); } return(true); }
public URAVRSTAIZNOSAEventArgs(URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.URAVRSTAIZNOSASet = (URAVRSTAIZNOSADataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.URAVRSTAIZNOSASet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.GetEnumerator(); while (enumerator.MoveNext()) { URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow current = (URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow)enumerator.Current; this.rowURAVRSTAIZNOSA = current; if (Helpers.IsRowChanged(this.rowURAVRSTAIZNOSA)) { this.ReadRowUravrstaiznosa(); if (this.rowURAVRSTAIZNOSA.RowState == DataRowState.Added) { this.InsertUravrstaiznosa(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateUravrstaiznosa(); } } } } 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 CreateNewRowUravrstaiznosa() { this.rowURAVRSTAIZNOSA = this.URAVRSTAIZNOSASet.URAVRSTAIZNOSA.NewURAVRSTAIZNOSARow(); }
public URAVRSTAIZNOSARowChangeEvent(URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveURAVRSTAIZNOSARow(URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow row) { this.Rows.Remove(row); }
public void AddURAVRSTAIZNOSARow(URAVRSTAIZNOSADataSet.URAVRSTAIZNOSARow row) { this.Rows.Add(row); }