diff --git a/JewelryStore/FormMain.cs b/JewelryStore/FormMain.cs index da639f0..200acb5 100644 --- a/JewelryStore/FormMain.cs +++ b/JewelryStore/FormMain.cs @@ -198,7 +198,7 @@ namespace JewelryStore using var dialog = new SaveFileDialog { Filter = "docx|*.docx" }; if (dialog.ShowDialog() == DialogResult.OK) { - _reportLogic.SaveComponentsToWordFile(new ReportBindingModel + _reportLogic.SaveJewelsToWordFile(new ReportBindingModel { FileName = dialog.FileName }); diff --git a/JewelryStore/FormReportJewelComponents.Designer.cs b/JewelryStore/FormReportJewelComponents.Designer.cs index 595acff..86e5b71 100644 --- a/JewelryStore/FormReportJewelComponents.Designer.cs +++ b/JewelryStore/FormReportJewelComponents.Designer.cs @@ -70,14 +70,14 @@ // // ColumnComponent // - this.ColumnComponent.HeaderText = "Компонент"; + this.ColumnComponent.HeaderText = "Изделие"; this.ColumnComponent.Name = "ColumnComponent"; this.ColumnComponent.ReadOnly = true; this.ColumnComponent.Width = 200; // // ColumnJewel // - this.ColumnJewel.HeaderText = "Изделие"; + this.ColumnJewel.HeaderText = "Компонент"; this.ColumnJewel.Name = "ColumnJewel"; this.ColumnJewel.ReadOnly = true; this.ColumnJewel.Width = 200; diff --git a/JewelryStore/FormReportJewelComponents.cs b/JewelryStore/FormReportJewelComponents.cs index 839bd5f..10f6be7 100644 --- a/JewelryStore/FormReportJewelComponents.cs +++ b/JewelryStore/FormReportJewelComponents.cs @@ -36,8 +36,8 @@ namespace JewelryStore dataGridView.Rows.Clear(); foreach (var elem in dict) { - dataGridView.Rows.Add(new object[] { elem.ComponentName, "", "" }); - foreach (var listElem in elem.Jewels) + dataGridView.Rows.Add(new object[] { elem.JewelName, "", "" }); + foreach (var listElem in elem.Components) { dataGridView.Rows.Add(new object[] { "", listElem.Item1, listElem.Item2 }); } diff --git a/JewelryStore/ReportOrders.rdlc b/JewelryStore/ReportOrders.rdlc index c4bed36..08ff623 100644 --- a/JewelryStore/ReportOrders.rdlc +++ b/JewelryStore/ReportOrders.rdlc @@ -33,6 +33,10 @@ Sum System.Decimal + + Status + System.String + JewelryStoreContracts.ViewModels @@ -40,23 +44,20 @@ JewelryStoreContracts.ViewModels.ReportOrdersViewModel, JewelryStoreContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null - + - + true true - =Parameters!ReportParameterPeriod.Value - + Заказы + - ReportParameterPeriod - 1cm - 1cm - 21cm + 0.6cm + 16.51cm @@ -79,18 +78,15 @@ 2pt - + true true - Заказы - + =Parameters!ReportParameterPeriod.Value + - 1cm - 21cm + ReportParameterPeriod + 0.6cm + 0.6cm + 16.51cm 1 - + + + 2.60583cm + + + 3.262cm + + + 4.8495cm + 2.5cm - - 3.21438cm - - - 8.23317cm - 2.5cm @@ -134,7 +135,7 @@ - + true true @@ -142,15 +143,12 @@ Номер - + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + true true @@ -238,15 +260,12 @@ Сумма - + + + + 2pt + 2pt + 2pt + 2pt + + + + @@ -385,7 +432,6 @@ 2pt - true @@ -398,6 +444,7 @@ + @@ -411,18 +458,18 @@ DataSetOrders - 2.48391cm - 0.55245cm + 1.9177cm + 0.79267cm 1.2cm - 16.44755cm + 15.71733cm 2 + - + true true @@ -430,9 +477,7 @@ Итого: - + - 4cm - 12cm + 3.46287cm + 11.51cm 0.6cm 2.5cm 3 @@ -455,7 +500,7 @@ 2pt - + true true @@ -463,18 +508,15 @@ =Sum(Fields!Sum.Value, "DataSetOrders") - + + - 5.72875cm + 2in