(component.Value.Item1.ComponentName, component.Value.Item2));
record.TotalCount += component.Value.Item2;
-
-
-
}
list.Add(record);
}
diff --git a/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/OfficePackage/AbstractSaveToWord.cs b/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/OfficePackage/AbstractSaveToWord.cs
index b16941e..c430a84 100644
--- a/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/OfficePackage/AbstractSaveToWord.cs
+++ b/BlacksmithWorkshop/BlacksmithWorkshopBusinessLogic/OfficePackage/AbstractSaveToWord.cs
@@ -24,19 +24,6 @@ WordTextProperties { Bold = true, Size = "24", }) },
JustificationType = WordJustificationType.Center
}
});
- /* foreach (var component in info.Components)
- {
- CreateParagraph(new WordParagraph
- {
- Texts = new List<(string, WordTextProperties)> {
-(component.ComponentName, new WordTextProperties { Size = "24"}) },
- TextProperties = new WordTextProperties
- {
- Size = "24",
- JustificationType = WordJustificationType.Both
- }
- });
- }*/
foreach (var manufacture in info.Manufactures)
{
CreateParagraph(new WordParagraph
diff --git a/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Controllers/HomeController.cs b/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Controllers/HomeController.cs
index 84736d2..148207a 100644
--- a/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Controllers/HomeController.cs
+++ b/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Controllers/HomeController.cs
@@ -1,7 +1,9 @@
using BlacksmithWorkshopClientApp.Models;
using BlacksmithWorkshopContracts.BindingModels;
+using BlacksmithWorkshopContracts.SearchModels;
using BlacksmithWorkshopContracts.ViewModels;
using Microsoft.AspNetCore.Mvc;
+using System.Collections.Generic;
using System.Diagnostics;
namespace BlacksmithWorkshopClientApp.Controllers
@@ -128,6 +130,8 @@ namespace BlacksmithWorkshopClientApp.Controllers
{
throw new Exception("Количество и сумма должны быть больше 0");
}
+
+
APIClient.PostRequest("api/main/createorder", new
OrderBindingModel
{
diff --git a/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Program.cs b/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Program.cs
index 0727468..05dec10 100644
--- a/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Program.cs
+++ b/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Program.cs
@@ -1,10 +1,12 @@
+using BlacksmithWorkshopClientApp;
+
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
-
+APIClient.Connect(builder.Configuration);
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
diff --git a/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Views/Home/Create.cshtml b/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Views/Home/Create.cshtml
index 66b77cc..c569c1a 100644
--- a/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Views/Home/Create.cshtml
+++ b/BlacksmithWorkshop/BlacksmithWorkshopClientApp/Views/Home/Create.cshtml
@@ -1,6 +1,7 @@
@{
ViewData["Title"] = "Create";
}
+
Создание заказа
@@ -8,7 +9,7 @@
@@ -32,13 +33,15 @@ btn-primary" />