private void LoadDataSmjene(int maxRows) { int num = 0; if (this.RcdFound248 != 0) { this.ScanLoadSmjene(); while ((this.RcdFound248 != 0) && (num != maxRows)) { num++; this.LoadRowSmjene(); this.CreateNewRowSmjene(); this.ScanNextSmjene(); } } if (num > 0) { this.RcdFound248 = 1; } this.ScanEndSmjene(); if (this.SMJENESet.SMJENE.Count > 0) { this.rowSMJENE = this.SMJENESet.SMJENE[this.SMJENESet.SMJENE.Count - 1]; } }
public SMJENEDataSet.SMJENERow AddSMJENERow(int iDSMJENE, string oPISSMJENE, string pOCETAK, string zAVRSETAK) { SMJENEDataSet.SMJENERow row = (SMJENEDataSet.SMJENERow) this.NewRow(); row["IDSMJENE"] = iDSMJENE; row["OPISSMJENE"] = oPISSMJENE; row["POCETAK"] = pOCETAK; row["ZAVRSETAK"] = zAVRSETAK; this.Rows.Add(row); return(row); }
private void LoadByIDSMJENE(int startRow, int maxRows) { bool enforceConstraints = this.SMJENESet.EnforceConstraints; this.SMJENESet.SMJENE.BeginLoadData(); this.ScanByIDSMJENE(startRow, maxRows); this.SMJENESet.SMJENE.EndLoadData(); this.SMJENESet.EnforceConstraints = enforceConstraints; if (this.SMJENESet.SMJENE.Count > 0) { this.rowSMJENE = this.SMJENESet.SMJENE[this.SMJENESet.SMJENE.Count - 1]; } }
private void ReadRowSmjene() { this.Gx_mode = Mode.FromRowState(this.rowSMJENE.RowState); if (this.rowSMJENE.RowState != DataRowState.Added) { this.m__OPISSMJENEOriginal = RuntimeHelpers.GetObjectValue(this.rowSMJENE["OPISSMJENE", DataRowVersion.Original]); this.m__POCETAKOriginal = RuntimeHelpers.GetObjectValue(this.rowSMJENE["POCETAK", DataRowVersion.Original]); this.m__ZAVRSETAKOriginal = RuntimeHelpers.GetObjectValue(this.rowSMJENE["ZAVRSETAK", DataRowVersion.Original]); } else { this.m__OPISSMJENEOriginal = RuntimeHelpers.GetObjectValue(this.rowSMJENE["OPISSMJENE"]); this.m__POCETAKOriginal = RuntimeHelpers.GetObjectValue(this.rowSMJENE["POCETAK"]); this.m__ZAVRSETAKOriginal = RuntimeHelpers.GetObjectValue(this.rowSMJENE["ZAVRSETAK"]); } this._Gxremove = this.rowSMJENE.RowState == DataRowState.Deleted; if (this._Gxremove) { this.rowSMJENE = (SMJENEDataSet.SMJENERow)DataSetUtil.CloneOriginalDataRow(this.rowSMJENE); } }
public virtual bool FillByIDSMJENE(SMJENEDataSet dataSet, int iDSMJENE) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.SMJENESet = dataSet; this.rowSMJENE = this.SMJENESet.SMJENE.NewSMJENERow(); this.rowSMJENE.IDSMJENE = iDSMJENE; try { this.LoadByIDSMJENE(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound248 == 0) { return(false); } return(true); }
public SMJENERowChangeEvent(SMJENEDataSet.SMJENERow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveSMJENERow(SMJENEDataSet.SMJENERow row) { this.Rows.Remove(row); }
public void AddSMJENERow(SMJENEDataSet.SMJENERow row) { this.Rows.Add(row); }
public SMJENEEventArgs(SMJENEDataSet.SMJENERow row, System.Data.StatementType statementType) { this.m_dataRow = row; this.m_statementType = statementType; }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.SMJENESet = (SMJENEDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.SMJENESet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.SMJENESet.SMJENE.GetEnumerator(); while (enumerator.MoveNext()) { SMJENEDataSet.SMJENERow current = (SMJENEDataSet.SMJENERow)enumerator.Current; this.rowSMJENE = current; if (Helpers.IsRowChanged(this.rowSMJENE)) { this.ReadRowSmjene(); if (this.rowSMJENE.RowState == DataRowState.Added) { this.InsertSmjene(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdateSmjene(); } } } } 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 CreateNewRowSmjene() { this.rowSMJENE = this.SMJENESet.SMJENE.NewSMJENERow(); }