public virtual int FillPage(STRUKADataSet dataSet, int startRow, int maxRows) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.STRUKASet = dataSet; try { this.LoadChildStruka(startRow, maxRows); dataSet.AcceptChanges(); } finally { this.Cleanup(); } return(0); }
public virtual bool FillByIDSTRUKA(STRUKADataSet dataSet, int iDSTRUKA) { this.InitializeMembers(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.STRUKASet = dataSet; this.rowSTRUKA = this.STRUKASet.STRUKA.NewSTRUKARow(); this.rowSTRUKA.IDSTRUKA = iDSTRUKA; try { this.LoadByIDSTRUKA(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } if (this.RcdFound35 == 0) { return(false); } return(true); }
public virtual int Fill(STRUKADataSet 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.STRUKASet = dataSet; this.LoadChildStruka(0, -1); dataSet.AcceptChanges(); } finally { this.Cleanup(); } } return(0); }