private void LoadDataFinporez(int maxRows) { int num = 0; if (this.RcdFound206 != 0) { this.ScanLoadFinporez(); while ((this.RcdFound206 != 0) && (num != maxRows)) { num++; this.LoadRowFinporez(); this.CreateNewRowFinporez(); this.ScanNextFinporez(); } } if (num > 0) { this.RcdFound206 = 1; } this.ScanEndFinporez(); if (this.FINPOREZSet.FINPOREZ.Count > 0) { this.rowFINPOREZ = this.FINPOREZSet.FINPOREZ[this.FINPOREZSet.FINPOREZ.Count - 1]; } }
public FINPOREZDataSet.FINPOREZRow AddFINPOREZRow(int fINPOREZIDPOREZ, string fINPOREZNAZIVPOREZ, decimal fINPOREZSTOPA, int oSNOVICAUKNIZIIRA) { FINPOREZDataSet.FINPOREZRow row = (FINPOREZDataSet.FINPOREZRow) this.NewRow(); row["FINPOREZIDPOREZ"] = fINPOREZIDPOREZ; row["FINPOREZNAZIVPOREZ"] = fINPOREZNAZIVPOREZ; row["FINPOREZSTOPA"] = fINPOREZSTOPA; row["OSNOVICAUKNIZIIRA"] = oSNOVICAUKNIZIIRA; this.Rows.Add(row); return(row); }
private void LoadByFINPOREZIDPOREZ(int startRow, int maxRows) { bool enforceConstraints = this.FINPOREZSet.EnforceConstraints; this.FINPOREZSet.FINPOREZ.BeginLoadData(); this.ScanByFINPOREZIDPOREZ(startRow, maxRows); this.FINPOREZSet.FINPOREZ.EndLoadData(); this.FINPOREZSet.EnforceConstraints = enforceConstraints; if (this.FINPOREZSet.FINPOREZ.Count > 0) { this.rowFINPOREZ = this.FINPOREZSet.FINPOREZ[this.FINPOREZSet.FINPOREZ.Count - 1]; } }
private void ReadRowFinporez() { this.Gx_mode = Mode.FromRowState(this.rowFINPOREZ.RowState); if (this.rowFINPOREZ.RowState != DataRowState.Added) { this.m__FINPOREZNAZIVPOREZOriginal = RuntimeHelpers.GetObjectValue(this.rowFINPOREZ["FINPOREZNAZIVPOREZ", DataRowVersion.Original]); this.m__FINPOREZSTOPAOriginal = RuntimeHelpers.GetObjectValue(this.rowFINPOREZ["FINPOREZSTOPA", DataRowVersion.Original]); this.m__OSNOVICAUKNIZIIRAOriginal = RuntimeHelpers.GetObjectValue(this.rowFINPOREZ["OSNOVICAUKNIZIIRA", DataRowVersion.Original]); } else { this.m__FINPOREZNAZIVPOREZOriginal = RuntimeHelpers.GetObjectValue(this.rowFINPOREZ["FINPOREZNAZIVPOREZ"]); this.m__FINPOREZSTOPAOriginal = RuntimeHelpers.GetObjectValue(this.rowFINPOREZ["FINPOREZSTOPA"]); this.m__OSNOVICAUKNIZIIRAOriginal = RuntimeHelpers.GetObjectValue(this.rowFINPOREZ["OSNOVICAUKNIZIIRA"]); } this._Gxremove = this.rowFINPOREZ.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowFINPOREZ = (FINPOREZDataSet.FINPOREZRow)DataSetUtil.CloneOriginalDataRow(this.rowFINPOREZ); } }
public virtual bool FillByFINPOREZIDPOREZ(FINPOREZDataSet dataSet, int fINPOREZIDPOREZ) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.FINPOREZSet = dataSet; this.rowFINPOREZ = this.FINPOREZSet.FINPOREZ.NewFINPOREZRow(); this.rowFINPOREZ.FINPOREZIDPOREZ = fINPOREZIDPOREZ; try { this.LoadByFINPOREZIDPOREZ(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound206 == 0) { return(false); } return(true); }
public FINPOREZEventArgs(FINPOREZDataSet.FINPOREZRow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.FINPOREZSet = (FINPOREZDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.FINPOREZSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.FINPOREZSet.FINPOREZ.GetEnumerator(); while (enumerator.MoveNext()) { FINPOREZDataSet.FINPOREZRow current = (FINPOREZDataSet.FINPOREZRow)enumerator.Current; this.rowFINPOREZ = current; if (Helpers.IsRowChanged(this.rowFINPOREZ)) { this.ReadRowFinporez(); if (this.rowFINPOREZ.RowState == DataRowState.Added) { this.InsertFinporez(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateFinporez(); } } } } 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 CreateNewRowFinporez() { this.rowFINPOREZ = this.FINPOREZSet.FINPOREZ.NewFINPOREZRow(); }
public FINPOREZRowChangeEvent(FINPOREZDataSet.FINPOREZRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveFINPOREZRow(FINPOREZDataSet.FINPOREZRow row) { this.Rows.Remove(row); }
public void AddFINPOREZRow(FINPOREZDataSet.FINPOREZRow row) { this.Rows.Add(row); }