private void LoadDataBeneficirani(int maxRows) { int num = 0; if (this.RcdFound3 != 0) { this.ScanLoadBeneficirani(); while ((this.RcdFound3 != 0) && (num != maxRows)) { num++; this.LoadRowBeneficirani(); this.CreateNewRowBeneficirani(); this.ScanNextBeneficirani(); } } if (num > 0) { this.RcdFound3 = 1; } this.ScanEndBeneficirani(); if (this.BENEFICIRANISet.BENEFICIRANI.Count > 0) { this.rowBENEFICIRANI = this.BENEFICIRANISet.BENEFICIRANI[this.BENEFICIRANISet.BENEFICIRANI.Count - 1]; } }
public BENEFICIRANIDataSet.BENEFICIRANIRow AddBENEFICIRANIRow(string iDBENEFICIRANI, string nAZIVBENEFICIRANI, short bROJPRIZNATIHMJESECI) { BENEFICIRANIDataSet.BENEFICIRANIRow row = (BENEFICIRANIDataSet.BENEFICIRANIRow) this.NewRow(); row["IDBENEFICIRANI"] = iDBENEFICIRANI; row["NAZIVBENEFICIRANI"] = nAZIVBENEFICIRANI; row["BROJPRIZNATIHMJESECI"] = bROJPRIZNATIHMJESECI; this.Rows.Add(row); return(row); }
private void LoadByIDBENEFICIRANI(int startRow, int maxRows) { bool enforceConstraints = this.BENEFICIRANISet.EnforceConstraints; this.BENEFICIRANISet.BENEFICIRANI.BeginLoadData(); this.ScanByIDBENEFICIRANI(startRow, maxRows); this.BENEFICIRANISet.BENEFICIRANI.EndLoadData(); this.BENEFICIRANISet.EnforceConstraints = enforceConstraints; if (this.BENEFICIRANISet.BENEFICIRANI.Count > 0) { this.rowBENEFICIRANI = this.BENEFICIRANISet.BENEFICIRANI[this.BENEFICIRANISet.BENEFICIRANI.Count - 1]; } }
private void ReadRowBeneficirani() { this.Gx_mode = Mode.FromRowState(this.rowBENEFICIRANI.RowState); if (this.rowBENEFICIRANI.RowState != DataRowState.Added) { this.m__NAZIVBENEFICIRANIOriginal = RuntimeHelpers.GetObjectValue(this.rowBENEFICIRANI["NAZIVBENEFICIRANI", DataRowVersion.Original]); this.m__BROJPRIZNATIHMJESECIOriginal = RuntimeHelpers.GetObjectValue(this.rowBENEFICIRANI["BROJPRIZNATIHMJESECI", DataRowVersion.Original]); } else { this.m__NAZIVBENEFICIRANIOriginal = RuntimeHelpers.GetObjectValue(this.rowBENEFICIRANI["NAZIVBENEFICIRANI"]); this.m__BROJPRIZNATIHMJESECIOriginal = RuntimeHelpers.GetObjectValue(this.rowBENEFICIRANI["BROJPRIZNATIHMJESECI"]); } this._Gxremove = this.rowBENEFICIRANI.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowBENEFICIRANI = (BENEFICIRANIDataSet.BENEFICIRANIRow)DataSetUtil.CloneOriginalDataRow(this.rowBENEFICIRANI); } }
public virtual bool FillByIDBENEFICIRANI(BENEFICIRANIDataSet dataSet, string iDBENEFICIRANI) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.BENEFICIRANISet = dataSet; this.rowBENEFICIRANI = this.BENEFICIRANISet.BENEFICIRANI.NewBENEFICIRANIRow(); this.rowBENEFICIRANI.IDBENEFICIRANI = iDBENEFICIRANI; try { this.LoadByIDBENEFICIRANI(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound3 == 0) { return(false); } return(true); }
public BENEFICIRANIRowChangeEvent(BENEFICIRANIDataSet.BENEFICIRANIRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveBENEFICIRANIRow(BENEFICIRANIDataSet.BENEFICIRANIRow row) { this.Rows.Remove(row); }
public void AddBENEFICIRANIRow(BENEFICIRANIDataSet.BENEFICIRANIRow row) { this.Rows.Add(row); }
public BENEFICIRANIEventArgs(BENEFICIRANIDataSet.BENEFICIRANIRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.BENEFICIRANISet = (BENEFICIRANIDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.BENEFICIRANISet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.BENEFICIRANISet.BENEFICIRANI.GetEnumerator(); while (enumerator.MoveNext()) { BENEFICIRANIDataSet.BENEFICIRANIRow current = (BENEFICIRANIDataSet.BENEFICIRANIRow)enumerator.Current; this.rowBENEFICIRANI = current; if (Helpers.IsRowChanged(this.rowBENEFICIRANI)) { this.ReadRowBeneficirani(); if (this.rowBENEFICIRANI.RowState == DataRowState.Added) { this.InsertBeneficirani(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateBeneficirani(); } } } } 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 CreateNewRowBeneficirani() { this.rowBENEFICIRANI = this.BENEFICIRANISet.BENEFICIRANI.NewBENEFICIRANIRow(); }