Merge branch 'stage9_10' of https://git.is.ulstu.ru/ns.potapov/PIbd-21_CourseWork_Polyclinic_BeSick into stage9_10
This commit is contained in:
commit
aa1e0c4e99
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
public int CourseId { get; set; }
|
public int CourseId { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
public int DiagnoseId { get; set; }
|
public int DiagnoseId { get; set; }
|
||||||
public virtual Course Course { get; set; } = new();
|
public virtual Course? Course { get; set; }
|
||||||
public virtual Diagnose Diagnose { get; set; } = new();
|
public virtual Diagnose? Diagnose { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
public DateTime DateStartDiagnose { get; set; } = DateTime.Now;
|
public DateTime DateStartDiagnose { get; set; } = DateTime.Now;
|
||||||
public DateTime? DateStopDiagnose { get; set; }
|
public DateTime? DateStopDiagnose { get; set; }
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public virtual User User { get; set; } = new();
|
public virtual User? User { get; set; }
|
||||||
|
|
||||||
public static Diagnose? Create(DiagnoseBindingModel? model)
|
public static Diagnose? Create(DiagnoseBindingModel? model)
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public DateTime DateStartProcedure { get; set; } = DateTime.Now;
|
public DateTime DateStartProcedure { get; set; } = DateTime.Now;
|
||||||
public DateTime? DateStopProcedure { get; set; }
|
public DateTime? DateStopProcedure { get; set; }
|
||||||
public virtual User User { get; set; } = new();
|
public virtual User? User { get; set; }
|
||||||
|
|
||||||
public string? Comment { get; set; } = string.Empty;
|
public string? Comment { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
public int ProcedureId { get; set; }
|
public int ProcedureId { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
public int RecipeId { get; set; }
|
public int RecipeId { get; set; }
|
||||||
public virtual Procedure Procedure { get; set; } = new();
|
public virtual Procedure? Procedure { get; set; }
|
||||||
public virtual Recipe Recipe { get; set; } = new();
|
public virtual Recipe? Recipe { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
public int SymptomId { get; set; }
|
public int SymptomId { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
public int DiagnoseId { get; set; }
|
public int DiagnoseId { get; set; }
|
||||||
public virtual Symptom Symptom { get; set; } = new();
|
public virtual Symptom? Symptom { get; set; }
|
||||||
public virtual Diagnose Diagnose { get; set; } = new();
|
public virtual Diagnose? Diagnose { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
public int SymptomId { get; set; }
|
public int SymptomId { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
public int RecipeId { get; set; }
|
public int RecipeId { get; set; }
|
||||||
public virtual Symptom Symptom { get; set; } = new();
|
public virtual Symptom? Symptom { get; set; }
|
||||||
public virtual Recipe Recipe { get; set; } = new();
|
public virtual Recipe? Recipe { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,16 +3,16 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>
|
@if (ViewData.ContainsKey("Title"))
|
||||||
@if (ViewData.ContainsKey("SelectedSiteMenuItem"))
|
{
|
||||||
{
|
<title>
|
||||||
@ViewBag.SelectedSiteMenuItem.Item2
|
|
||||||
}
|
|
||||||
else if (ViewData.ContainsKey("Title"))
|
|
||||||
{
|
|
||||||
@ViewData["Title"]
|
@ViewData["Title"]
|
||||||
}
|
</title>
|
||||||
</title>
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<title>Боликлиника</title>
|
||||||
|
}
|
||||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||||
<link rel="stylesheet" href="~/PolyclinicWebView.styles.css" asp-append-version="true" />
|
<link rel="stylesheet" href="~/PolyclinicWebView.styles.css" asp-append-version="true" />
|
||||||
@ -50,11 +50,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
@if(LoginManager.LogginedUser != null)
|
@if (LoginManager.LogginedUser != null)
|
||||||
{
|
{
|
||||||
<form method="post" asp-action="Logout" asp-controller="User">
|
<div class="d-flex align-items-center">
|
||||||
<button class="btn btn-secondary" type="submit">Выйти</button>
|
@Html.RouteLink(LoginManager.LogginedUser.FIO, new { controller = "User", action = "Privacy" }, new { @title = "Личный кабинет" })
|
||||||
</form>
|
<form class="ms-3" method="post" asp-action="Logout" asp-controller="User">
|
||||||
|
<button class="btn btn-secondary" type="submit">Выйти</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user