private void GetDailyLog()
 {
     try
     {
         dailyLog = new RegistryDAO().GetDailyLog();
     }
     catch (SqlException ex)
     {
         WebMsgBox.Show(this, String.Format("{0}:{1}", "Wyst¹pi³ problem z zapisaniem danych dziennika", ex.Message));
     }
     catch (Exception ex)
     {
         WebMsgBox.Show(this, String.Format("{0}:{1}", "Wyst¹pi³ problem z zapisaniem danych dziennika", ex.Message));
     }
 }
Beispiel #2
0
        public RegistryDTO GetDailyLog()
        {
            Database db = DatabaseFactory.CreateDatabase();

            if (db == null)
            {
                throw new Exception("");
            }
            RegistryDTO reg = new RegistryDTO();
            DbCommand   cmd = db.GetStoredProcCommand("Rejestry.pobierzDefinicjeDziennika");

            using (IDataReader dr = db.ExecuteReader(cmd))
            {
                if (dr.Read())
                {
                    reg.XslFo = dr["xslFo"].ToString();
                }
            };
            return(reg);
        }