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; }
|
||||
[Required]
|
||||
public int DiagnoseId { get; set; }
|
||||
public virtual Course Course { get; set; } = new();
|
||||
public virtual Diagnose Diagnose { get; set; } = new();
|
||||
public virtual Course? Course { get; set; }
|
||||
public virtual Diagnose? Diagnose { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ namespace PolyclinicDatabaseImplement.Models
|
||||
public DateTime DateStartDiagnose { get; set; } = DateTime.Now;
|
||||
public DateTime? DateStopDiagnose { 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)
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ namespace PolyclinicDatabaseImplement.Models
|
||||
[Required]
|
||||
public DateTime DateStartProcedure { get; set; } = DateTime.Now;
|
||||
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;
|
||||
|
||||
|
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
||||
public int ProcedureId { get; set; }
|
||||
[Required]
|
||||
public int RecipeId { get; set; }
|
||||
public virtual Procedure Procedure { get; set; } = new();
|
||||
public virtual Recipe Recipe { get; set; } = new();
|
||||
public virtual Procedure? Procedure { get; set; }
|
||||
public virtual Recipe? Recipe { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
||||
public int SymptomId { get; set; }
|
||||
[Required]
|
||||
public int DiagnoseId { get; set; }
|
||||
public virtual Symptom Symptom { get; set; } = new();
|
||||
public virtual Diagnose Diagnose { get; set; } = new();
|
||||
public virtual Symptom? Symptom { get; set; }
|
||||
public virtual Diagnose? Diagnose { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace PolyclinicDatabaseImplement.Models
|
||||
public int SymptomId { get; set; }
|
||||
[Required]
|
||||
public int RecipeId { get; set; }
|
||||
public virtual Symptom Symptom { get; set; } = new();
|
||||
public virtual Recipe Recipe { get; set; } = new();
|
||||
public virtual Symptom? Symptom { get; set; }
|
||||
public virtual Recipe? Recipe { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -3,16 +3,16 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>
|
||||
@if (ViewData.ContainsKey("SelectedSiteMenuItem"))
|
||||
{
|
||||
@ViewBag.SelectedSiteMenuItem.Item2
|
||||
}
|
||||
else if (ViewData.ContainsKey("Title"))
|
||||
{
|
||||
@if (ViewData.ContainsKey("Title"))
|
||||
{
|
||||
<title>
|
||||
@ViewData["Title"]
|
||||
}
|
||||
</title>
|
||||
</title>
|
||||
}
|
||||
else
|
||||
{
|
||||
<title>Боликлиника</title>
|
||||
}
|
||||
<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="~/PolyclinicWebView.styles.css" asp-append-version="true" />
|
||||
@ -50,11 +50,14 @@
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
@if(LoginManager.LogginedUser != null)
|
||||
@if (LoginManager.LogginedUser != null)
|
||||
{
|
||||
<form method="post" asp-action="Logout" asp-controller="User">
|
||||
<button class="btn btn-secondary" type="submit">Выйти</button>
|
||||
</form>
|
||||
<div class="d-flex align-items-center">
|
||||
@Html.RouteLink(LoginManager.LogginedUser.FIO, new { controller = "User", action = "Privacy" }, new { @title = "Личный кабинет" })
|
||||
<form class="ms-3" method="post" asp-action="Logout" asp-controller="User">
|
||||
<button class="btn btn-secondary" type="submit">Выйти</button>
|
||||
</form>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user