Exemple #1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_BOLOVANJE_FONDSelect2 = this.connDefault.GetCommand("S_PLACA_BOLOVANJE_FOND", true);
            this.cmS_OD_BOLOVANJE_FONDSelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_BOLOVANJE_FONDSelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_BOLOVANJE_FONDSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@ODD", this.AV8ODD));
            this.cmS_OD_BOLOVANJE_FONDSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@DOOO", this.AV9DOOO));
            this.cmS_OD_BOLOVANJE_FONDSelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@idradnik", this.AV10idradn));
            this.cmS_OD_BOLOVANJE_FONDSelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_BOLOVANJE_FONDSelect2              = this.cmS_OD_BOLOVANJE_FONDSelect2.FetchData();
            while (this.cmS_OD_BOLOVANJE_FONDSelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_BOLOVANJE_FONDSelect2.HasMoreRows = this.S_OD_BOLOVANJE_FONDSelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_BOLOVANJE_FONDSelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_BOLOVANJE_FOND["IDRADNIK"]         = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["IDRADNIK"]);
                this.rowS_OD_BOLOVANJE_FOND["PREZIME"]          = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["PREZIME"]);
                this.rowS_OD_BOLOVANJE_FOND["IME"]              = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["IME"]);
                this.rowS_OD_BOLOVANJE_FOND["JMBG"]             = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["JMBG"]);
                this.rowS_OD_BOLOVANJE_FOND["MJESECOBRACUNA"]   = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["MJESECOBRACUNA"]);
                this.rowS_OD_BOLOVANJE_FOND["GODINAOBRACUNA"]   = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["GODINAOBRACUNA"]);
                this.rowS_OD_BOLOVANJE_FOND["KOLONA4"]          = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["KOLONA4"]);
                this.rowS_OD_BOLOVANJE_FOND["KOLONA5"]          = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["KOLONA5"]);
                this.rowS_OD_BOLOVANJE_FOND["KOLONA6"]          = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["KOLONA6"]);
                this.rowS_OD_BOLOVANJE_FOND["KOLONA8"]          = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["KOLONA8"]);
                this.rowS_OD_BOLOVANJE_FOND["SATIUKUPNO"]       = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["SATIUKUPNO"]);
                this.rowS_OD_BOLOVANJE_FOND["ukupnobruto"]      = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["UKUPNOBRUTO"]);
                this.rowS_OD_BOLOVANJE_FOND["netoplaca"]        = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["NETOPLACA"]);
                this.rowS_OD_BOLOVANJE_FOND["FONDMJESECA"]      = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["FONDMJESECA"]);
                this.rowS_OD_BOLOVANJE_FOND["OIB"]              = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["OIB"]);
                this.rowS_OD_BOLOVANJE_FOND["BROJZDRAVSTVENOG"] = RuntimeHelpers.GetObjectValue(this.S_OD_BOLOVANJE_FONDSelect2["BROJZDRAVSTVENOG"]);
                this.AddRowS_od_bolovanje_fond();
                num++;
                this.rowS_OD_BOLOVANJE_FOND = this.S_OD_BOLOVANJE_FONDSet.S_OD_BOLOVANJE_FOND.NewS_OD_BOLOVANJE_FONDRow();
                this.cmS_OD_BOLOVANJE_FONDSelect2.HasMoreRows = this.S_OD_BOLOVANJE_FONDSelect2.Read();
            }
            this.S_OD_BOLOVANJE_FONDSelect2.Close();
            this.Cleanup();
        }
Exemple #2
0
 public virtual int FillPage(S_OD_BOLOVANJE_FONDDataSet dataSet, string oDD, string dOOO, int idradnik, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_BOLOVANJE_FONDSet = dataSet;
     this.rowS_OD_BOLOVANJE_FOND = this.S_OD_BOLOVANJE_FONDSet.S_OD_BOLOVANJE_FOND.NewS_OD_BOLOVANJE_FONDRow();
     this.SetFillParameters(oDD, dOOO, idradnik);
     this.AV8ODD     = oDD;
     this.AV9DOOO    = dOOO;
     this.AV10idradn = idradnik;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }