Ejemplo n.º 1
0
 public virtual int FillPage(S_DD_LISTA_IZNOSA_RADNIKADataSet dataSet, string iDOBRACUN, int sORT, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_DD_LISTA_IZNOSA_RADNIKASet = dataSet;
     this.rowS_DD_LISTA_IZNOSA_RADNIKA = this.S_DD_LISTA_IZNOSA_RADNIKASet.S_DD_LISTA_IZNOSA_RADNIKA.NewS_DD_LISTA_IZNOSA_RADNIKARow();
     this.SetFillParameters(iDOBRACUN, sORT);
     this.AV8IDOBRAC = iDOBRACUN;
     this.AV9SORT    = sORT;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Ejemplo n.º 2
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2 = this.connDefault.GetCommand("S_DD_LISTA_IZNOSA_RADNIKA", true);
            this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.IDbCommand.Parameters.Clear();
            this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC));
            this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@SORT", this.AV9SORT));
            this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.ErrorMask |= ErrorMask.Lock;
            this.S_DD_LISTA_IZNOSA_RADNIKASelect2              = this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.FetchData();
            while (this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.HasMoreRows = this.S_DD_LISTA_IZNOSA_RADNIKASelect2.Read();
            }
            int num = 0;

            while (this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["DDIDRADNIK"]           = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["DDIDRADNIK"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["DDPREZIME"]            = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["DDPREZIME"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["DDIME"]                = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["DDIME"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["ukupnobruto"]          = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNOBRUTO"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["ukupnodoprinosi"]      = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNODOPRINOSI"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["UKUPNOPOREZ"]          = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNOPOREZ"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["UKUPNOPRIREZ"]         = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNOPRIREZ"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["ukupnoporeziprirez"]   = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNOPOREZIPRIREZ"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["netoplaca"]            = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["NETOPLACA"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["UKUPNODOPRINOSINA"]    = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNODOPRINOSINA"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["POREZKRIZNI"]          = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["POREZKRIZNI"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["netoplacamanjekrizni"] = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["NETOPLACAMANJEKRIZNI"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["NAZIVKATEGORIJA"]      = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["NAZIVKATEGORIJA"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["PDVDRUGIDOHODAK"]      = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["PDVDRUGIDOHODAK"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["ZAISPLATU"]            = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["ZAISPLATU"]);
                this.rowS_DD_LISTA_IZNOSA_RADNIKA["UKUPNOIZDACI"]         = RuntimeHelpers.GetObjectValue(this.S_DD_LISTA_IZNOSA_RADNIKASelect2["UKUPNOIZDACI"]);
                this.AddRowS_dd_lista_iznosa_radnika();
                num++;
                this.rowS_DD_LISTA_IZNOSA_RADNIKA = this.S_DD_LISTA_IZNOSA_RADNIKASet.S_DD_LISTA_IZNOSA_RADNIKA.NewS_DD_LISTA_IZNOSA_RADNIKARow();
                this.cmS_DD_LISTA_IZNOSA_RADNIKASelect2.HasMoreRows = this.S_DD_LISTA_IZNOSA_RADNIKASelect2.Read();
            }
            this.S_DD_LISTA_IZNOSA_RADNIKASelect2.Close();
            this.Cleanup();
        }