예제 #1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_REKAP_KREDITNESelect2 = this.connDefault.GetCommand("S_PLACA_OBUSTAVE_KREDITNE", true);
            this.cmS_OD_REKAP_KREDITNESelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_REKAP_KREDITNESelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_REKAP_KREDITNESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC));
            this.cmS_OD_REKAP_KREDITNESelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_REKAP_KREDITNESelect2              = this.cmS_OD_REKAP_KREDITNESelect2.FetchData();
            while (this.cmS_OD_REKAP_KREDITNESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_REKAP_KREDITNESelect2.HasMoreRows = this.S_OD_REKAP_KREDITNESelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_REKAP_KREDITNESelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_REKAP_KREDITNE["OBRACUNATO"]         = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["OBRACUNATO"]);
                this.rowS_OD_REKAP_KREDITNE["NAZIVKREDITOR"]      = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["NAZIVKREDITOR"]);
                this.rowS_OD_REKAP_KREDITNE["IDKREDITOR"]         = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["IDKREDITOR"]);
                this.rowS_OD_REKAP_KREDITNE["PRIMATELJKREDITOR1"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["PRIMATELJKREDITOR1"]);
                this.rowS_OD_REKAP_KREDITNE["PRIMATELJKREDITOR2"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["PRIMATELJKREDITOR2"]);
                this.rowS_OD_REKAP_KREDITNE["PREZIME"]            = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["PREZIME"]);
                this.rowS_OD_REKAP_KREDITNE["IME"]        = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["IME"]);
                this.rowS_OD_REKAP_KREDITNE["JMBG"]       = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["JMBG"]);
                this.rowS_OD_REKAP_KREDITNE["IDRADNIK"]   = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["IDRADNIK"]);
                this.rowS_OD_REKAP_KREDITNE["MODELPOZIV"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_KREDITNESelect2["MODELPOZIV"]);
                this.AddRowS_od_rekap_kreditne();
                num++;
                this.rowS_OD_REKAP_KREDITNE = this.S_OD_REKAP_KREDITNESet.S_OD_REKAP_KREDITNE.NewS_OD_REKAP_KREDITNERow();
                this.cmS_OD_REKAP_KREDITNESelect2.HasMoreRows = this.S_OD_REKAP_KREDITNESelect2.Read();
            }
            this.S_OD_REKAP_KREDITNESelect2.Close();
            this.Cleanup();
        }
예제 #2
0
 public virtual int Fill(S_OD_REKAP_KREDITNEDataSet dataSet, string iDOBRACUN)
 {
     this.Initialize();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_REKAP_KREDITNESet = dataSet;
     this.rowS_OD_REKAP_KREDITNE = this.S_OD_REKAP_KREDITNESet.S_OD_REKAP_KREDITNE.NewS_OD_REKAP_KREDITNERow();
     this.SetFillParameters(iDOBRACUN);
     this.AV8IDOBRAC = iDOBRACUN;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }