Example #1
0
 public VW_GODINE_ISPLATEDataSet.VW_GODINE_ISPLATERow AddVW_GODINE_ISPLATERow(string gODINAISPLATE)
 {
     VW_GODINE_ISPLATEDataSet.VW_GODINE_ISPLATERow row = (VW_GODINE_ISPLATEDataSet.VW_GODINE_ISPLATERow) this.NewRow();
     row.ItemArray = new object[] { gODINAISPLATE };
     this.Rows.Add(row);
     return(row);
 }
Example #2
0
 public virtual int FillPage(VW_GODINE_ISPLATEDataSet dataSet, int startRow, int maxRows)
 {
     this.Initialize();
     this.connDefault          = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction);
     this.VW_GODINE_ISPLATESet = dataSet;
     this.rowVW_GODINE_ISPLATE = this.VW_GODINE_ISPLATESet.VW_GODINE_ISPLATE.NewVW_GODINE_ISPLATERow();
     this.orderString          = GetOrderString(this.Order, true);
     this.reverseOrderString   = GetOrderString(this.Order, false);
     try
     {
         this.executePrivate(startRow, maxRows);
     }
     finally
     {
         this.Cleanup();
     }
     return(0);
 }
Example #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() + "  [godinaisplaTE] FROM [VW_PLACA_GODINE_ISPLATE]" + this.m_WhereString + "" + this.orderString + "";
                }
                else
                {
                    string[] strArray = new string[] { "SELECT TOP ", (startRow + maxRows).ToString(), "  [godinaisplaTE] FROM [VW_PLACA_GODINE_ISPLATE]", this.m_WhereString, "", this.orderString, "" };
                    this.scmdbuf = string.Concat(strArray);
                }
            }
            else
            {
                this.scmdbuf = "SELECT [godinaisplaTE] FROM [VW_PLACA_GODINE_ISPLATE]" + this.m_WhereString + "" + this.orderString + " ";
            }
            this.cmVW_GODINE_ISPLATESelect2            = this.connDefault.GetCommand(this.scmdbuf, true);
            this.cmVW_GODINE_ISPLATESelect2.ErrorMask |= ErrorMask.Lock;
            this.VW_GODINE_ISPLATESelect2              = this.cmVW_GODINE_ISPLATESelect2.FetchData();
            while (this.cmVW_GODINE_ISPLATESelect2.HasMoreRows && (startRow > 0))
            {
                startRow--;
                this.cmVW_GODINE_ISPLATESelect2.HasMoreRows = this.VW_GODINE_ISPLATESelect2.Read();
            }
            int num = 0;

            while (this.cmVW_GODINE_ISPLATESelect2.HasMoreRows && (num != maxRows))
            {
                this.m_GODINAISPLATE      = this.dsDefault.Db.GetString(this.VW_GODINE_ISPLATESelect2, 0, ref this.m__GODINAISPLATEIsNull);
                this.rowVW_GODINE_ISPLATE = this.VW_GODINE_ISPLATESet.VW_GODINE_ISPLATE.NewVW_GODINE_ISPLATERow();
                this.rowVW_GODINE_ISPLATE["GODINAISPLATE"] = RuntimeHelpers.GetObjectValue(Interaction.IIf(this.m__GODINAISPLATEIsNull, RuntimeHelpers.GetObjectValue(Convert.DBNull), this.m_GODINAISPLATE));
                this.AddRowVw_godine_isplate();
                num++;
                this.cmVW_GODINE_ISPLATESelect2.HasMoreRows = this.VW_GODINE_ISPLATESelect2.Read();
            }
            this.VW_GODINE_ISPLATESelect2.Close();
            this.Cleanup();
        }
Example #4
0
 public VW_GODINE_ISPLATERowChangeEvent(VW_GODINE_ISPLATEDataSet.VW_GODINE_ISPLATERow row, DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }
Example #5
0
 public void RemoveVW_GODINE_ISPLATERow(VW_GODINE_ISPLATEDataSet.VW_GODINE_ISPLATERow row)
 {
     this.Rows.Remove(row);
 }
Example #6
0
 public void AddVW_GODINE_ISPLATERow(VW_GODINE_ISPLATEDataSet.VW_GODINE_ISPLATERow row)
 {
     this.Rows.Add(row);
 }