40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
|
using FlowerShopContracts.BusinessLogicsContracts;
|
|||
|
using Microsoft.Reporting.WinForms;
|
|||
|
using Microsoft.Extensions.Logging;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
|
|||
|
namespace ProjectFlowerShop
|
|||
|
{
|
|||
|
public partial class FormReportDateOrders : Form
|
|||
|
{
|
|||
|
private readonly ReportViewer reportViewer;
|
|||
|
|
|||
|
private readonly ILogger _logger;
|
|||
|
|
|||
|
private readonly IReportLogic _logic;
|
|||
|
public FormReportDateOrders(ILogger<FormReportDateOrders> logger, IReportLogic logic)
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
_logger = logger;
|
|||
|
_logic = logic;
|
|||
|
reportViewer = new ReportViewer
|
|||
|
{
|
|||
|
Dock = DockStyle.Fill
|
|||
|
};
|
|||
|
reportViewer.LocalReport.LoadReportDefinition(new FileStream("ReportOrdersByDate.rdlc", FileMode.Open));
|
|||
|
panel.Controls.Add(reportViewer);
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|