public virtual int FillPage(TIPIRADataSet dataSet, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.TIPIRASet = dataSet; try { this.LoadChildTipira(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByIDTIPIRA(TIPIRADataSet dataSet, int iDTIPIRA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.TIPIRASet = dataSet; this.rowTIPIRA = this.TIPIRASet.TIPIRA.NewTIPIRARow(); this.rowTIPIRA.IDTIPIRA = iDTIPIRA; try { this.LoadByIDTIPIRA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound198 == 0) { return(false); } return(true); }
public virtual int Fill(TIPIRADataSet 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.TIPIRASet = dataSet; this.LoadChildTipira(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } } return(0); }