Пример #1
0
        private void FillNotesDatabaseGrid()
        {
            try
            {
                DataTable NotesDatabaseDataTable = new DataTable();

                NotesDatabaseDataTable = VSWebBL.ConfiguratorBL.NotesDatabaseBL.Ins.GetAllData();
                if (NotesDatabaseDataTable.Rows.Count >= 0)
                {
                    Session["NotesDatabase"]         = NotesDatabaseDataTable;
                    NotesDatabaseGridView.DataSource = NotesDatabaseDataTable;
                    NotesDatabaseGridView.DataBind();
                }
            }
            catch (Exception ex)
            {
                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
            finally { }
        }
Пример #2
0
 private void FillNotesDatabaseFromSession()
 {
     try
     {
         DataTable NotesDatabaseDataTable = new DataTable();
         if (Session["NotesDatabase"] != null && Session["NotesDatabase"] != "")
         {
             NotesDatabaseDataTable = (DataTable)Session["NotesDatabase"];
         }
         if (NotesDatabaseDataTable.Rows.Count > 0)
         {
             NotesDatabaseGridView.DataSource = NotesDatabaseDataTable;
             NotesDatabaseGridView.DataBind();
         }
     }
     catch (Exception ex)
     {
         //6/27/2014 NS added for VSPLUS-634
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
         throw ex;
     }
     finally { }
 }