private void LoadDataZatvaranja(int maxRows) { int num = 0; if (this.RcdFound201 != 0) { this.ScanLoadZatvaranja(); while ((this.RcdFound201 != 0) && (num != maxRows)) { num++; this.LoadRowZatvaranja(); this.CreateNewRowZatvaranja(); this.ScanNextZatvaranja(); } } if (num > 0) { this.RcdFound201 = 1; } this.ScanEndZatvaranja(); if (this.ZATVARANJASet.ZATVARANJA.Count > 0) { this.rowZATVARANJA = this.ZATVARANJASet.ZATVARANJA[this.ZATVARANJASet.ZATVARANJA.Count - 1]; } }
public ZATVARANJADataSet.ZATVARANJARow AddZATVARANJARow(int gK1IDGKSTAVKA, int gK2IDGKSTAVKA, decimal zATVARANJAIZNOS) { ZATVARANJADataSet.ZATVARANJARow row = (ZATVARANJADataSet.ZATVARANJARow) this.NewRow(); row["GK1IDGKSTAVKA"] = gK1IDGKSTAVKA; row["GK2IDGKSTAVKA"] = gK2IDGKSTAVKA; row["ZATVARANJAIZNOS"] = zATVARANJAIZNOS; this.Rows.Add(row); return(row); }
private void LoadByGK2IDGKSTAVKA(int startRow, int maxRows) { bool enforceConstraints = this.ZATVARANJASet.EnforceConstraints; this.ZATVARANJASet.ZATVARANJA.BeginLoadData(); this.ScanByGK2IDGKSTAVKA(startRow, maxRows); this.ZATVARANJASet.ZATVARANJA.EndLoadData(); this.ZATVARANJASet.EnforceConstraints = enforceConstraints; if (this.ZATVARANJASet.ZATVARANJA.Count > 0) { this.rowZATVARANJA = this.ZATVARANJASet.ZATVARANJA[this.ZATVARANJASet.ZATVARANJA.Count - 1]; } }
private void ReadRowZatvaranja() { this.Gx_mode = Mode.FromRowState(this.rowZATVARANJA.RowState); if (this.rowZATVARANJA.RowState != DataRowState.Added) { this.m__ZATVARANJAIZNOSOriginal = RuntimeHelpers.GetObjectValue(this.rowZATVARANJA["ZATVARANJAIZNOS", DataRowVersion.Original]); } else { this.m__ZATVARANJAIZNOSOriginal = RuntimeHelpers.GetObjectValue(this.rowZATVARANJA["ZATVARANJAIZNOS"]); } this._Gxremove = this.rowZATVARANJA.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowZATVARANJA = (ZATVARANJADataSet.ZATVARANJARow)DataSetUtil.CloneOriginalDataRow(this.rowZATVARANJA); } }
public virtual int FillPageByGK2IDGKSTAVKA(ZATVARANJADataSet dataSet, int gK2IDGKSTAVKA, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.ZATVARANJASet = dataSet; this.rowZATVARANJA = this.ZATVARANJASet.ZATVARANJA.NewZATVARANJARow(); this.rowZATVARANJA.GK2IDGKSTAVKA = gK2IDGKSTAVKA; try { this.LoadByGK2IDGKSTAVKA(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByGK1IDGKSTAVKAGK2IDGKSTAVKA(ZATVARANJADataSet dataSet, int gK1IDGKSTAVKA, int gK2IDGKSTAVKA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.ZATVARANJASet = dataSet; this.rowZATVARANJA = this.ZATVARANJASet.ZATVARANJA.NewZATVARANJARow(); this.rowZATVARANJA.GK1IDGKSTAVKA = gK1IDGKSTAVKA; this.rowZATVARANJA.GK2IDGKSTAVKA = gK2IDGKSTAVKA; try { this.LoadByGK1IDGKSTAVKAGK2IDGKSTAVKA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound201 == 0) { return(false); } return(true); }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.ZATVARANJASet = (ZATVARANJADataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.ZATVARANJASet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.ZATVARANJASet.ZATVARANJA.GetEnumerator(); while (enumerator.MoveNext()) { ZATVARANJADataSet.ZATVARANJARow current = (ZATVARANJADataSet.ZATVARANJARow)enumerator.Current; this.rowZATVARANJA = current; if (Helpers.IsRowChanged(this.rowZATVARANJA)) { this.ReadRowZatvaranja(); if (this.rowZATVARANJA.RowState == DataRowState.Added) { this.InsertZatvaranja(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateZatvaranja(); } } } } 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 CreateNewRowZatvaranja() { this.rowZATVARANJA = this.ZATVARANJASet.ZATVARANJA.NewZATVARANJARow(); }
public ZATVARANJAEventArgs(ZATVARANJADataSet.ZATVARANJARow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public ZATVARANJARowChangeEvent(ZATVARANJADataSet.ZATVARANJARow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveZATVARANJARow(ZATVARANJADataSet.ZATVARANJARow row) { this.Rows.Remove(row); }
public void AddZATVARANJARow(ZATVARANJADataSet.ZATVARANJARow row) { this.Rows.Add(row); }