public virtual int FillPage(LOKACIJEDataSet dataSet, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.LOKACIJESet = dataSet; try { this.LoadChildLokacije(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByIDLOKACIJE(LOKACIJEDataSet dataSet, int iDLOKACIJE) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.LOKACIJESet = dataSet; this.rowLOKACIJE = this.LOKACIJESet.LOKACIJE.NewLOKACIJERow(); this.rowLOKACIJE.IDLOKACIJE = iDLOKACIJE; try { this.LoadByIDLOKACIJE(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound253 == 0) { return(false); } return(true); }
public virtual int Fill(LOKACIJEDataSet 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.LOKACIJESet = dataSet; this.LoadChildLokacije(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } } return(0); }