Exemplo n.º 1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_REKAP_FIKSNESelect2 = this.connDefault.GetCommand("S_PLACA_OBUSTAVE_FIKSNE", true);
            this.cmS_OD_REKAP_FIKSNESelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_REKAP_FIKSNESelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_REKAP_FIKSNESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC));
            this.cmS_OD_REKAP_FIKSNESelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_REKAP_FIKSNESelect2              = this.cmS_OD_REKAP_FIKSNESelect2.FetchData();
            while (this.cmS_OD_REKAP_FIKSNESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_REKAP_FIKSNESelect2.HasMoreRows = this.S_OD_REKAP_FIKSNESelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_REKAP_FIKSNESelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_REKAP_FIKSNE["OBRACUNATO"]         = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["OBRACUNATO"]);
                this.rowS_OD_REKAP_FIKSNE["NAZIVOBUSTAVA"]      = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["NAZIVOBUSTAVA"]);
                this.rowS_OD_REKAP_FIKSNE["IDOBUSTAVA"]         = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["IDOBUSTAVA"]);
                this.rowS_OD_REKAP_FIKSNE["PRIMATELJOBUSTAVA1"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["PRIMATELJOBUSTAVA1"]);
                this.rowS_OD_REKAP_FIKSNE["PRIMATELJOBUSTAVA2"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["PRIMATELJOBUSTAVA2"]);
                this.rowS_OD_REKAP_FIKSNE["PREZIME"]            = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["PREZIME"]);
                this.rowS_OD_REKAP_FIKSNE["IME"]           = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["IME"]);
                this.rowS_OD_REKAP_FIKSNE["JMBG"]          = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["JMBG"]);
                this.rowS_OD_REKAP_FIKSNE["IDRADNIK"]      = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["IDRADNIK"]);
                this.rowS_OD_REKAP_FIKSNE["IZNOSOBUSTAVE"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_FIKSNESelect2["IZNOSOBUSTAVE"]);
                this.AddRowS_od_rekap_fiksne();
                num++;
                this.rowS_OD_REKAP_FIKSNE = this.S_OD_REKAP_FIKSNESet.S_OD_REKAP_FIKSNE.NewS_OD_REKAP_FIKSNERow();
                this.cmS_OD_REKAP_FIKSNESelect2.HasMoreRows = this.S_OD_REKAP_FIKSNESelect2.Read();
            }
            this.S_OD_REKAP_FIKSNESelect2.Close();
            this.Cleanup();
        }
Exemplo n.º 2
0
 public virtual int Fill(S_OD_REKAP_FIKSNEDataSet dataSet, string iDOBRACUN)
 {
     this.Initialize();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_REKAP_FIKSNESet = dataSet;
     this.rowS_OD_REKAP_FIKSNE = this.S_OD_REKAP_FIKSNESet.S_OD_REKAP_FIKSNE.NewS_OD_REKAP_FIKSNERow();
     this.SetFillParameters(iDOBRACUN);
     this.AV8IDOBRAC = iDOBRACUN;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }