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

            while (this.cmS_OS_STANJE_LOKACIJASelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OS_STANJE_LOKACIJA["IDLOKACIJE"]   = RuntimeHelpers.GetObjectValue(this.S_OS_STANJE_LOKACIJASelect2["IDLOKACIJE"]);
                this.rowS_OS_STANJE_LOKACIJA["INVBROJ"]      = RuntimeHelpers.GetObjectValue(this.S_OS_STANJE_LOKACIJASelect2["INVBROJ"]);
                this.rowS_OS_STANJE_LOKACIJA["ULAZ"]         = RuntimeHelpers.GetObjectValue(this.S_OS_STANJE_LOKACIJASelect2["ULAZ"]);
                this.rowS_OS_STANJE_LOKACIJA["IZLAZ"]        = RuntimeHelpers.GetObjectValue(this.S_OS_STANJE_LOKACIJASelect2["IZLAZ"]);
                this.rowS_OS_STANJE_LOKACIJA["STANJE"]       = RuntimeHelpers.GetObjectValue(this.S_OS_STANJE_LOKACIJASelect2["STANJE"]);
                this.rowS_OS_STANJE_LOKACIJA["OPISLOKACIJE"] = RuntimeHelpers.GetObjectValue(this.S_OS_STANJE_LOKACIJASelect2["OPISLOKACIJE"]);
                this.AddRowS_os_stanje_lokacija();
                num++;
                this.rowS_OS_STANJE_LOKACIJA = this.S_OS_STANJE_LOKACIJASet.S_OS_STANJE_LOKACIJA.NewS_OS_STANJE_LOKACIJARow();
                this.cmS_OS_STANJE_LOKACIJASelect2.HasMoreRows = this.S_OS_STANJE_LOKACIJASelect2.Read();
            }
            this.S_OS_STANJE_LOKACIJASelect2.Close();
            this.Cleanup();
        }
Exemple #2
0
 public S_OS_STANJE_LOKACIJADataSet.S_OS_STANJE_LOKACIJARow AddS_OS_STANJE_LOKACIJARow(int iDLOKACIJE, long iNVBROJ, decimal uLAZ, decimal iZLAZ, decimal sTANJE, string oPISLOKACIJE)
 {
     S_OS_STANJE_LOKACIJADataSet.S_OS_STANJE_LOKACIJARow row = (S_OS_STANJE_LOKACIJADataSet.S_OS_STANJE_LOKACIJARow) this.NewRow();
     row.ItemArray = new object[] { iDLOKACIJE, iNVBROJ, uLAZ, iZLAZ, sTANJE, oPISLOKACIJE };
     this.Rows.Add(row);
     return(row);
 }
Exemple #3
0
 public virtual int Fill(S_OS_STANJE_LOKACIJADataSet dataSet, long invbroj)
 {
     this.Initialize();
     this.connDefault             = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OS_STANJE_LOKACIJASet = dataSet;
     this.rowS_OS_STANJE_LOKACIJA = this.S_OS_STANJE_LOKACIJASet.S_OS_STANJE_LOKACIJA.NewS_OS_STANJE_LOKACIJARow();
     this.SetFillParameters(invbroj);
     this.AV8invbroj = invbroj;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Exemple #4
0
 public S_OS_STANJE_LOKACIJARowChangeEvent(S_OS_STANJE_LOKACIJADataSet.S_OS_STANJE_LOKACIJARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Exemple #5
0
 public void RemoveS_OS_STANJE_LOKACIJARow(S_OS_STANJE_LOKACIJADataSet.S_OS_STANJE_LOKACIJARow row)
 {
     this.Rows.Remove(row);
 }
Exemple #6
0
 public void AddS_OS_STANJE_LOKACIJARow(S_OS_STANJE_LOKACIJADataSet.S_OS_STANJE_LOKACIJARow row)
 {
     this.Rows.Add(row);
 }