diff --git a/AircraftPlant/AircraftPlantBusinessLogic/BusinessLogics/ReportLogic.cs b/AircraftPlant/AircraftPlantBusinessLogic/BusinessLogics/ReportLogic.cs
index 12294d1..52ea7b6 100644
--- a/AircraftPlant/AircraftPlantBusinessLogic/BusinessLogics/ReportLogic.cs
+++ b/AircraftPlant/AircraftPlantBusinessLogic/BusinessLogics/ReportLogic.cs
@@ -68,7 +68,7 @@ namespace AircraftPlantBusinessLogic.BusinessLogics
DateCreate = x.DateCreate,
PlaneName = x.PlaneName,
OrderStatus = x.Status.ToString(),
- Sum = x.Sum
+ Sum = x.Sum,
})
.ToList();
}
@@ -76,7 +76,7 @@ namespace AircraftPlantBusinessLogic.BusinessLogics
/// Сохранение компонент в файл-Word
///
///
- public void SaveComponentsToWordFile(ReportBindingModel model)
+ public void SavePlanesToWordFile(ReportBindingModel model)
{
_saveToWord.CreateDoc(new WordInfo
{
diff --git a/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToPdf.cs b/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToPdf.cs
index 2022235..5d3f6fd 100644
--- a/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToPdf.cs
+++ b/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToPdf.cs
@@ -25,7 +25,7 @@ namespace AircraftPlantBusinessLogic.OfficePackage
CreateRow(new PdfRowParameters
{
- Texts = new List { "Номер", "Дата заказа", "Мороженое", "Статус", "Сумма" },
+ Texts = new List { "Номер", "Дата заказа", "Самолёт", "Сумма", "Статус" },
Style = "NormalTitle",
ParagraphAlignment = PdfParagraphAlignmentType.Center
});
@@ -35,7 +35,7 @@ namespace AircraftPlantBusinessLogic.OfficePackage
CreateRow(new PdfRowParameters
{
Texts = new List { order.Id.ToString(), order.DateCreate.ToShortDateString(), order.PlaneName,
- order.OrderStatus, order.Sum.ToString() },
+ order.Sum.ToString(), order.OrderStatus},
Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Left
});
diff --git a/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToWord.cs b/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToWord.cs
index baaa7c2..79ed90c 100644
--- a/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToWord.cs
+++ b/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/AbstractSaveToWord.cs
@@ -22,11 +22,13 @@ namespace AircraftPlantBusinessLogic.OfficePackage
JustificationType = WordJustificationType.Center
}
});
- foreach (var plane in info.Planes)
+ foreach (var component in info.Planes)
{
CreateParagraph(new WordParagraph
{
- Texts = new List<(string, WordTextProperties)> { (plane.PlaneName, new WordTextProperties { Size = "24", }) },
+ Texts = new List<(string, WordTextProperties)> { (component.PlaneName, new WordTextProperties { Size = "24", Bold = true }),
+ (" стоит " + component.Price.ToString() + " рублей", new WordTextProperties { Size = "24"})
+ },
TextProperties = new WordTextProperties
{
Size = "24",
diff --git a/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/Implements/SaveToWord .cs b/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/Implements/SaveToWord .cs
index 5c93cb0..e02093f 100644
--- a/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/Implements/SaveToWord .cs
+++ b/AircraftPlant/AircraftPlantBusinessLogic/OfficePackage/Implements/SaveToWord .cs
@@ -6,10 +6,8 @@ using DocumentFormat.OpenXml.Wordprocessing;
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
-using static System.Net.Mime.MediaTypeNames;
namespace AircraftPlantBusinessLogic.OfficePackage.Implements
{
@@ -113,7 +111,7 @@ namespace AircraftPlantBusinessLogic.OfficePackage.Implements
}
_docBody.AppendChild(CreateSectionProperties());
_wordDocument.MainDocumentPart!.Document.Save();
- _wordDocument.Close();
+ _wordDocument.Dispose();
}
}
}
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantContracts»/BusinessLogicsContracts/IReportLogic.cs b/AircraftPlant/AircraftPlantContracts»/BusinessLogicsContracts/IReportLogic.cs
index 64d7685..a2c0a3a 100644
--- a/AircraftPlant/AircraftPlantContracts»/BusinessLogicsContracts/IReportLogic.cs
+++ b/AircraftPlant/AircraftPlantContracts»/BusinessLogicsContracts/IReportLogic.cs
@@ -25,7 +25,7 @@ namespace AircraftPlantContracts.BusinessLogicsContracts
/// Сохранение компонент в файл-Word
///
///
- void SaveComponentsToWordFile(ReportBindingModel model);
+ void SavePlanesToWordFile(ReportBindingModel model);
///
/// Сохранение компонент с указаеним продуктов в файл-Excel
///
diff --git a/AircraftPlant/AircraftPlantContracts»/ViewModels/ReportOrdersViewModel.cs b/AircraftPlant/AircraftPlantContracts»/ViewModels/ReportOrdersViewModel.cs
index 4cdd4f8..05db6d7 100644
--- a/AircraftPlant/AircraftPlantContracts»/ViewModels/ReportOrdersViewModel.cs
+++ b/AircraftPlant/AircraftPlantContracts»/ViewModels/ReportOrdersViewModel.cs
@@ -11,7 +11,7 @@ namespace AircraftPlantContracts.ViewModels
public int Id { get; set; }
public DateTime DateCreate { get; set; }
public string PlaneName { get; set; } = string.Empty;
- public string OrderStatus { get; set; } = string.Empty;
public double Sum { get; set; }
+ public string OrderStatus { get; set; } = string.Empty;
}
}
diff --git a/AircraftPlant/AircraftPlantDatabaseImplement/Implements/OrderStorage.cs b/AircraftPlant/AircraftPlantDatabaseImplement/Implements/OrderStorage.cs
index cad61b5..9cfb628 100644
--- a/AircraftPlant/AircraftPlantDatabaseImplement/Implements/OrderStorage.cs
+++ b/AircraftPlant/AircraftPlantDatabaseImplement/Implements/OrderStorage.cs
@@ -20,11 +20,19 @@ namespace AircraftPlantDatabaseImplement.Implements
public List GetFilteredList(OrderSearchModel model)
{
- if (!model.Id.HasValue)
+ if (!model.Id.HasValue && !model.DateFrom.HasValue)
{
return new();
}
using var context = new AircraftPlantDatabase();
+ if (model.DateFrom.HasValue)
+ {
+ return context.Orders
+ .Include(x => x.Plane)
+ .Where(x => x.DateCreate >= model.DateFrom && x.DateCreate <= model.DateTo)
+ .Select(x => x.GetViewModel)
+ .ToList();
+ }
return context.Orders
.Include(x => x.Plane)
.Where(x => x.Id == model.Id)
diff --git a/AircraftPlant/AircraftPlantView/FormMain.Designer.cs b/AircraftPlant/AircraftPlantView/FormMain.Designer.cs
index dcbef40..6c0ef74 100644
--- a/AircraftPlant/AircraftPlantView/FormMain.Designer.cs
+++ b/AircraftPlant/AircraftPlantView/FormMain.Designer.cs
@@ -163,20 +163,23 @@
// списокКомпонентовToolStripMenuItem
//
списокКомпонентовToolStripMenuItem.Name = "списокКомпонентовToolStripMenuItem";
- списокКомпонентовToolStripMenuItem.Size = new Size(276, 26);
- списокКомпонентовToolStripMenuItem.Text = "Список компонентов";
+ списокКомпонентовToolStripMenuItem.Size = new Size(284, 26);
+ списокКомпонентовToolStripMenuItem.Text = "Список самолётов";
+ списокКомпонентовToolStripMenuItem.Click += СписокСамолётовToolStripMenuItem_Click;
//
// компонентыПоИзделиямToolStripMenuItem
//
компонентыПоИзделиямToolStripMenuItem.Name = "компонентыПоИзделиямToolStripMenuItem";
- компонентыПоИзделиямToolStripMenuItem.Size = new Size(276, 26);
- компонентыПоИзделиямToolStripMenuItem.Text = "Компоненты по изделиям";
+ компонентыПоИзделиямToolStripMenuItem.Size = new Size(284, 26);
+ компонентыПоИзделиямToolStripMenuItem.Text = "Компоненты по самолётам";
+ компонентыПоИзделиямToolStripMenuItem.Click += КомпонентыПоСамолётамToolStripMenuItem_Click;
//
// списокЗаказовToolStripMenuItem
//
списокЗаказовToolStripMenuItem.Name = "списокЗаказовToolStripMenuItem";
- списокЗаказовToolStripMenuItem.Size = new Size(276, 26);
+ списокЗаказовToolStripMenuItem.Size = new Size(284, 26);
списокЗаказовToolStripMenuItem.Text = "Список заказов";
+ списокЗаказовToolStripMenuItem.Click += СписокЗаказовToolStripMenuItem_Click;
//
// FormMain
//
diff --git a/AircraftPlant/AircraftPlantView/FormMain.cs b/AircraftPlant/AircraftPlantView/FormMain.cs
index 3670437..1f0d511 100644
--- a/AircraftPlant/AircraftPlantView/FormMain.cs
+++ b/AircraftPlant/AircraftPlantView/FormMain.cs
@@ -32,11 +32,14 @@ namespace AircraftPlantView
///
///
///
- public FormMain(ILogger logger, IOrderLogic logic)
+ private readonly IReportLogic _reportLogic;
+
+ public FormMain(ILogger logger, IOrderLogic orderLogic, IReportLogic reportLogic)
{
InitializeComponent();
_logger = logger;
- _orderLogic = logic;
+ _orderLogic = orderLogic;
+ _reportLogic = reportLogic;
}
///
/// Загрузка списка заказов
@@ -202,5 +205,33 @@ namespace AircraftPlantView
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
+ private void СписокСамолётовToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
+ if (dialog.ShowDialog() == DialogResult.OK)
+ {
+ _reportLogic.SavePlanesToWordFile(new ReportBindingModel { FileName = dialog.FileName });
+ MessageBox.Show("Выполнено", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
+
+ private void КомпонентыПоСамолётамToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ var service = Program.ServiceProvider?.GetService(typeof(FormReportPlaneComponents));
+ if (service is FormReportPlaneComponents form)
+ {
+ form.ShowDialog();
+ }
+ }
+
+ private void СписокЗаказовToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ var service = Program.ServiceProvider?.GetService(typeof(FormReportOrders));
+ if (service is FormReportOrders form)
+ {
+ form.ShowDialog();
+ }
+ }
+
}
}
diff --git a/AircraftPlant/AircraftPlantView/FormReportOrders .rdlc b/AircraftPlant/AircraftPlantView/FormReportOrders .rdlc
deleted file mode 100644
index 529692c..0000000
--- a/AircraftPlant/AircraftPlantView/FormReportOrders .rdlc
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
- true
- true
-
-
-
-
-
-
-
-
-
-
-
- Textbox1
- 0.6cm
- 2.5cm
-
-
- 2pt
- 2pt
- 2pt
- 2pt
-
-
-
- 4.16379in
-
-
- 7.34109in
-
- 29.7cm
- 21cm
- 2cm
- 2cm
- 2cm
- 2cm
- 0.13cm
-
-
- 0
- Cm
- be18fa94-6b6c-4e14-a717-f3c00f78076b
-
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantView/FormReportOrders.Designer.cs b/AircraftPlant/AircraftPlantView/FormReportOrders.Designer.cs
new file mode 100644
index 0000000..18279ae
--- /dev/null
+++ b/AircraftPlant/AircraftPlantView/FormReportOrders.Designer.cs
@@ -0,0 +1,130 @@
+namespace AircraftPlantView
+{
+ partial class FormReportOrders
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ panel = new Panel();
+ label2 = new Label();
+ label1 = new Label();
+ ButtonToPdf = new Button();
+ ButtonCreateReport = new Button();
+ dateTimePickerTo = new DateTimePicker();
+ dateTimePickerFrom = new DateTimePicker();
+ panel.SuspendLayout();
+ SuspendLayout();
+ //
+ // panel
+ //
+ panel.Controls.Add(label2);
+ panel.Controls.Add(label1);
+ panel.Controls.Add(ButtonToPdf);
+ panel.Controls.Add(ButtonCreateReport);
+ panel.Controls.Add(dateTimePickerTo);
+ panel.Controls.Add(dateTimePickerFrom);
+ panel.Dock = DockStyle.Top;
+ panel.Location = new Point(0, 0);
+ panel.Name = "panel";
+ panel.Size = new Size(1322, 69);
+ panel.TabIndex = 0;
+ //
+ // label2
+ //
+ label2.AutoSize = true;
+ label2.Location = new Point(296, 25);
+ label2.Name = "label2";
+ label2.Size = new Size(27, 20);
+ label2.TabIndex = 2;
+ label2.Text = "по";
+ //
+ // label1
+ //
+ label1.AutoSize = true;
+ label1.Location = new Point(3, 24);
+ label1.Name = "label1";
+ label1.Size = new Size(18, 20);
+ label1.TabIndex = 1;
+ label1.Text = "С";
+ //
+ // ButtonToPdf
+ //
+ ButtonToPdf.Location = new Point(995, 20);
+ ButtonToPdf.Name = "ButtonToPdf";
+ ButtonToPdf.Size = new Size(286, 29);
+ ButtonToPdf.TabIndex = 3;
+ ButtonToPdf.Text = "Сохранить в PDF";
+ ButtonToPdf.UseVisualStyleBackColor = true;
+ ButtonToPdf.Click += ButtonToPdf_Click;
+ //
+ // ButtonCreateReport
+ //
+ ButtonCreateReport.Location = new Point(679, 20);
+ ButtonCreateReport.Name = "ButtonCreateReport";
+ ButtonCreateReport.Size = new Size(286, 29);
+ ButtonCreateReport.TabIndex = 2;
+ ButtonCreateReport.Text = "Вывести отчёт";
+ ButtonCreateReport.UseVisualStyleBackColor = true;
+ ButtonCreateReport.Click += ButtonCreateReport_Click;
+ //
+ // dateTimePickerTo
+ //
+ dateTimePickerTo.Location = new Point(342, 22);
+ dateTimePickerTo.Name = "dateTimePickerTo";
+ dateTimePickerTo.Size = new Size(250, 27);
+ dateTimePickerTo.TabIndex = 1;
+ //
+ // dateTimePickerFrom
+ //
+ dateTimePickerFrom.Location = new Point(27, 20);
+ dateTimePickerFrom.Name = "dateTimePickerFrom";
+ dateTimePickerFrom.Size = new Size(250, 27);
+ dateTimePickerFrom.TabIndex = 0;
+ //
+ // FormReportOrders
+ //
+ AutoScaleDimensions = new SizeF(8F, 20F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(1322, 528);
+ Controls.Add(panel);
+ Name = "FormReportOrders";
+ Text = "Заказы";
+ panel.ResumeLayout(false);
+ panel.PerformLayout();
+ ResumeLayout(false);
+ }
+
+ #endregion
+
+ private Panel panel;
+ private Label label2;
+ private Label label1;
+ private Button ButtonToPdf;
+ private Button ButtonCreateReport;
+ private DateTimePicker dateTimePickerTo;
+ private DateTimePicker dateTimePickerFrom;
+ }
+}
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantView/FormReportOrders.cs b/AircraftPlant/AircraftPlantView/FormReportOrders.cs
new file mode 100644
index 0000000..fbad352
--- /dev/null
+++ b/AircraftPlant/AircraftPlantView/FormReportOrders.cs
@@ -0,0 +1,99 @@
+using AircraftPlantContracts.BindingModels;
+using AircraftPlantContracts.BusinessLogicsContracts;
+using Microsoft.Extensions.Logging;
+using Microsoft.Reporting.WinForms;
+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 AircraftPlantView
+{
+ public partial class FormReportOrders : Form
+ {
+ private readonly ReportViewer reportViewer;
+
+ private readonly ILogger _logger;
+
+ private readonly IReportLogic _logic;
+
+ public FormReportOrders(ILogger logger, IReportLogic logic)
+ {
+ InitializeComponent();
+ _logger = logger;
+ _logic = logic;
+ reportViewer = new ReportViewer
+ {
+ Dock = DockStyle.Fill
+ };
+ reportViewer.LocalReport.LoadReportDefinition(new FileStream("C:\\Users\\Admin\\Desktop\\4 семестр\\rpp\\AircraftPlant\\AircraftPlantView\\ReportOrders .rdlc", FileMode.Open));
+ Controls.Clear();
+ Controls.Add(reportViewer);
+ Controls.Add(panel);
+ }
+
+ private void ButtonCreateReport_Click(object sender, EventArgs e)
+ {
+ if (dateTimePickerFrom.Value.Date >= dateTimePickerTo.Value.Date)
+ {
+ MessageBox.Show("Дата начала должна быть меньше даты окончания", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+ try
+ {
+ var dataSource = _logic.GetOrders(new ReportBindingModel
+ {
+ DateFrom = dateTimePickerFrom.Value,
+ DateTo = dateTimePickerTo.Value
+ });
+ var source = new ReportDataSource("DataSetOrders", dataSource);
+ reportViewer.LocalReport.DataSources.Clear();
+ reportViewer.LocalReport.DataSources.Add(source);
+ var parameters = new[] { new ReportParameter("ReportParameterPeriod", $"c {dateTimePickerFrom.Value.ToShortDateString()} по {dateTimePickerTo.Value.ToShortDateString()}") };
+ reportViewer.LocalReport.SetParameters(parameters);
+
+ reportViewer.RefreshReport();
+ _logger.LogInformation("Loading list of orders for period {From}-{To}", dateTimePickerFrom.Value.ToShortDateString(), dateTimePickerTo.Value.ToShortDateString());
+ }
+ catch (Exception ex)
+ {
+ _logger.LogError(ex, "Loading list of orders for period error");
+ MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ }
+
+ private void ButtonToPdf_Click(object sender, EventArgs e)
+ {
+ if (dateTimePickerFrom.Value.Date >= dateTimePickerTo.Value.Date)
+ {
+ MessageBox.Show("Дата начала должна быть меньше даты окончания", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+ using var dialog = new SaveFileDialog { Filter = "pdf|*.pdf" };
+ if (dialog.ShowDialog() == DialogResult.OK)
+ {
+ try
+ {
+ _logic.SaveOrdersToPdfFile(new ReportBindingModel
+ {
+ FileName = dialog.FileName,
+ DateFrom = dateTimePickerFrom.Value,
+ DateTo = dateTimePickerTo.Value
+ });
+ _logger.LogInformation("Saving list of orders for period {From}-{To}", dateTimePickerFrom.Value.ToShortDateString(), dateTimePickerTo.Value.ToShortDateString());
+ MessageBox.Show("Выполнено", "Успех", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ catch (Exception ex)
+ {
+ _logger.LogError(ex, "Saving list of orders for period error");
+ MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantView/FormReportOrders.resx b/AircraftPlant/AircraftPlantView/FormReportOrders.resx
new file mode 100644
index 0000000..af32865
--- /dev/null
+++ b/AircraftPlant/AircraftPlantView/FormReportOrders.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.Designer.cs b/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.Designer.cs
index 9f3a9d7..41e06c5 100644
--- a/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.Designer.cs
+++ b/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.Designer.cs
@@ -60,14 +60,14 @@
//
// ColumnComponent
//
- ColumnComponent.HeaderText = "Компонент";
+ ColumnComponent.HeaderText = "Изделие";
ColumnComponent.MinimumWidth = 6;
ColumnComponent.Name = "ColumnComponent";
ColumnComponent.Width = 250;
//
// ColumnPlane
//
- ColumnPlane.HeaderText = "Изделие";
+ ColumnPlane.HeaderText = "Компонент";
ColumnPlane.MinimumWidth = 6;
ColumnPlane.Name = "ColumnPlane";
ColumnPlane.Width = 250;
@@ -88,6 +88,7 @@
Controls.Add(ButtonSaveToExcel);
Name = "FormReportPlaneComponents";
Text = "Компоненты по изделиям";
+ Load += FormReportPlaneComponents_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
}
diff --git a/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.resx b/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.resx
index 7eae935..99742a8 100644
--- a/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.resx
+++ b/AircraftPlant/AircraftPlantView/FormReportPlaneComponents.resx
@@ -126,13 +126,4 @@
True
-
- True
-
-
- True
-
-
- True
-
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantView/Program.cs b/AircraftPlant/AircraftPlantView/Program.cs
index 33775ef..fcb5b3e 100644
--- a/AircraftPlant/AircraftPlantView/Program.cs
+++ b/AircraftPlant/AircraftPlantView/Program.cs
@@ -1,4 +1,6 @@
using AircraftPlantBusinessLogic.BusinessLogics;
+using AircraftPlantBusinessLogic.OfficePackage.Implements;
+using AircraftPlantBusinessLogic.OfficePackage;
using AircraftPlantContracts.BusinessLogicsContracts;
using AircraftPlantContracts.StoragesContracts;
using AircraftPlantDatabaseImplement.Implements;
@@ -53,6 +55,11 @@ namespace AircraftPlantView
services.AddTransient();
services.AddTransient();
services.AddTransient();
+ services.AddTransient();
+
+ services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
services.AddTransient();
services.AddTransient();
@@ -61,6 +68,8 @@ namespace AircraftPlantView
services.AddTransient();
services.AddTransient();
services.AddTransient();
+ services.AddTransient();
+ services.AddTransient();
}
}
}
\ No newline at end of file
diff --git a/AircraftPlant/AircraftPlantView/ReportOrders .rdlc b/AircraftPlant/AircraftPlantView/ReportOrders .rdlc
new file mode 100644
index 0000000..8867d97
--- /dev/null
+++ b/AircraftPlant/AircraftPlantView/ReportOrders .rdlc
@@ -0,0 +1,600 @@
+
+
+
+ 0
+
+
+
+ System.Data.DataSet
+ /* Local Connection */
+
+ 10791c83-cee8-4a38-bbd0-245fc17cefb3
+
+
+
+
+
+ AircraftPlantContractsViewModels
+ /* Local Query */
+
+
+
+ Id
+ System.Int32
+
+
+ DateCreate
+ System.DateTime
+
+
+ PlaneName
+ System.String
+
+
+ Sum
+ System.Decimal
+
+
+ OrderStatus
+ System.String
+
+
+
+ AircraftPlantContracts.ViewModels
+ ReportOrdersViewModel
+ AircraftPlantContracts.ViewModels.ReportOrdersViewModel, AircraftPlantContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
+
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Parameters!ReportParameterPeriod.Value
+
+
+
+
+
+
+ ReportParameterPeriod
+ 1cm
+ 1cm
+ 21cm
+
+
+ Middle
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ Заказы
+
+
+
+
+
+
+ 1cm
+ 21cm
+ 1
+
+
+ Middle
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+ 2.5cm
+
+
+ 3.21438cm
+
+
+ 8.23317cm
+
+
+ 2.5cm
+
+
+ 2.5cm
+
+
+
+
+ 0.6cm
+
+
+
+
+ true
+ true
+
+
+
+
+ Номер
+
+
+
+
+
+
+ Textbox5
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Дата создания
+
+
+
+
+
+
+ Textbox1
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Самолёт
+
+
+
+
+
+
+ Textbox3
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Сумма
+
+
+
+
+
+
+ Textbox7
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Статус
+
+
+
+
+
+
+ Textbox2
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ 0.6cm
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Id.Value
+
+
+
+
+
+
+ Id
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!DateCreate.Value
+
+
+
+
+
+
+ DateCreate
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!PlaneName.Value
+
+
+
+
+
+
+ PlaneName
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Sum.Value
+
+
+
+
+
+
+ Sum
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+ true
+ true
+
+
+
+
+ =Fields!Status.Value
+
+
+
+
+
+
+ Status
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ After
+
+
+
+
+
+
+ DataSetOrders
+ 2.48391cm
+ 0.55245cm
+ 1.2cm
+ 18.94755cm
+ 2
+
+
+
+
+
+ true
+ true
+
+
+
+
+ Итого:
+
+
+
+
+
+
+ 4cm
+ 12cm
+ 0.6cm
+ 2.5cm
+ 3
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ true
+ true
+
+
+
+
+ =Sum(Fields!Sum.Value, "DataSetOrders")
+
+
+
+
+
+
+ 4cm
+ 14.5cm
+ 0.6cm
+ 2.5cm
+ 4
+
+
+ 2pt
+ 2pt
+ 2pt
+ 2pt
+
+
+
+ 5.72875cm
+
+
+ 21cm
+
+ 29.7cm
+ 21cm
+ 2cm
+ 2cm
+ 2cm
+ 2cm
+ 0.13cm
+
+
+
+
+
+
+ String
+ true
+ ReportParameter1
+
+
+
+
+ 5
+ 2
+
+
+ 0
+ 0
+ ReportParameterPeriod
+
+
+
+
+ Cm
+ 2de0031a-4d17-449d-922d-d9fc54572312
+
\ No newline at end of file