Шаг какой-то там. Reinforcedies -> Reinforceds

This commit is contained in:
Кашин Максим 2023-03-27 11:00:22 +04:00
parent 39fc585ef2
commit 0311b850f6
7 changed files with 11 additions and 11 deletions

View File

@ -205,7 +205,7 @@ namespace PrecastConcretePlantView
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
if (dialog.ShowDialog() == DialogResult.OK)
{
_reportLogic.SaveReinforcediesToWordFile(new ReportBindingModel
_reportLogic.SaveReinforcedsToWordFile(new ReportBindingModel
{
FileName = dialog.FileName
});

View File

@ -34,9 +34,9 @@ namespace PrecastConcretePlantBusinessLogic.BusinessLogic
public List<ReportReinforcedComponentViewModel> GetReinforcedComponents()
{
var components = _componentStorage.GetFullList();
var reinforcedies = _reinforcedStorage.GetFullList();
var reinforceds = _reinforcedStorage.GetFullList();
var list = new List<ReportReinforcedComponentViewModel>();
foreach (var reinforced in reinforcedies)
foreach (var reinforced in reinforceds)
{
var record = new ReportReinforcedComponentViewModel
{
@ -75,13 +75,13 @@ namespace PrecastConcretePlantBusinessLogic.BusinessLogic
.ToList();
}
public void SaveReinforcediesToWordFile(ReportBindingModel model)
public void SaveReinforcedsToWordFile(ReportBindingModel model)
{
_saveToWord.CreateDoc(new WordInfo
{
FileName = model.FileName,
Title = "Список документов",
Reinforcedies = _reinforcedStorage.GetFullList()
Reinforceds = _reinforcedStorage.GetFullList()
});
}
public void SaveReinforcedComponentToExcelFile(ReportBindingModel model)

View File

@ -22,7 +22,7 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage
JustificationType = WordJustificationType.Center
}
});
foreach (var reinforced in info.Reinforcedies)
foreach (var reinforced in info.Reinforceds)
{
CreateParagraph(new WordParagraph
{

View File

@ -11,6 +11,6 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage.HelperModels
{
public string FileName { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public List<ReinforcedViewModel> Reinforcedies { get; set; } = new();
public List<ReinforcedViewModel> Reinforceds { get; set; } = new();
}
}

View File

@ -12,7 +12,7 @@ namespace PrecastConcretePlantContracts.BusinessLogicsContracts
{
List<ReportReinforcedComponentViewModel> GetReinforcedComponents();
List<ReportOrdersViewModel> GetOrders(ReportBindingModel model);
void SaveReinforcediesToWordFile(ReportBindingModel model);
void SaveReinforcedsToWordFile(ReportBindingModel model);
void SaveReinforcedComponentToExcelFile(ReportBindingModel model);
void SaveOrdersToPdfFile(ReportBindingModel model);
}

View File

@ -12,8 +12,8 @@ using PrecastConcretePlantDatabaseImplement;
namespace PrecastConcretePlantDatabaseImplement.Migrations
{
[DbContext(typeof(PrecastConcretePlantDataBase))]
[Migration("20230226175226_InitMigration")]
partial class InitMigration
[Migration("20230327065744_Restart")]
partial class Restart
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)

View File

@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace PrecastConcretePlantDatabaseImplement.Migrations
{
/// <inheritdoc />
public partial class InitMigration : Migration
public partial class Restart : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)