private void LoadDataPlvrsteiznosa(int maxRows) { int num = 0; if (this.RcdFound228 != 0) { this.ScanLoadPlvrsteiznosa(); while ((this.RcdFound228 != 0) && (num != maxRows)) { num++; this.LoadRowPlvrsteiznosa(); this.CreateNewRowPlvrsteiznosa(); this.ScanNextPlvrsteiznosa(); } } if (num > 0) { this.RcdFound228 = 1; } this.ScanEndPlvrsteiznosa(); if (this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count > 0) { this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA[this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count - 1]; } }
public PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow AddPLVRSTEIZNOSARow(int iDPLVRSTEIZNOSA, string nAZIVPLVRSTEIZNOSA) { PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row = (PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow) this.NewRow(); row["IDPLVRSTEIZNOSA"] = iDPLVRSTEIZNOSA; row["NAZIVPLVRSTEIZNOSA"] = nAZIVPLVRSTEIZNOSA; this.Rows.Add(row); return(row); }
private void LoadByIDPLVRSTEIZNOSA(int startRow, int maxRows) { bool enforceConstraints = this.PLVRSTEIZNOSASet.EnforceConstraints; this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.BeginLoadData(); this.ScanByIDPLVRSTEIZNOSA(startRow, maxRows); this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.EndLoadData(); this.PLVRSTEIZNOSASet.EnforceConstraints = enforceConstraints; if (this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count > 0) { this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA[this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.Count - 1]; } }
private void ReadRowPlvrsteiznosa() { this.Gx_mode = Mode.FromRowState(this.rowPLVRSTEIZNOSA.RowState); if (this.rowPLVRSTEIZNOSA.RowState != DataRowState.Added) { this.m__NAZIVPLVRSTEIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowPLVRSTEIZNOSA["NAZIVPLVRSTEIZNOSA", DataRowVersion.Original]); } else { this.m__NAZIVPLVRSTEIZNOSAOriginal = RuntimeHelpers.GetObjectValue(this.rowPLVRSTEIZNOSA["NAZIVPLVRSTEIZNOSA"]); } this._Gxremove = this.rowPLVRSTEIZNOSA.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowPLVRSTEIZNOSA = (PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow)DataSetUtil.CloneOriginalDataRow(this.rowPLVRSTEIZNOSA); } }
public virtual bool FillByIDPLVRSTEIZNOSA(PLVRSTEIZNOSADataSet dataSet, int iDPLVRSTEIZNOSA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.PLVRSTEIZNOSASet = dataSet; this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.NewPLVRSTEIZNOSARow(); this.rowPLVRSTEIZNOSA.IDPLVRSTEIZNOSA = iDPLVRSTEIZNOSA; try { this.LoadByIDPLVRSTEIZNOSA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound228 == 0) { return(false); } return(true); }
public PLVRSTEIZNOSAEventArgs(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.PLVRSTEIZNOSASet = (PLVRSTEIZNOSADataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.PLVRSTEIZNOSASet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.GetEnumerator(); while (enumerator.MoveNext()) { PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow current = (PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow)enumerator.Current; this.rowPLVRSTEIZNOSA = current; if (Helpers.IsRowChanged(this.rowPLVRSTEIZNOSA)) { this.ReadRowPlvrsteiznosa(); if (this.rowPLVRSTEIZNOSA.RowState == DataRowState.Added) { this.InsertPlvrsteiznosa(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdatePlvrsteiznosa(); } } } } 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 CreateNewRowPlvrsteiznosa() { this.rowPLVRSTEIZNOSA = this.PLVRSTEIZNOSASet.PLVRSTEIZNOSA.NewPLVRSTEIZNOSARow(); }
public PLVRSTEIZNOSARowChangeEvent(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemovePLVRSTEIZNOSARow(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row) { this.Rows.Remove(row); }
public void AddPLVRSTEIZNOSARow(PLVRSTEIZNOSADataSet.PLVRSTEIZNOSARow row) { this.Rows.Add(row); }