Example #1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_FIN_IRA_PLACANJESelect2 = this.connDefault.GetCommand("S_FIN_IRA_PLACANJE", true);
            this.cmS_FIN_IRA_PLACANJESelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_FIN_IRA_PLACANJESelect2.IDbCommand.Parameters.Clear();
            this.cmS_FIN_IRA_PLACANJESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDDOKUMENT", this.AV8IDDOKUM));
            this.cmS_FIN_IRA_PLACANJESelect2.ErrorMask |= ErrorMask.Lock;
            this.S_FIN_IRA_PLACANJESelect2              = this.cmS_FIN_IRA_PLACANJESelect2.FetchData();
            while (this.cmS_FIN_IRA_PLACANJESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_FIN_IRA_PLACANJESelect2.HasMoreRows = this.S_FIN_IRA_PLACANJESelect2.Read();
            }
            int num = 0;

            while (this.cmS_FIN_IRA_PLACANJESelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_FIN_IRA_PLACANJE["ZATVARANJE_IZNOS"]    = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["ZATVARANJE_IZNOS"]);
                this.rowS_FIN_IRA_PLACANJE["ZATVARANJE_DATUM"]    = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["ZATVARANJE_DATUM"]);
                this.rowS_FIN_IRA_PLACANJE["IRABROJ"]             = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRABROJ"]);
                this.rowS_FIN_IRA_PLACANJE["IDTIPIRA"]            = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IDTIPIRA"]);
                this.rowS_FIN_IRA_PLACANJE["IRAPARTNERIDPARTNER"] = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRAPARTNERIDPARTNER"]);
                this.rowS_FIN_IRA_PLACANJE["IRAUKUPNO"]           = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRAUKUPNO"]);
                this.rowS_FIN_IRA_PLACANJE["IRAVALUTA"]           = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRAVALUTA"]);
                this.rowS_FIN_IRA_PLACANJE["IRANAPOMENA"]         = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRANAPOMENA"]);
                this.rowS_FIN_IRA_PLACANJE["IRADATUM"]            = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRADATUM"]);
                this.rowS_FIN_IRA_PLACANJE["IRAGODIDGODINE"]      = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRAGODIDGODINE"]);
                this.rowS_FIN_IRA_PLACANJE["IRADOKIDDOKUMENT"]    = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IRADOKIDDOKUMENT"]);
                this.rowS_FIN_IRA_PLACANJE["NAZIVPARTNER"]        = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["NAZIVPARTNER"]);
                this.rowS_FIN_IRA_PLACANJE["PARTNEROIB"]          = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["PARTNEROIB"]);
                this.rowS_FIN_IRA_PLACANJE["Status"]    = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["Status"]);
                this.rowS_FIN_IRA_PLACANJE["NEPODLEZE"] = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["NEPODLEZE"]);
                this.rowS_FIN_IRA_PLACANJE["IZVOZ"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["IZVOZ"]);
                this.rowS_FIN_IRA_PLACANJE["MEDJTRANS"] = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["MEDJTRANS"]);
                this.rowS_FIN_IRA_PLACANJE["TUZEMSTVO"] = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["TUZEMSTVO"]);
                this.rowS_FIN_IRA_PLACANJE["OSTALO"]    = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["OSTALO"]);
                this.rowS_FIN_IRA_PLACANJE["NULA"]      = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["NULA"]);
                this.rowS_FIN_IRA_PLACANJE["OSN10"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["OSN10"]);
                this.rowS_FIN_IRA_PLACANJE["OSN22"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["OSN22"]);
                this.rowS_FIN_IRA_PLACANJE["OSN23"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["OSN23"]);
                this.rowS_FIN_IRA_PLACANJE["OSN25"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["OSN25"]);
                this.rowS_FIN_IRA_PLACANJE["PDV10"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["PDV10"]);
                this.rowS_FIN_IRA_PLACANJE["PDV22"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["PDV22"]);
                this.rowS_FIN_IRA_PLACANJE["PDV23"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["PDV23"]);
                this.rowS_FIN_IRA_PLACANJE["PDV25"]     = RuntimeHelpers.GetObjectValue(this.S_FIN_IRA_PLACANJESelect2["PDV25"]);
                this.AddRowS_fin_ira_placanje();
                num++;
                this.rowS_FIN_IRA_PLACANJE = this.S_FIN_IRA_PLACANJESet.S_FIN_IRA_PLACANJE.NewS_FIN_IRA_PLACANJERow();
                this.cmS_FIN_IRA_PLACANJESelect2.HasMoreRows = this.S_FIN_IRA_PLACANJESelect2.Read();
            }
            this.S_FIN_IRA_PLACANJESelect2.Close();
            this.Cleanup();
        }
Example #2
0
 public virtual int FillPage(S_FIN_IRA_PLACANJEDataSet dataSet, int iDDOKUMENT, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault           = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_FIN_IRA_PLACANJESet = dataSet;
     this.rowS_FIN_IRA_PLACANJE = this.S_FIN_IRA_PLACANJESet.S_FIN_IRA_PLACANJE.NewS_FIN_IRA_PLACANJERow();
     this.SetFillParameters(iDDOKUMENT);
     this.AV8IDDOKUM = iDDOKUMENT;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }