diff --git a/RenovationWork/RenovationWork/FormMain.cs b/RenovationWork/RenovationWork/FormMain.cs index 93cdb6c..66c5d10 100644 --- a/RenovationWork/RenovationWork/FormMain.cs +++ b/RenovationWork/RenovationWork/FormMain.cs @@ -10,6 +10,7 @@ using System.Windows.Forms; using RenovationWorkContracts.BindingModels; using RenovationWorkContracts.BusinessLogicsContracts; using Microsoft.Extensions.Logging; +using RenovationWorkBusinessLogic.BusinessLogics; namespace RenovationWorkView { diff --git a/RenovationWork/RenovationWork/FormReportOrders.Designer.cs b/RenovationWork/RenovationWork/FormReportOrders.Designer.cs index d1cdeb3..2e064af 100644 --- a/RenovationWork/RenovationWork/FormReportOrders.Designer.cs +++ b/RenovationWork/RenovationWork/FormReportOrders.Designer.cs @@ -31,6 +31,8 @@ panel = new Panel(); buttonToPdf = new Button(); buttonMake = new Button(); + labelTo = new Label(); + labelFrom = new Label(); dateTimePickerTo = new DateTimePicker(); dateTimePickerFrom = new DateTimePicker(); labelTo = new Label(); @@ -42,6 +44,8 @@ // panel.Controls.Add(buttonToPdf); panel.Controls.Add(buttonMake); + panel.Controls.Add(labelTo); + panel.Controls.Add(labelFrom); panel.Controls.Add(dateTimePickerTo); panel.Controls.Add(dateTimePickerFrom); panel.Controls.Add(labelTo); @@ -104,6 +108,20 @@ labelFrom.TabIndex = 0; labelFrom.Text = "С"; // + // dateTimePickerTo + // + dateTimePickerTo.Location = new Point(264, 6); + dateTimePickerTo.Name = "dateTimePickerTo"; + dateTimePickerTo.Size = new Size(200, 23); + dateTimePickerTo.TabIndex = 1; + // + // dateTimePickerFrom + // + dateTimePickerFrom.Location = new Point(31, 5); + dateTimePickerFrom.Name = "dateTimePickerFrom"; + dateTimePickerFrom.Size = new Size(200, 23); + dateTimePickerFrom.TabIndex = 0; + // // FormReportOrders // AutoScaleDimensions = new SizeF(7F, 15F); @@ -126,5 +144,6 @@ private Button buttonToPdf; private Button buttonMake; private DateTimePicker dateTimePickerTo; + private DateTimePicker dateTimePickerFrom; } } \ No newline at end of file diff --git a/RenovationWork/RenovationWork/FormReportOrders.cs b/RenovationWork/RenovationWork/FormReportOrders.cs index cbc6ff2..2e5df93 100644 --- a/RenovationWork/RenovationWork/FormReportOrders.cs +++ b/RenovationWork/RenovationWork/FormReportOrders.cs @@ -11,6 +11,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using RenovationWorkContracts.BindingModels; +using RenovationWorkContracts.BusinessLogicsContracts; +using Microsoft.Extensions.Logging; +using Microsoft.Reporting.WinForms; + namespace RenovationWorkView { @@ -98,3 +103,4 @@ namespace RenovationWorkView } } } + diff --git a/RenovationWork/RenovationWork/FormReportRepairComponents.cs b/RenovationWork/RenovationWork/FormReportRepairComponents.cs index c92179e..82d6411 100644 --- a/RenovationWork/RenovationWork/FormReportRepairComponents.cs +++ b/RenovationWork/RenovationWork/FormReportRepairComponents.cs @@ -10,6 +10,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Microsoft.Extensions.Logging; +using RenovationWorkContracts.BindingModels; +using RenovationWorkContracts.BusinessLogicsContracts; namespace RenovationWorkView { diff --git a/RenovationWork/RenovationWork/Program.cs b/RenovationWork/RenovationWork/Program.cs index fab88ea..186cd33 100644 --- a/RenovationWork/RenovationWork/Program.cs +++ b/RenovationWork/RenovationWork/Program.cs @@ -1,4 +1,6 @@ using RenovationWorkBusinessLogic.BusinessLogics; +using RenovationWorkBusinessLogic.OfficePackage.Implements; +using RenovationWorkBusinessLogic.OfficePackage; using RenovationWorkContracts.BusinessLogicsContracts; using RenovationWorkContracts.StoragesContracts; using RenovationWorkDatabaseImplement.Implements; diff --git a/RenovationWork/RenovationWork/Properties/DataSources/RenovationWorkContracts.BusinessLogicsContracts.IComponentLogic.datasource b/RenovationWork/RenovationWork/Properties/DataSources/RenovationWorkContracts.BusinessLogicsContracts.IComponentLogic.datasource new file mode 100644 index 0000000..c58d1ce --- /dev/null +++ b/RenovationWork/RenovationWork/Properties/DataSources/RenovationWorkContracts.BusinessLogicsContracts.IComponentLogic.datasource @@ -0,0 +1,10 @@ + + + + RenovationWorkContracts.BusinessLogicsContracts.IComponentLogic, RenovationWorkContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/RenovationWork/RenovationWork/RenovationWorkView.csproj b/RenovationWork/RenovationWork/RenovationWorkView.csproj index 5e3ee9b..a16925b 100644 --- a/RenovationWork/RenovationWork/RenovationWorkView.csproj +++ b/RenovationWork/RenovationWork/RenovationWorkView.csproj @@ -16,6 +16,7 @@ + @@ -46,4 +47,10 @@ + + + Always + + + \ No newline at end of file diff --git a/RenovationWork/RenovationWork/ReportOrders.rdlc b/RenovationWork/RenovationWork/ReportOrders.rdlc index 58944c4..828ff74 100644 --- a/RenovationWork/RenovationWork/ReportOrders.rdlc +++ b/RenovationWork/RenovationWork/ReportOrders.rdlc @@ -1,599 +1,599 @@ - 0 - - - - System.Data.DataSet - /* Local Connection */ - - 47cb53f0-7dde-4717-ba03-866a0bc4f4dd - - - - - - RenovationWorkContractsViewModels - /* Local Query */ - - - - Id - System.Int32 - - - DateCreate - System.DateTime - + 0 + + + + System.Data.DataSet + /* Local Connection */ + + 47cb53f0-7dde-4717-ba03-866a0bc4f4dd + + + + + + RenovationWorkContractsViewModels + /* Local Query */ + + + + Id + System.Int32 + + + DateCreate + System.DateTime + RepairName - System.String - - - Sum - System.Decimal - + System.String + + + Sum + System.Decimal + Status RenovationWorkDataModels.Status - - - - RenovationWorkContracts.ViewModels - ReportOrderViewModel - RenovationWorkContracts.ViewModels.ReportOrderViewModel, RenovationWorkContracts, 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 - - - - - Номер - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - Дата заказа - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - Изделие - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - Сумма - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - Статус - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - 0.6cm - - - - - true - true - - - - - =Fields!Id.Value - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!DateCreate.Value - - - - - - 2pt - 2pt - 2pt - 2pt - - - - - - + + + + RenovationWorkContracts.ViewModels + ReportOrderViewModel + RenovationWorkContracts.ViewModels.ReportOrderViewModel, RenovationWorkContracts, 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 + + + + + Номер + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Дата заказа + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Изделие + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Сумма + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Статус + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!Id.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!DateCreate.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + - true - true - - - - - =Fields!RepairName.Value - - - 2pt - 2pt - 2pt - 2pt - - - - - - - - true - true - - - - - =Fields!Sum.Value - - - 2pt - 2pt - 2pt - 2pt - - - - - - + true + true + + + + + =Fields!RepairName.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Sum.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + - true - true - - - - + true + true + + + + =Fields!Status.Value - - - 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 - + + 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 +