Exemplo n.º 1
0
 public void AddDefaultReportHeader(SimpleReport report, WorkPeriod workPeriod, string caption)
 {
     report.AddHeader("Samba POS");
     report.AddHeader(caption);
     if (workPeriod.EndDate > workPeriod.StartDate)
     {
         report.AddHeader(workPeriod.StartDate.ToString("dd MMMM yyyy HH:mm") +
                          " - " + workPeriod.EndDate.ToString("dd MMMM yyyy HH:mm"));
     }
     else
     {
         report.AddHeader(workPeriod.StartDate.ToString("dd MMMM yyyy HH:mm") +
                          " - " + DateTime.Now.ToString("dd MMMM yyyy HH:mm"));
     }
 }
Exemplo n.º 2
0
        public void AddDefaultReportHeader(SimpleReport report, WorkPeriod workPeriod, string caption)
        {
            var userInfo = _settingService.ProgramSettings.UserInfo;

            report.AddHeader(!string.IsNullOrEmpty(userInfo) ? userInfo : "Novillero");
            report.AddHeader(caption);
            if (workPeriod.EndDate > workPeriod.StartDate)
            {
                report.AddHeader(workPeriod.StartDate.ToString("dd MMMM yyyy HH:mm") +
                                 " - " + workPeriod.EndDate.ToString("dd MMMM yyyy HH:mm"));
            }
            else
            {
                report.AddHeader(workPeriod.StartDate.ToString("dd MMMM yyyy HH:mm") +
                                 " - " + DateTime.Now.ToString("dd MMMM yyyy HH:mm"));
            }
        }