Esempio n. 1
0
        public static void GenerateReport(int id, DateTime from, DateTime until)
        {
            var reservatios = ReservationDao.FindAllSubmittedBy_between(id, from.Ticks, until.Ticks);

            if (reservatios.Count > 0)
            {
                File.WriteAllText("report.txt",
                                  String.Join(Environment.NewLine, reservatios.Select(x => x.ToString())));
                Process.Start("report.txt");
            }
        }