示例#1
0
        public String CreateReport(DateOfOrder date)
        {
            String complete = @"FileReports\Report_" + DateTime.Now.ToString("dd-MM-yyyy") + "_" + HelperFunctions.GetRandomNumber() + ".txt";

            System.IO.File.WriteAllText(complete, ReportText.GetRegistredPharmacies() + "!    Report about consumption of medicine\n\n\n" + ReportText.getReportText(date));
            return(complete);
        }
示例#2
0
 public ReportService(MyDbContext context)
 {
     SftpService       = new SftpService();
     HelperFunctions   = new HelperFunctions();
     HttpService       = new HttpService();
     ReportText        = new ReportText(context);
     SmptServerService = new SmptServerService();
 }