Home: aggiunto link download pdf

Rapp_New: in index sostituito seriale rapportino con seriale buono e aggiunto metodo Immagine a controller
Chiamate. messo link a immagine buono che apre popup con immagine
Aggiunto PDF guida a Assets.
This commit is contained in:
michele 2024-10-17 16:58:46 +02:00
parent 52f63169e1
commit 0fa1e90a5d
5 changed files with 28 additions and 20 deletions

View File

@ -365,9 +365,6 @@ namespace VirtualTask.Controllers
public IActionResult Immagine(string id)
{
SessionHelper helper = new SessionHelper(this);
id = "V000000135";
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");

View File

@ -117,11 +117,6 @@
</table>
</div>
</div>
}
<div style="width:100%;height:30px;">
&nbsp;
@ -222,15 +217,15 @@
// link = link + item.ser_buono_chiu + ".jpg";
// <td><a href="@link" target="_blank">@item.ser_buono_chiu</a></td>
<td>@item.ser_buono_chiu - @item.ser_rapp_chiu</td>
// <td>@item.ser_buono_chiu - @item.ser_rapp_chiu</td>
//<td><a href="" onclick="openNewWindow();">@item.ser_buono_chiu</a></td>
<td><a href="" onclick="openNewWindow();">@item.ser_buono_chiu</a></td>
//<script type="text/javascript">
// function openNewWindow() {
// window.open("/Rapp_New/Immagine", "New Window", "top=0,left=0,height=1020,width=1020");
// }
//</script>
<script type="text/javascript">
function openNewWindow() {
window.open("/Rapp_New/Immagine?id=@item.ser_rapp_chiu", "MyWindow", "top=0,left=0,height=1020,width=1020");
}
</script>
}
else
{

View File

@ -5,11 +5,26 @@
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div style="text-align:center; width:80%;height:80%;width:100%">
<img src="~/assets/images/diagramma_statico.png" alt="Diagramma di flusso" />
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div style="text-align:center;">
<div>
<p>
<br />
<h4><b>Scarica il manuale d'uso al link qua sotto:</b></h4>
</p>
<p>
<br />
<a href="~/assets/Manuale_VirtualTask_Ts_Rev.3.0.pdf" download="Manuale_VirtualTask_Ts_Rev.3.0.pdf">Manuale_VirtualTask_Ts_Rev.3.0.pdf</a>
<br />
</p>
</div>
</div>
</div>
</div>
</div>
@*<script src="https://unpkg.com/gojs@2.3.16/release/go.js"></script>
<div id="allSampleContent" class="p-4 w-full" style="text-align:center;">

View File

@ -139,6 +139,7 @@
@foreach (var item in Model)
{
<tr>
@Html.HiddenFor(modelItem => item.seriale_rapportino)
@Html.HiddenFor(modelItem => item.tipo_rapportino)
@Html.HiddenFor(modelItem => item.azienda_impianto)
@Html.HiddenFor(modelItem => item.azienda_chiamata)
@ -167,7 +168,6 @@
@Html.HiddenFor(modelItem => item.incarico)
@Html.HiddenFor(modelItem => item.data_validita)
@Html.HiddenFor(modelItem => item.immagine)
@Html.HiddenFor(modelItem => item.ser_buono)
@Html.HiddenFor(modelItem => item.data_effettiva)
@Html.HiddenFor(modelItem => item.codice_intervento)
@Html.HiddenFor(modelItem => item.difetti_riscontrati)
@ -197,7 +197,8 @@
@Html.HiddenFor(modelItem => item.rafoto9)
@Html.DisplayFor(modelItem => item.rafoto10)
<td>
@Html.DisplayFor(modelItem => item.seriale_rapportino)
@* @Html.DisplayFor(modelItem => item.seriale_rapportino) *@
@Html.DisplayFor(modelItem => item.ser_buono)
</td>
<td>
@Html.DisplayFor(modelItem => item.data_rapportino)

Binary file not shown.