public virtual int Fill(DailyJournalDataTable dataTable, DateTime?date) { this.Adapter.SelectCommand = this.CommandCollection[0]; if (&date.HasValue) { this.Adapter.SelectCommand.Parameters[1].Value = &date.Value; } else { this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value; } if (this.ClearBeforeFill) { dataTable.Clear(); } int num = this.Adapter.Fill(dataTable); return(num); }