Пример #1
0
 public VW_GODINE_OBRACUNADataSet.VW_GODINE_OBRACUNARow AddVW_GODINE_OBRACUNARow(string gODINAOBRACUNA)
 {
     VW_GODINE_OBRACUNADataSet.VW_GODINE_OBRACUNARow row = (VW_GODINE_OBRACUNADataSet.VW_GODINE_OBRACUNARow) this.NewRow();
     row.ItemArray = new object[] { gODINAOBRACUNA };
     this.Rows.Add(row);
     return(row);
 }
Пример #2
0
 public virtual int FillPage(VW_GODINE_OBRACUNADataSet dataSet, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault           = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.VW_GODINE_OBRACUNASet = dataSet;
     this.rowVW_GODINE_OBRACUNA = this.VW_GODINE_OBRACUNASet.VW_GODINE_OBRACUNA.NewVW_GODINE_OBRACUNARow();
     this.orderString           = GetOrderString(this.Order, true);
     this.reverseOrderString    = GetOrderString(this.Order, false);
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Пример #3
0
        public void executePrivate(int startRow, int maxRows)
        {
            this.m_WhereString = "" + this.filterString + "  ";
            if (maxRows >= 0)
            {
                if (startRow == 0)
                {
                    this.scmdbuf = "SELECT TOP " + maxRows.ToString() + "  [GODINAOBRACUNA] FROM [VW_PLACA_GODINE_OBRACUNA]" + this.m_WhereString + "" + this.orderString + "";
                }
                else
                {
                    string[] strArray = new string[] { "SELECT TOP ", (startRow + maxRows).ToString(), "  [GODINAOBRACUNA] FROM [VW_PLACA_GODINE_OBRACUNA]", this.m_WhereString, "", this.orderString, "" };
                    this.scmdbuf = string.Concat(strArray);
                }
            }
            else
            {
                this.scmdbuf = "SELECT [GODINAOBRACUNA] FROM [VW_PLACA_GODINE_OBRACUNA]" + this.m_WhereString + "" + this.orderString + " ";
            }
            this.cmVW_GODINE_OBRACUNASelect2            = this.connDefault.GetCommand(this.scmdbuf, true);
            this.cmVW_GODINE_OBRACUNASelect2.ErrorMask |= ErrorMask.Lock;
            this.VW_GODINE_OBRACUNASelect2              = this.cmVW_GODINE_OBRACUNASelect2.FetchData();
            while (this.cmVW_GODINE_OBRACUNASelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmVW_GODINE_OBRACUNASelect2.HasMoreRows = this.VW_GODINE_OBRACUNASelect2.Read();
            }
            int num = 0;

            while (this.cmVW_GODINE_OBRACUNASelect2.HasMoreRows && (num != maxRows))
            {
                this.m_GODINAOBRACUNA      = this.dsDefault.Db.GetString(this.VW_GODINE_OBRACUNASelect2, 0, ref this.m__GODINAOBRACUNAIsNull);
                this.rowVW_GODINE_OBRACUNA = this.VW_GODINE_OBRACUNASet.VW_GODINE_OBRACUNA.NewVW_GODINE_OBRACUNARow();
                this.rowVW_GODINE_OBRACUNA["GODINAOBRACUNA"] = RuntimeHelpers.GetObjectValue(Interaction.IIf(this.m__GODINAOBRACUNAIsNull, RuntimeHelpers.GetObjectValue(Convert.DBNull), this.m_GODINAOBRACUNA));
                this.AddRowVw_godine_obracuna();
                num++;
                this.cmVW_GODINE_OBRACUNASelect2.HasMoreRows = this.VW_GODINE_OBRACUNASelect2.Read();
            }
            this.VW_GODINE_OBRACUNASelect2.Close();
            this.Cleanup();
        }
Пример #4
0
 public VW_GODINE_OBRACUNARowChangeEvent(VW_GODINE_OBRACUNADataSet.VW_GODINE_OBRACUNARow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Пример #5
0
 public void RemoveVW_GODINE_OBRACUNARow(VW_GODINE_OBRACUNADataSet.VW_GODINE_OBRACUNARow row)
 {
     this.Rows.Remove(row);
 }
Пример #6
0
 public void AddVW_GODINE_OBRACUNARow(VW_GODINE_OBRACUNADataSet.VW_GODINE_OBRACUNARow row)
 {
     this.Rows.Add(row);
 }