Exemplo n.º 1
0
        public bool SendReport(DateOfOrder date)
        {
            String report = ReportText.CreateReport(date);

            try
            {
                HttpRequests.UploadReportFile(report);
                SmptServerService.SendEMailNotification(report, "report");
                return(true);
            }
            catch (Exception e) { return(false); }
        }
Exemplo n.º 2
0
 public bool SendReport(DateOfOrder date)
 {
     try
     {
         String   report      = ReportText.CreateReport(date);
         String[] reportParts = report.Split('\\');
         SftpService.UploadFile(report, @"\pub\" + reportParts[1]);
         SmptServerService.SendEMailNotification(report, "report");
         return(true);
     }
     catch (Exception e) { return(false); }
 }