public virtual int Fill(POREZDataSet dataSet, int iDPOREZ) { if (!this.FillByIDPOREZ(dataSet, iDPOREZ)) { throw new POREZNotFoundException(string.Format(CultureInfo.InvariantCulture, this.resourceManager.GetString("inex"), new object[] { this.resourceManagerTables.GetString("POREZ") })); } return(0); }
public virtual void Fill() { this.PreFill(); this.dsPOREZDataSet1 = new POREZDataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public virtual int Fill(DataSet dataSet) { this.POREZSet = (POREZDataSet)dataSet; if (this.POREZSet != null) { return(this.Fill(this.POREZSet)); } this.POREZSet = new POREZDataSet(); this.Fill(this.POREZSet); dataSet.Merge(this.POREZSet); return(0); }
public virtual int FillPage(POREZDataSet dataSet, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.POREZSet = dataSet; try { this.LoadChildPorez(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByIDPOREZ(POREZDataSet dataSet, int iDPOREZ) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.POREZSet = dataSet; this.rowPOREZ = this.POREZSet.POREZ.NewPOREZRow(); this.rowPOREZ.IDPOREZ = iDPOREZ; try { this.LoadByIDPOREZ(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound20 == 0) { return(false); } return(true); }
public virtual int Fill(POREZDataSet dataSet) { if (this.fillDataParameters != null) { this.Fill(dataSet, int.Parse(this.fillDataParameters[0].Value.ToString())); } else { try { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.POREZSet = dataSet; this.LoadChildPorez(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } } return(0); }
public virtual int Update(DataSet dataSet) { this.InitializeMembers(); this.POREZSet = (POREZDataSet)dataSet; this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); if (this.POREZSet == null) { throw new ArgumentException(this.resourceManager.GetString("nulldset")); } try { IEnumerator enumerator = null; this.connDefault.BeginTransaction(); try { enumerator = this.POREZSet.POREZ.GetEnumerator(); while (enumerator.MoveNext()) { POREZDataSet.POREZRow current = (POREZDataSet.POREZRow)enumerator.Current; this.rowPOREZ = current; if (Helpers.IsRowChanged(this.rowPOREZ)) { this.ReadRowPorez(); if (this.rowPOREZ.RowState == DataRowState.Added) { this.InsertPorez(); } else { if (this._Gxremove) { this.Delete(); continue; } this.UpdatePorez(); } } } } 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 InitializeMembers() { this.POREZSet = new POREZDataSet(); this.Initialize(); this.dsDefault = new DataStore(new SqlServer2005Handler(), "System.Data.SqlClient", Configuration.ConnectionString, DeklaritTransaction.TransactionSlotName); }
public virtual int Fill(POREZDataSet dataSet, IDataRecord dataRecord) { return(this.Fill(dataSet, Conversions.ToInteger(dataRecord["IDPOREZ"]))); }