Промежуточное сохранение.

This commit is contained in:
Programmist73 2023-05-20 03:36:58 +04:00
commit 2ddc277226
3 changed files with 47 additions and 17 deletions

View File

@ -8,7 +8,7 @@
<div class="text-center">
@{
<img src="~/lib/logo.png" style="width: 50%"/>
<img src="~/lib/logo.png" style="width: 80%"/>
if (APICashier.Cashier == null)
{
@ -16,6 +16,6 @@
return;
}
<p>Здравствуйтe, @APICashier.Cashier.Name @APICashier.Cashier.Patronymic</p>
<h3 class="display-4">Здравствуйтe, @APICashier.Cashier.Name @APICashier.Cashier.Patronymic</h3>
}
</div>

View File

@ -11,7 +11,7 @@
<div class="text-center">
@{
<img src="~/lib/logo.png" style="width: 50%"/>
<img src="~/lib/logo.png" style="width: 80%"/>
if (APIClient.Client == null)
{
@ -19,6 +19,6 @@
return;
}
<p>Здравствуйтe, @APIClient.Client.Name @APIClient.Client.Patronymic</p>
<h3 class="display-4">Здравствуйтe, @APIClient.Client.Name @APIClient.Client.Patronymic</h3>
}
</div>

View File

@ -32,6 +32,11 @@
<div class="mb-2">
<button style="width:100%" class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="ReportWithCards">Создать отчёт</button>
</div>
<hr/>
<div class="mb-2">
<button type="button" id="ExcelBut" class="btn btn-lg btn-warning btn-block">Excel отчеты</button>
</div>
<div id="ExcelDiv" style="display: none">
<div class="mb-2" >
<button style="width:100%" class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="CreateExcelReport">Создать отчёт по переводам (EXCEL)</button>
</div>
@ -41,6 +46,11 @@
<div class="mb-2">
<button style="width:100%" class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="CreateDebitingExcelReport">Создать отчёт по снятиям (EXCEL)</button>
</div>
</div>
<div class="mb-2">
<button type="button" id="WordBut" class="btn btn-lg btn-warning btn-block">Word отчеты</button>
</div>
<div id="WordDiv" style="display: none">
<div class="mb-2">
<button style="width:100%" class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="CreateWordReport">Создать отчёт по переводам (WORD)</button>
</div>
@ -50,6 +60,7 @@
<div class="mb-2">
<button style="width:100%" class="btn btn-lg btn-warning btn-block" type="submit" asp-controller="Home" asp-action="CreateDebitingWordReport">Создать отчёт по снятиям (WORD)</button>
</div>
</div>
</form>
</div>
</div>
@ -108,3 +119,22 @@
</div>
</div>
</div>
<script>
document.getElementById('ExcelBut').addEventListener('click', event => {
if (document.getElementById("ExcelDiv").style.display == "none") {
document.getElementById("ExcelDiv").style.display = "block";
}
else {
document.getElementById("ExcelDiv").style.display = "none";
}
});
document.getElementById('WordBut').addEventListener('click', event => {
if (document.getElementById("WordDiv").style.display == "none") {
document.getElementById("WordDiv").style.display = "block";
}
else {
document.getElementById("WordDiv").style.display = "none";
}
});
</script>