отчетики заработали, разбираемся с почтой

This commit is contained in:
Никита Волков 2024-09-22 17:02:18 +04:00
parent cf5f70a3fd
commit 2b867a6fa3
5 changed files with 9 additions and 10 deletions

View File

@ -11,8 +11,8 @@ namespace BeautyStudioBusinessLogic.OfficePackage.HelperModels
{
public MemoryStream FileName { get; set; } = new();
public string Title { get; set; } = string.Empty;
public DateTime DateFrom { get; set; }
public DateTime DateTo { get; set; }
public DateTime DateFrom { get; set; } = DateTime.UtcNow;
public DateTime DateTo { get; set; } = DateTime.UtcNow;
public List<ReportServicesViewModel> Services { get; set; } = new();
}
}

View File

@ -10,8 +10,8 @@ namespace BeautyStudioContracts.BindingModels
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set;}
public DateTime DateFrom { get; set; } = DateTime.UtcNow;
public DateTime DateTo { get; set; } = DateTime.UtcNow;
}
}

View File

@ -14,7 +14,7 @@ namespace BeautyStudioContracts.BindingModels
public string ServiceName { get; set; } = string.Empty;
public double ServicePrice { get; set; }
public int StoreKeeperId { get; set; }
public DateTime DateCreate { get; set; }
public DateTime DateCreate { get; set; } = DateTime.UtcNow;
public Dictionary<int, IProcedureModel> ServiceProcedures { get; set; } = new();
}
}

View File

@ -20,7 +20,6 @@ builder.Logging.AddLog4Net("log4net.config");
// Add services to the container.
builder.Services.AddTransient<IOrderStorage, OrderStorage>();
builder.Services.AddTransient<IProcedureStorage, ProcedureStorage>();
builder.Services.AddTransient<IOrderStorage, OrderStorage>();
builder.Services.AddTransient<IServiceStorage, ServiceStorage>();
builder.Services.AddTransient<ILaborCostStorage, LaborCostStorage>();
builder.Services.AddTransient<ICosmeticStorage, CosmeticStorage>();
@ -74,7 +73,7 @@ app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.UseSession();
app.UseAuthorization();
app.MapControllerRoute(

View File

@ -2,10 +2,10 @@
ViewData["Title"] = "HomePage";
}
<h1 class="display-4 text-center">
Vēni. Vidi. Vici.
Пришел. Увидел. Победил.
You came to the beauty studio. You got a service. You've won.
Ты пришел в салон красоты. Ты получил услугу. Ты победил.
</h1>
<div class="text-center">
<p><img src="https://sun9-76.userapi.com/impg/vI6SBomCNhEqLdfaxCFJk49LESbnjnLYHlG8Nw/1coG-1E4Glk.jpg?size=1000x1000&quality=96&sign=f3e2bd04ae751caf654fdba7b84be2bb&type=album" alt="Logo" /></p>
<p><img src="https://sun9-46.userapi.com/impg/ML3iFIq4Gb2AJIRsyCOsbXrzJ5O45pDL7V50XQ/_tZlbuaJ4AA.jpg?size=512x512&quality=95&sign=7a5da069fe5ab050637b976f298966d1&type=album" alt="Logo" /></p>
</div>