public void executePrivate(int startRow, int maxRows) { this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2 = this.connDefault.GetCommand("S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA", true); this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.IDbCommand.CommandType = CommandType.StoredProcedure; this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.IDbCommand.Parameters.Clear(); this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC)); this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.ErrorMask |= ErrorMask.Lock; this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2 = this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.FetchData(); while (this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.HasMoreRows && (startRow > 0)) { startRow--; this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.HasMoreRows = this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.Read(); } int num = 0; while (this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.HasMoreRows && (num != maxRows)) { this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["PREZIME"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["PREZIME"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["IME"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["IME"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["SIFRAOPCINESTANOVANJA"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["SIFRAOPCINESTANOVANJA"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["NAZIVOPCINE"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["NAZIVOPCINE"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["KOREKCIJAPOREZA"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["KOREKCIJAPOREZA"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["KOREKCIJAPRIREZ"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["KOREKCIJAPRIREZ"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["ORIGINALPOREZ"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["ORIGINALPOREZ"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["ORIGINALPRIREZ"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["ORIGINALPRIREZ"]); this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA["IDRADNIK"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2["IDRADNIK"]); this.AddRowS_placa_konacni_porez_rekapitulacija_po_radnicima(); num++; this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA = this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASet.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA.NewS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMARow(); this.cmS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.HasMoreRows = this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.Read(); } this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASelect2.Close(); this.Cleanup(); }
public virtual int Fill(S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMADataSet dataSet, string iDOBRACUN) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASet = dataSet; this.rowS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA = this.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMASet.S_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMA.NewS_PLACA_KONACNI_POREZ_REKAPITULACIJA_PO_RADNICIMARow(); this.SetFillParameters(iDOBRACUN); this.AV8IDOBRAC = iDOBRACUN; try { this.executePrivate(0, -1); } finally { this.Cleanup(); } return(0); }