Beispiel #1
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OS_REKAP_TEMELJNICESelect2 = this.connDefault.GetCommand("S_OS_REKAP_TEMELJNICE", true);
            this.cmS_OS_REKAP_TEMELJNICESelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OS_REKAP_TEMELJNICESelect2.IDbCommand.Parameters.Clear();
            this.cmS_OS_REKAP_TEMELJNICESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@BROJOSTEMELJNICE", this.AV8BROJOST));
            this.cmS_OS_REKAP_TEMELJNICESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@vrstaostemeljnice", this.AV9vrstaos));
            this.cmS_OS_REKAP_TEMELJNICESelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OS_REKAP_TEMELJNICESelect2              = this.cmS_OS_REKAP_TEMELJNICESelect2.FetchData();
            while (this.cmS_OS_REKAP_TEMELJNICESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OS_REKAP_TEMELJNICESelect2.HasMoreRows = this.S_OS_REKAP_TEMELJNICESelect2.Read();
            }
            int num = 0;

            while (this.cmS_OS_REKAP_TEMELJNICESelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OS_REKAP_TEMELJNICE["KTONABAVKEIDKONTO"]  = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["KTONABAVKEIDKONTO"]);
                this.rowS_OS_REKAP_TEMELJNICE["KTOISPRAVKAIDKONTO"] = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["KTOISPRAVKAIDKONTO"]);
                this.rowS_OS_REKAP_TEMELJNICE["KTOIZVORAIDKONTO"]   = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["KTOIZVORAIDKONTO"]);
                this.rowS_OS_REKAP_TEMELJNICE["OSDUGUJE"]           = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["OSDUGUJE"]);
                this.rowS_OS_REKAP_TEMELJNICE["OSPOTRAZUJE"]        = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["OSPOTRAZUJE"]);
                this.rowS_OS_REKAP_TEMELJNICE["IDOSDOKUMENT"]       = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["IDOSDOKUMENT"]);
                this.rowS_OS_REKAP_TEMELJNICE["OSBROJDOKUMENTA"]    = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["OSBROJDOKUMENTA"]);
                this.rowS_OS_REKAP_TEMELJNICE["OSDATUMDOK"]         = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["OSDATUMDOK"]);
                this.rowS_OS_REKAP_TEMELJNICE["OSOPIS"]             = RuntimeHelpers.GetObjectValue(this.S_OS_REKAP_TEMELJNICESelect2["OSOPIS"]);
                this.AddRowS_os_rekap_temeljnice();
                num++;
                this.rowS_OS_REKAP_TEMELJNICE = this.S_OS_REKAP_TEMELJNICESet.S_OS_REKAP_TEMELJNICE.NewS_OS_REKAP_TEMELJNICERow();
                this.cmS_OS_REKAP_TEMELJNICESelect2.HasMoreRows = this.S_OS_REKAP_TEMELJNICESelect2.Read();
            }
            this.S_OS_REKAP_TEMELJNICESelect2.Close();
            this.Cleanup();
        }
Beispiel #2
0
 public virtual int FillPage(S_OS_REKAP_TEMELJNICEDataSet dataSet, int bROJOSTEMELJNICE, int vrstaostemeljnice, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OS_REKAP_TEMELJNICESet = dataSet;
     this.rowS_OS_REKAP_TEMELJNICE = this.S_OS_REKAP_TEMELJNICESet.S_OS_REKAP_TEMELJNICE.NewS_OS_REKAP_TEMELJNICERow();
     this.SetFillParameters(bROJOSTEMELJNICE, vrstaostemeljnice);
     this.AV8BROJOST = bROJOSTEMELJNICE;
     this.AV9vrstaos = vrstaostemeljnice;
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }