public virtual int FillPage(STRANAKNJIZENJADataSet dataSet, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.STRANAKNJIZENJASet = dataSet; try { this.LoadChildStranaknjizenja(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByIDSTRANA(STRANAKNJIZENJADataSet dataSet, int iDSTRANA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.STRANAKNJIZENJASet = dataSet; this.rowSTRANAKNJIZENJA = this.STRANAKNJIZENJASet.STRANAKNJIZENJA.NewSTRANAKNJIZENJARow(); this.rowSTRANAKNJIZENJA.IDSTRANA = iDSTRANA; try { this.LoadByIDSTRANA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound158 == 0) { return(false); } return(true); }
public virtual int Fill(STRANAKNJIZENJADataSet 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.STRANAKNJIZENJASet = dataSet; this.LoadChildStranaknjizenja(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } } return(0); }