This commit is contained in:
Marco Audiffredi 2024-07-30 10:00:13 +02:00
parent c5860e556b
commit a614d59532
5 changed files with 24 additions and 13 deletions

View File

@ -31,11 +31,14 @@ namespace SoftwayWeb.Controllers
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier, ErrMsg = e });
}
//[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
//public IActionResult Error()
//{
// return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
//}
public FileResult Download(string file)
{
string app = "";
byte[] fileBytes = System.IO.File.ReadAllBytes(file);
var response = new FileContentResult(fileBytes, "application/octet-stream");
response.FileDownloadName = "appGesa.apk";
return response;
}
}
}

View File

@ -22,6 +22,7 @@
<a asp-action="Index" asp-controller="Giri" value="Torna alla lista" class="btn btn-primary">Torna alla lista</a>
<br />
<br />
<!-- Striped Rows -->
<div class="card" >
<h5 class="card-header">Lista destinazioni</h5>
@ -106,17 +107,17 @@
{
int icasse = 0;
icasse = Convert.ToInt32(item.Casse);
<td style="font-size:12px; border-right-width:2px">
<td style="font-size:12px; border-right-width:2px;text-align:center;">
@icasse
</td>
}
else
{
<td style="border-right-width:2px">&nbsp;</td>
<td style="border-right-width:2px;text-align:center;">&nbsp;</td>
}
@if (item.Trasf != null && item.Trasf > 0)
{
<td style="font-size:12px; border-right-width:2px">
<td style="font-size:12px; border-right-width:2px;text-align:center;">
@Html.DisplayFor(modelItem => item.Trasf)
</td>
}
@ -128,7 +129,7 @@
{
int icolli = 0;
icolli = Convert.ToInt32(item.Colli);
<td style="font-size:12px;border-right-width:2px">
<td style="font-size:12px;border-right-width:2px;text-align:center;">
@icolli
</td>
}
@ -138,7 +139,7 @@
}
@if (item.num_cons != null && item.num_cons > 0)
{
<td style="font-size:12px;border-right-width:2px">
<td style="font-size:12px;border-right-width:2px;text-align:center;">
@Html.DisplayFor(modelItem => item.num_cons)
</td>
}
@ -148,7 +149,7 @@
}
@if (item.Uova != null && item.Uova > 0)
{
<td style="font-size:12px;border-right-width:2px">
<td style="font-size:12px;border-right-width:2px;text-align:center;">
@Html.DisplayFor(modelItem => item.Uova)
</td>
}
@ -158,7 +159,7 @@
}
@if (item.Cist != null && item.Cist > 0)
{
<td style="font-size:12px;border-right-width:2px">
<td style="font-size:12px;border-right-width:2px;text-align:center;">
@Html.DisplayFor(modelItem => item.Cist)
</td>
}
@ -175,7 +176,7 @@
{
diffBancali = item.ConsFatta.consFattaBanCar.Value - item.ConsFatta.consFattaBanSca.Value;
<td style="text-align:center;border-right-width:2px">
<td style="text-align:center;border-right-width:2px;text-align:center;">
<a href="@Url.ActionLink("Dettaglio","Consegne", new{id = item.Brserial,
codAutista = item.CodAutista,
dataGiro = item.DataCarico,

View File

@ -5,3 +5,10 @@
<div class="text-center">
<h1 class="display-4">Ge.Sa. Trasporti S.r.l.</h1>
</div>
<div class="text-center" style="height:60px;">
&nbsp;
</div>
<div class="text-center">
<a href="@Url.ActionLink("Download", "Home", new { file="wwwroot/App/v1/softway-release_1.apk" })" title="Download" class="links"><img alt="nocons" src="@Url.Content("~/images/Android.png")" style="width:32px;height:38px;">&nbsp;Download android app</a>
</div>

Binary file not shown.

BIN
wwwroot/images/Android.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB