private void LoadDataRad1spremeveza(int maxRows) { int num = 0; if (this.RcdFound288 != 0) { this.ScanLoadRad1spremeveza(); while ((this.RcdFound288 != 0) && (num != maxRows)) { num++; this.LoadRowRad1spremeveza(); this.CreateNewRowRad1spremeveza(); this.ScanNextRad1spremeveza(); } } if (num > 0) { this.RcdFound288 = 1; } this.ScanEndRad1spremeveza(); if (this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.Count > 0) { this.rowRAD1SPREMEVEZA = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA[this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.Count - 1]; } }
public RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow AddRAD1SPREMEVEZARow(int rAD1IDSPREME, int iDSTRUCNASPREMA) { RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow row = (RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow) this.NewRow(); row["RAD1IDSPREME"] = rAD1IDSPREME; row["IDSTRUCNASPREMA"] = iDSTRUCNASPREMA; this.Rows.Add(row); return(row); }
private void ReadRowRad1spremeveza() { this.Gx_mode = Mode.FromRowState(this.rowRAD1SPREMEVEZA.RowState); if (this.rowRAD1SPREMEVEZA.RowState == DataRowState.Added) { } this._Gxremove = this.rowRAD1SPREMEVEZA.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowRAD1SPREMEVEZA = (RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow)DataSetUtil.CloneOriginalDataRow(this.rowRAD1SPREMEVEZA); } }
private void LoadByRAD1IDSPREMEIDSTRUCNASPREMA(int startRow, int maxRows) { bool enforceConstraints = this.RAD1SPREMEVEZASet.EnforceConstraints; this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.BeginLoadData(); this.ScanByRAD1IDSPREMEIDSTRUCNASPREMA(startRow, maxRows); this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.EndLoadData(); this.RAD1SPREMEVEZASet.EnforceConstraints = enforceConstraints; if (this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.Count > 0) { this.rowRAD1SPREMEVEZA = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA[this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.Count - 1]; } }
public virtual int FillPageByRAD1IDSPREME(RAD1SPREMEVEZADataSet dataSet, int rAD1IDSPREME, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.RAD1SPREMEVEZASet = dataSet; this.rowRAD1SPREMEVEZA = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.NewRAD1SPREMEVEZARow(); this.rowRAD1SPREMEVEZA.RAD1IDSPREME = rAD1IDSPREME; try { this.LoadByRAD1IDSPREME(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual int FillByIDSTRUCNASPREMA(RAD1SPREMEVEZADataSet dataSet, int iDSTRUCNASPREMA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.RAD1SPREMEVEZASet = dataSet; this.rowRAD1SPREMEVEZA = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.NewRAD1SPREMEVEZARow(); this.rowRAD1SPREMEVEZA.IDSTRUCNASPREMA = iDSTRUCNASPREMA; try { this.LoadByIDSTRUCNASPREMA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByRAD1IDSPREMEIDSTRUCNASPREMA(RAD1SPREMEVEZADataSet dataSet, int rAD1IDSPREME, int iDSTRUCNASPREMA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.RAD1SPREMEVEZASet = dataSet; this.rowRAD1SPREMEVEZA = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.NewRAD1SPREMEVEZARow(); this.rowRAD1SPREMEVEZA.RAD1IDSPREME = rAD1IDSPREME; this.rowRAD1SPREMEVEZA.IDSTRUCNASPREMA = iDSTRUCNASPREMA; try { this.LoadByRAD1IDSPREMEIDSTRUCNASPREMA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound288 == 0) { return(false); } return(true); }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.RAD1SPREMEVEZASet = (RAD1SPREMEVEZADataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.RAD1SPREMEVEZASet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.GetEnumerator(); while (enumerator.MoveNext()) { RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow current = (RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow)enumerator.Current; this.rowRAD1SPREMEVEZA = current; if (Helpers.IsRowChanged(this.rowRAD1SPREMEVEZA)) { this.ReadRowRad1spremeveza(); if (this.rowRAD1SPREMEVEZA.RowState == DataRowState.Added) { this.InsertRad1spremeveza(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateRad1spremeveza(); } } } } 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 CreateNewRowRad1spremeveza() { this.rowRAD1SPREMEVEZA = this.RAD1SPREMEVEZASet.RAD1SPREMEVEZA.NewRAD1SPREMEVEZARow(); }
public RAD1SPREMEVEZAEventArgs(RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public RAD1SPREMEVEZARowChangeEvent(RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveRAD1SPREMEVEZARow(RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow row) { this.Rows.Remove(row); }
public void AddRAD1SPREMEVEZARow(RAD1SPREMEVEZADataSet.RAD1SPREMEVEZARow row) { this.Rows.Add(row); }