示例#1
0
 public virtual int FillPage(S_OD_REKAP_OLAKSICEDataSet dataSet, string iDOBRACUN, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault            = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_REKAP_OLAKSICESet = dataSet;
     this.rowS_OD_REKAP_OLAKSICE = this.S_OD_REKAP_OLAKSICESet.S_OD_REKAP_OLAKSICE.NewS_OD_REKAP_OLAKSICERow();
     this.SetFillParameters(iDOBRACUN);
     this.AV8IDOBRAC = iDOBRACUN;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
示例#2
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_REKAP_OLAKSICESelect2 = this.connDefault.GetCommand("S_PLACA_OLAKSICE", true);
            this.cmS_OD_REKAP_OLAKSICESelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_REKAP_OLAKSICESelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_REKAP_OLAKSICESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC));
            this.cmS_OD_REKAP_OLAKSICESelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_REKAP_OLAKSICESelect2              = this.cmS_OD_REKAP_OLAKSICESelect2.FetchData();
            while (this.cmS_OD_REKAP_OLAKSICESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_REKAP_OLAKSICESelect2.HasMoreRows = this.S_OD_REKAP_OLAKSICESelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_REKAP_OLAKSICESelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_REKAP_OLAKSICE["MOOLAKSICA"]                   = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["MOOLAKSICA"]);
                this.rowS_OD_REKAP_OLAKSICE["POOLAKSICA"]                   = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["POOLAKSICA"]);
                this.rowS_OD_REKAP_OLAKSICE["IDRADNIK"]                     = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["IDRADNIK"]);
                this.rowS_OD_REKAP_OLAKSICE["PREZIME"]                      = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["PREZIME"]);
                this.rowS_OD_REKAP_OLAKSICE["IME"]                          = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["IME"]);
                this.rowS_OD_REKAP_OLAKSICE["JMBG"]                         = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["JMBG"]);
                this.rowS_OD_REKAP_OLAKSICE["IDOLAKSICE"]                   = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["IDOLAKSICE"]);
                this.rowS_OD_REKAP_OLAKSICE["OBRACUNATAOLAKSICA"]           = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["OBRACUNATAOLAKSICA"]);
                this.rowS_OD_REKAP_OLAKSICE["NAZIVOLAKSICE"]                = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["NAZIVOLAKSICE"]);
                this.rowS_OD_REKAP_OLAKSICE["NAZIVGRUPEOLAKSICA"]           = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["NAZIVGRUPEOLAKSICA"]);
                this.rowS_OD_REKAP_OLAKSICE["IZNOSOLAKSICE"]                = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["IZNOSOLAKSICE"]);
                this.rowS_OD_REKAP_OLAKSICE["IDTIPOLAKSICE"]                = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["IDTIPOLAKSICE"]);
                this.rowS_OD_REKAP_OLAKSICE["NAZIVTIPOLAKSICE"]             = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["NAZIVTIPOLAKSICE"]);
                this.rowS_OD_REKAP_OLAKSICE["PRIMATELJOLAKSICA1"]           = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["PRIMATELJOLAKSICA1"]);
                this.rowS_OD_REKAP_OLAKSICE["PRIMATELJOLAKSICA2"]           = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["PRIMATELJOLAKSICA2"]);
                this.rowS_OD_REKAP_OLAKSICE["IZNOSPOREZNOPRIZNATEOLAKSICE"] = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["IZNOSPOREZNOPRIZNATEOLAKSICE"]);
                this.rowS_OD_REKAP_OLAKSICE["ZADPOJEDINACNIPOZIV"]          = RuntimeHelpers.GetObjectValue(this.S_OD_REKAP_OLAKSICESelect2["ZADPOJEDINACNIPOZIV"]);
                this.AddRowS_od_rekap_olaksice();
                num++;
                this.rowS_OD_REKAP_OLAKSICE = this.S_OD_REKAP_OLAKSICESet.S_OD_REKAP_OLAKSICE.NewS_OD_REKAP_OLAKSICERow();
                this.cmS_OD_REKAP_OLAKSICESelect2.HasMoreRows = this.S_OD_REKAP_OLAKSICESelect2.Read();
            }
            this.S_OD_REKAP_OLAKSICESelect2.Close();
            this.Cleanup();
        }