Пример #1
0
 public S_OD_STANJE_OBUSTAVADataSet.S_OD_STANJE_OBUSTAVARow AddS_OD_STANJE_OBUSTAVARow(int iDOBUSTAVA, int iDRADNIK, decimal oTPLACENO, decimal bROJRATA)
 {
     S_OD_STANJE_OBUSTAVADataSet.S_OD_STANJE_OBUSTAVARow row = (S_OD_STANJE_OBUSTAVADataSet.S_OD_STANJE_OBUSTAVARow) this.NewRow();
     row.ItemArray = new object[] { iDOBUSTAVA, iDRADNIK, oTPLACENO, bROJRATA };
     this.Rows.Add(row);
     return(row);
 }
Пример #2
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.cmS_OD_STANJE_OBUSTAVASelect2 = this.connDefault.GetCommand("S_PLACA_STANJE_OBUSTAVA", true);
            this.cmS_OD_STANJE_OBUSTAVASelect2.IDbCommand.CommandType = CommandType.StoredProcedure;
            this.cmS_OD_STANJE_OBUSTAVASelect2.IDbCommand.Parameters.Clear();
            this.cmS_OD_STANJE_OBUSTAVASelect2.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@idobracun", this.AV8idobrac));
            this.cmS_OD_STANJE_OBUSTAVASelect2.ErrorMask |= ErrorMask.Lock;
            this.S_OD_STANJE_OBUSTAVASelect2              = this.cmS_OD_STANJE_OBUSTAVASelect2.FetchData();
            while (this.cmS_OD_STANJE_OBUSTAVASelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmS_OD_STANJE_OBUSTAVASelect2.HasMoreRows = this.S_OD_STANJE_OBUSTAVASelect2.Read();
            }
            int num = 0;

            while (this.cmS_OD_STANJE_OBUSTAVASelect2.HasMoreRows && (num != maxRows))
            {
                this.rowS_OD_STANJE_OBUSTAVA["IDOBUSTAVA"] = RuntimeHelpers.GetObjectValue(this.S_OD_STANJE_OBUSTAVASelect2["IDOBUSTAVA"]);
                this.rowS_OD_STANJE_OBUSTAVA["IDRADNIK"]   = RuntimeHelpers.GetObjectValue(this.S_OD_STANJE_OBUSTAVASelect2["IDRADNIK"]);
                this.rowS_OD_STANJE_OBUSTAVA["OTPLACENO"]  = RuntimeHelpers.GetObjectValue(this.S_OD_STANJE_OBUSTAVASelect2["OTPLACENO"]);
                this.rowS_OD_STANJE_OBUSTAVA["BROJRATA"]   = RuntimeHelpers.GetObjectValue(this.S_OD_STANJE_OBUSTAVASelect2["BROJRATA"]);
                this.AddRowS_od_stanje_obustava();
                num++;
                this.rowS_OD_STANJE_OBUSTAVA = this.S_OD_STANJE_OBUSTAVASet.S_OD_STANJE_OBUSTAVA.NewS_OD_STANJE_OBUSTAVARow();
                this.cmS_OD_STANJE_OBUSTAVASelect2.HasMoreRows = this.S_OD_STANJE_OBUSTAVASelect2.Read();
            }
            this.S_OD_STANJE_OBUSTAVASelect2.Close();
            this.Cleanup();
        }
Пример #3
0
 public virtual int Fill(S_OD_STANJE_OBUSTAVADataSet dataSet, string idobracun)
 {
     this.Initialize();
     this.connDefault             = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.S_OD_STANJE_OBUSTAVASet = dataSet;
     this.rowS_OD_STANJE_OBUSTAVA = this.S_OD_STANJE_OBUSTAVASet.S_OD_STANJE_OBUSTAVA.NewS_OD_STANJE_OBUSTAVARow();
     this.SetFillParameters(idobracun);
     this.AV8idobrac = idobracun;
     try
     {
         this.executePrivate(0, -1);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Пример #4
0
 public S_OD_STANJE_OBUSTAVARowChangeEvent(S_OD_STANJE_OBUSTAVADataSet.S_OD_STANJE_OBUSTAVARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Пример #5
0
 public void RemoveS_OD_STANJE_OBUSTAVARow(S_OD_STANJE_OBUSTAVADataSet.S_OD_STANJE_OBUSTAVARow row)
 {
     this.Rows.Remove(row);
 }
Пример #6
0
 public void AddS_OD_STANJE_OBUSTAVARow(S_OD_STANJE_OBUSTAVADataSet.S_OD_STANJE_OBUSTAVARow row)
 {
     this.Rows.Add(row);
 }