исправление ошибок 1.0
This commit is contained in:
parent
4170f93435
commit
ad349d2614
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using UniversityContracts.BusinessLogicContracts;
|
||||||
|
|
||||||
namespace UniversityBusinessLogics.BusinessLogic
|
namespace UniversityBusinessLogics.BusinessLogic
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@ using UniversityContracts.BusinessLogicContracts;
|
|||||||
using UniversityContracts.SearchModels;
|
using UniversityContracts.SearchModels;
|
||||||
using UniversityContracts.StoragesContracts;
|
using UniversityContracts.StoragesContracts;
|
||||||
using UniversityContracts.ViewModels;
|
using UniversityContracts.ViewModels;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace UniversityBusinessLogics.BusinessLogic
|
namespace UniversityBusinessLogics.BusinessLogic
|
||||||
|
@ -11,4 +11,8 @@
|
|||||||
<Folder Include="OfficePackage\" />
|
<Folder Include="OfficePackage\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\UniversityContracts\UniversityContracts.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,10 +1,27 @@
|
|||||||
|
using UniversityBusinessLogics.BusinessLogic;
|
||||||
|
using UniversityContracts.BusinessLogicContracts;
|
||||||
|
using UniversityContracts.StoragesContracts;
|
||||||
|
|
||||||
|
|
||||||
|
using BankDatabaseImplement.Implements;
|
||||||
|
using Serilog;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
// Add services to the container.
|
builder.Services.AddControllersWithViews();
|
||||||
builder.Services.AddRazorPages();
|
builder.Services.AddSession(); // Äîáàâëÿåì ñåññèþ äëÿ àâòîðèçàöèè
|
||||||
|
|
||||||
|
builder.Services.AddTransient<IClientLogic, ClientLogic>();
|
||||||
|
builder.Services.AddTransient<IPurchaseLogic, PurchaseLogic>();
|
||||||
|
builder.Services.AddTransient<IClassLogic, ClassLogic>();
|
||||||
|
builder.Services.AddTransient<IPaymentLogic, PaymentLogic>();
|
||||||
|
|
||||||
|
builder.Services.AddTransient<IClientStorage, ClientStorage>();
|
||||||
|
builder.Services.AddTransient<IPurchaseStorage, PurchaseStorage>();
|
||||||
|
builder.Services.AddTransient<IClassStorage, ClassStorage>();
|
||||||
|
builder.Services.AddTransient<IPaymentStorage, PaymentStorage>();
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
if (!app.Environment.IsDevelopment())
|
if (!app.Environment.IsDevelopment())
|
||||||
{
|
{
|
||||||
|
@ -6,4 +6,9 @@
|
|||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\UniversityBusinessLogics\UniversityBusinessLogics.csproj" />
|
||||||
|
<ProjectReference Include="..\UniversityContracts\UniversityContracts.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using UniversityDataModels;
|
using UniversityDataModels;
|
||||||
using UniversityDataModels.ProxyModels;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@ -12,12 +11,12 @@ namespace BankContracts.ViewModels
|
|||||||
public class PaymentViewModel : IPaymentModel
|
public class PaymentViewModel : IPaymentModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public int OperationByPurchaseModelId { get; set; }
|
public int ClassByPurchaseModelId { get; set; }
|
||||||
[DisplayName("Стоимость")]
|
[DisplayName("Стоимость")]
|
||||||
public double FullPrice { get; set; }
|
public double FullPrice { get; set; }
|
||||||
[DisplayName("Оплаченная стоимость")]
|
[DisplayName("Оплаченная стоимость")]
|
||||||
public double PaidPrice { get; set; }
|
public double PaidPrice { get; set; }
|
||||||
public int OperationByPurchaseId { get; set; }
|
public int ClassByPurchaseId { get; set; }
|
||||||
[DisplayName("Дата оплаты")]
|
[DisplayName("Дата оплаты")]
|
||||||
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
|
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
|
||||||
public ClassByPurchaseModel ClassByPurchase { get; set; }
|
public ClassByPurchaseModel ClassByPurchase { get; set; }
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace UniversityDataModels.Models
|
||||||
|
{
|
||||||
|
public class ClassByPurchaseModel
|
||||||
|
{
|
||||||
|
public virtual int Id { get; set; }
|
||||||
|
public virtual int ClassId { get; set; }
|
||||||
|
public virtual int PurchaseId { get; set; }
|
||||||
|
public virtual int CountClass { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
namespace UniversityDataModels.Models
|
||||||
|
{
|
||||||
|
public class CostByPurchaseModel : IId
|
||||||
|
{
|
||||||
|
public virtual int Id { get; set; }
|
||||||
|
public virtual int CostId { get; set; }
|
||||||
|
public virtual int PurchaseId { get; set; }
|
||||||
|
public virtual int Count { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user