Шаг какой-то там. Reinforcedies -> Reinforceds
This commit is contained in:
parent
39fc585ef2
commit
0311b850f6
@ -205,7 +205,7 @@ namespace PrecastConcretePlantView
|
|||||||
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
|
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
|
||||||
if (dialog.ShowDialog() == DialogResult.OK)
|
if (dialog.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
_reportLogic.SaveReinforcediesToWordFile(new ReportBindingModel
|
_reportLogic.SaveReinforcedsToWordFile(new ReportBindingModel
|
||||||
{
|
{
|
||||||
FileName = dialog.FileName
|
FileName = dialog.FileName
|
||||||
});
|
});
|
||||||
|
@ -34,9 +34,9 @@ namespace PrecastConcretePlantBusinessLogic.BusinessLogic
|
|||||||
public List<ReportReinforcedComponentViewModel> GetReinforcedComponents()
|
public List<ReportReinforcedComponentViewModel> GetReinforcedComponents()
|
||||||
{
|
{
|
||||||
var components = _componentStorage.GetFullList();
|
var components = _componentStorage.GetFullList();
|
||||||
var reinforcedies = _reinforcedStorage.GetFullList();
|
var reinforceds = _reinforcedStorage.GetFullList();
|
||||||
var list = new List<ReportReinforcedComponentViewModel>();
|
var list = new List<ReportReinforcedComponentViewModel>();
|
||||||
foreach (var reinforced in reinforcedies)
|
foreach (var reinforced in reinforceds)
|
||||||
{
|
{
|
||||||
var record = new ReportReinforcedComponentViewModel
|
var record = new ReportReinforcedComponentViewModel
|
||||||
{
|
{
|
||||||
@ -75,13 +75,13 @@ namespace PrecastConcretePlantBusinessLogic.BusinessLogic
|
|||||||
.ToList();
|
.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SaveReinforcediesToWordFile(ReportBindingModel model)
|
public void SaveReinforcedsToWordFile(ReportBindingModel model)
|
||||||
{
|
{
|
||||||
_saveToWord.CreateDoc(new WordInfo
|
_saveToWord.CreateDoc(new WordInfo
|
||||||
{
|
{
|
||||||
FileName = model.FileName,
|
FileName = model.FileName,
|
||||||
Title = "Список документов",
|
Title = "Список документов",
|
||||||
Reinforcedies = _reinforcedStorage.GetFullList()
|
Reinforceds = _reinforcedStorage.GetFullList()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
public void SaveReinforcedComponentToExcelFile(ReportBindingModel model)
|
public void SaveReinforcedComponentToExcelFile(ReportBindingModel model)
|
||||||
|
@ -22,7 +22,7 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage
|
|||||||
JustificationType = WordJustificationType.Center
|
JustificationType = WordJustificationType.Center
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
foreach (var reinforced in info.Reinforcedies)
|
foreach (var reinforced in info.Reinforceds)
|
||||||
{
|
{
|
||||||
CreateParagraph(new WordParagraph
|
CreateParagraph(new WordParagraph
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,6 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage.HelperModels
|
|||||||
{
|
{
|
||||||
public string FileName { get; set; } = string.Empty;
|
public string FileName { get; set; } = string.Empty;
|
||||||
public string Title { 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ namespace PrecastConcretePlantContracts.BusinessLogicsContracts
|
|||||||
{
|
{
|
||||||
List<ReportReinforcedComponentViewModel> GetReinforcedComponents();
|
List<ReportReinforcedComponentViewModel> GetReinforcedComponents();
|
||||||
List<ReportOrdersViewModel> GetOrders(ReportBindingModel model);
|
List<ReportOrdersViewModel> GetOrders(ReportBindingModel model);
|
||||||
void SaveReinforcediesToWordFile(ReportBindingModel model);
|
void SaveReinforcedsToWordFile(ReportBindingModel model);
|
||||||
void SaveReinforcedComponentToExcelFile(ReportBindingModel model);
|
void SaveReinforcedComponentToExcelFile(ReportBindingModel model);
|
||||||
void SaveOrdersToPdfFile(ReportBindingModel model);
|
void SaveOrdersToPdfFile(ReportBindingModel model);
|
||||||
}
|
}
|
||||||
|
@ -12,8 +12,8 @@ using PrecastConcretePlantDatabaseImplement;
|
|||||||
namespace PrecastConcretePlantDatabaseImplement.Migrations
|
namespace PrecastConcretePlantDatabaseImplement.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(PrecastConcretePlantDataBase))]
|
[DbContext(typeof(PrecastConcretePlantDataBase))]
|
||||||
[Migration("20230226175226_InitMigration")]
|
[Migration("20230327065744_Restart")]
|
||||||
partial class InitMigration
|
partial class Restart
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||||||
namespace PrecastConcretePlantDatabaseImplement.Migrations
|
namespace PrecastConcretePlantDatabaseImplement.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class InitMigration : Migration
|
public partial class Restart : Migration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
Loading…
Reference in New Issue
Block a user