Exemple #1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_DD_IP1Select2 = this.connDefault.GetCommand("S_DD_IP1", true);
            this.cmS_DD_IP1Select2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_DD_IP1Select2.IDbCommand.Parameters.Clear();
            this.cmS_DD_IP1Select2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@GODINAISPLATE", this.AV8GODINAI));
            this.cmS_DD_IP1Select2.ErrorMask |= ErrorMask.Lock;
            this.S_DD_IP1Select2              = this.cmS_DD_IP1Select2.FetchData();
            while (this.cmS_DD_IP1Select2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_DD_IP1Select2.HasMoreRows = this.S_DD_IP1Select2.Read();
            }
            int num = 0;

            while (this.cmS_DD_IP1Select2.HasMoreRows && (num != maxRows))
            {
                this.rowS_DD_IP1["DDIDRADNIK"]               = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["DDIDRADNIK"]);
                this.rowS_DD_IP1["DDPREZIME"]                = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["DDPREZIME"]);
                this.rowS_DD_IP1["DDIME"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["DDIME"]);
                this.rowS_DD_IP1["BRUTO"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["BRUTO"]);
                this.rowS_DD_IP1["IZDACI"]                   = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["IZDACI"]);
                this.rowS_DD_IP1["DOPRINOSIIZ"]              = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["DOPRINOSIIZ"]);
                this.rowS_DD_IP1["POREZIPRIREZ"]             = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["POREZIPRIREZ"]);
                this.rowS_DD_IP1["NETO"]                     = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["NETO"]);
                this.rowS_DD_IP1["OPCINASTANOVANJAIDOPCINE"] = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["OPCINASTANOVANJAIDOPCINE"]);
                this.rowS_DD_IP1["P1422"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1422"]);
                this.rowS_DD_IP1["P1805"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1805"]);
                this.rowS_DD_IP1["P1457"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1457"]);
                this.rowS_DD_IP1["P1465"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1465"]);
                this.rowS_DD_IP1["P1473"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1473"]);
                this.rowS_DD_IP1["P1546"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1546"]);
                this.rowS_DD_IP1["P1570"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1570"]);
                this.rowS_DD_IP1["P1589"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1589"]);
                this.rowS_DD_IP1["P1597"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1597"]);
                this.rowS_DD_IP1["P1600"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1600"]);
                this.rowS_DD_IP1["P1813"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1813"]);
                this.rowS_DD_IP1["P1821"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1821"]);
                this.rowS_DD_IP1["P1830"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1830"]);
                this.rowS_DD_IP1["P1848"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["P1848"]);
                this.rowS_DD_IP1["DDJMBG"]                   = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["ddjmbg"]);
                this.rowS_DD_IP1["DDOIB"]                    = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["ddoib"]);
                this.rowS_DD_IP1["DDOZNACEN"]                = RuntimeHelpers.GetObjectValue(this.S_DD_IP1Select2["DDOZNACEN"]);
                this.AddRowS_dd_ip1();
                num++;
                this.rowS_DD_IP1 = this.S_DD_IP1Set.S_DD_IP1.NewS_DD_IP1Row();
                this.cmS_DD_IP1Select2.HasMoreRows = this.S_DD_IP1Select2.Read();
            }
            this.S_DD_IP1Select2.Close();
            this.Cleanup();
        }
Exemple #2
0
 public virtual int FillPage(S_DD_IP1DataSet dataSet, string gODINAISPLATE, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_DD_IP1Set = dataSet;
     this.rowS_DD_IP1 = this.S_DD_IP1Set.S_DD_IP1.NewS_DD_IP1Row();
     this.SetFillParameters(gODINAISPLATE);
     this.AV8GODINAI = gODINAISPLATE;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }