示例#1
0
 public virtual int FillPage(S_PLACA_KONACNI_REKAPOPCINEDataSet dataSet, string iDOBRACUN, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_PLACA_KONACNI_REKAPOPCINESet = dataSet;
     this.rowS_PLACA_KONACNI_REKAPOPCINE = this.S_PLACA_KONACNI_REKAPOPCINESet.S_PLACA_KONACNI_REKAPOPCINE.NewS_PLACA_KONACNI_REKAPOPCINERow();
     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_PLACA_KONACNI_REKAPOPCINESelect2 = this.connDefault.GetCommand("S_PLACA_KONACNI_REKAPOPCINE", true);
            this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.IDbCommand.Parameters.Clear();
            this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDOBRACUN", this.AV8IDOBRAC));
            this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.ErrorMask |= ErrorMask.Lock;
            this.S_PLACA_KONACNI_REKAPOPCINESelect2              = this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.FetchData();
            while (this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.HasMoreRows = this.S_PLACA_KONACNI_REKAPOPCINESelect2.Read();
            }
            int num = 0;

            while (this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_PLACA_KONACNI_REKAPOPCINE["PRIREZPOREZNA"]         = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["PRIREZPOREZNA"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["POREZPOREZNA"]          = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["POREZPOREZNA"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["SIFRAOPCINESTANOVANJA"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["SIFRAOPCINESTANOVANJA"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["PREZIME"]               = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["PREZIME"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["IME"]                   = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["IME"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["ulica"]                 = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["ULICA"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["mjesto"]                = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["MJESTO"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["kucnibroj"]             = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["KUCNIBROJ"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["OIB"]                   = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["OIB"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["NAZIVOPCINE"]           = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["NAZIVOPCINE"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["OBRACUNATIPRIREZ"]      = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["OBRACUNATIPRIREZ"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["OBRACUNATOPOREZ"]       = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["OBRACUNATOPOREZ"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["POREZUKUPNOKOREKCIJA"]  = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["POREZUKUPNOKOREKCIJA"]);
                this.rowS_PLACA_KONACNI_REKAPOPCINE["PRIREZUKUPNOKOREKCIJA"] = RuntimeHelpers.GetObjectValue(this.S_PLACA_KONACNI_REKAPOPCINESelect2["PRIREZUKUPNOKOREKCIJA"]);
                this.AddRowS_placa_konacni_rekapopcine();
                num++;
                this.rowS_PLACA_KONACNI_REKAPOPCINE = this.S_PLACA_KONACNI_REKAPOPCINESet.S_PLACA_KONACNI_REKAPOPCINE.NewS_PLACA_KONACNI_REKAPOPCINERow();
                this.cmS_PLACA_KONACNI_REKAPOPCINESelect2.HasMoreRows = this.S_PLACA_KONACNI_REKAPOPCINESelect2.Read();
            }
            this.S_PLACA_KONACNI_REKAPOPCINESelect2.Close();
            this.Cleanup();
        }