public void executePrivate(int startRow, int maxRows) { this.cmS_OD_REKAP_POSTOTNESelect2 = this.connDefault.GetCommand("S_PLACA_OBUSTAVE_POSTOTNE", true); this.cmS_OD_REKAP_POSTOTNESelect2.IDbCommand.CommandType = CommandType.StoredProcedure; this.cmS_OD_REKAP_POSTOTNESelect2.IDbCommand.Parameters.Clear(); this.cmS_OD_REKAP_POSTOTNESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC)); this.cmS_OD_REKAP_POSTOTNESelect2.ErrorMask |= ErrorMask.Lock; this.S_OD_REKAP_POSTOTNESelect2 = this.cmS_OD_REKAP_POSTOTNESelect2.FetchData(); while (this.cmS_OD_REKAP_POSTOTNESelect2.HasMoreRows && (startRow > 0)) { startRow--; this.cmS_OD_REKAP_POSTOTNESelect2.HasMoreRows = this.S_OD_REKAP_POSTOTNESelect2.Read(); } int num = 0; while (this.cmS_OD_REKAP_POSTOTNESelect2.HasMoreRows && (num != maxRows)) { this.rowS_OD_REKAP_POSTOTNE["OBRACUNATO"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["OBRACUNATO"]); this.rowS_OD_REKAP_POSTOTNE["NAZIVOBUSTAVA"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["NAZIVOBUSTAVA"]); this.rowS_OD_REKAP_POSTOTNE["IDOBUSTAVA"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["IDOBUSTAVA"]); this.rowS_OD_REKAP_POSTOTNE["PRIMATELJOBUSTAVA1"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["PRIMATELJOBUSTAVA1"]); this.rowS_OD_REKAP_POSTOTNE["PRIMATELJOBUSTAVA2"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["PRIMATELJOBUSTAVA2"]); this.rowS_OD_REKAP_POSTOTNE["PREZIME"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["PREZIME"]); this.rowS_OD_REKAP_POSTOTNE["IME"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["IME"]); this.rowS_OD_REKAP_POSTOTNE["JMBG"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["JMBG"]); this.rowS_OD_REKAP_POSTOTNE["IDRADNIK"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["IDRADNIK"]); this.rowS_OD_REKAP_POSTOTNE["POSTOTAK"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_POSTOTNESelect2["POSTOTAK"]); this.AddRowS_od_rekap_postotne(); num++; this.rowS_OD_REKAP_POSTOTNE = this.S_OD_REKAP_POSTOTNESet.S_OD_REKAP_POSTOTNE.NewS_OD_REKAP_POSTOTNERow(); this.cmS_OD_REKAP_POSTOTNESelect2.HasMoreRows = this.S_OD_REKAP_POSTOTNESelect2.Read(); } this.S_OD_REKAP_POSTOTNESelect2.Close(); this.Cleanup(); }
public virtual int Fill(S_OD_REKAP_POSTOTNEDataSet dataSet, string iDOBRACUN) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_OD_REKAP_POSTOTNESet = dataSet; this.rowS_OD_REKAP_POSTOTNE = this.S_OD_REKAP_POSTOTNESet.S_OD_REKAP_POSTOTNE.NewS_OD_REKAP_POSTOTNERow(); this.SetFillParameters(iDOBRACUN); this.AV8IDOBRAC = iDOBRACUN; try { this.executePrivate(0, -1); } finally { this.Cleanup(); } return(0); }