391 lines
16 KiB
Plaintext
391 lines
16 KiB
Plaintext
@model VirtualTask.Models.Rapp_New
|
|
|
|
@{
|
|
ViewData["Title"] = "Dettaglio";
|
|
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
|
|
}
|
|
|
|
|
|
<div class="agy-project-wrapper agy-project-page-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="row" style="float:left; width:50%;">
|
|
<div>
|
|
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
|
|
</div>
|
|
|
|
@using (Html.BeginForm("Index", "MagNewVT", FormMethod.Post))
|
|
{
|
|
<a asp-action="Index" asp-controller="MagNewVT" asp-route-serRapp="@Model.seriale_rapportino" value="Mag new" class="agy-btn submitForm">Mag New</a>
|
|
}
|
|
|
|
|
|
|
|
<div class="card" style="width:80%">
|
|
<h5 class="card-header">Dettaglio buono</h5>
|
|
<div class="table-responsive text-nowrap">
|
|
<table class="table table-striped">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<b>@Html.DisplayNameFor(model => model.azienda_impianto)</b> @Html.DisplayFor(model => model.azienda_impianto)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<b>@Html.DisplayNameFor(model => model.seriale_rapportino)</b> @Html.DisplayFor(model => model.seriale_rapportino)
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
<div class="col-md-10">
|
|
|
|
</div>
|
|
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_impianto)</b> @Html.DisplayFor(model => model.codice_impianto)
|
|
</div>
|
|
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.seriale_chiamata)&&!Model.seriale_chiamata.Trim().Equals(string.Empty))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.seriale_chiamata)</b> @Html.DisplayFor(model => model.seriale_chiamata)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.seriale_commessa) && !Model.seriale_commessa.Trim().Equals(string.Empty))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.seriale_commessa)</b> @Html.DisplayFor(model => model.seriale_commessa)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.data_rapportino)</b> @Html.DisplayFor(model => model.data_rapportino)
|
|
</div>
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.ora_ini_rapportino)</b> @Html.DisplayFor(model => model.ora_ini_rapportino):@Html.DisplayFor(model => model.min_ini_rapportino)
|
|
</div>
|
|
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.ora_fin_rapportino)</b> @Html.DisplayFor(model => model.ora_fin_rapportino):@Html.DisplayFor(model => model.min_fin_rapportino)
|
|
</div>
|
|
|
|
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_1))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_1)</b> @Html.DisplayFor(model => model.codice_chiusura_1)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_2))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_2)</b> @Html.DisplayFor(model => model.codice_chiusura_2)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_3))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_3)</b> @Html.DisplayFor(model => model.codice_chiusura_3)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_4))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_4)</b> @Html.DisplayFor(model => model.codice_chiusura_4)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_5))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_5)</b> @Html.DisplayFor(model => model.codice_chiusura_5)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_6))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_6)</b> @Html.DisplayFor(model => model.codice_chiusura_6)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_7))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_7)</b> @Html.DisplayFor(model => model.codice_chiusura_7)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_8))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_8)</b> @Html.DisplayFor(model => model.codice_chiusura_8)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_9))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_9)</b> @Html.DisplayFor(model => model.codice_chiusura_9)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_chiusura_10))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_chiusura_10)</b> @Html.DisplayFor(model => model.codice_chiusura_10)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.descrizione_intervento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.descrizione_intervento)</b> @Html.DisplayFor(model => model.descrizione_intervento)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.stato_finale) && Model.stato_finale.Trim() != string.Empty)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.stato_finale)</b> @Html.DisplayFor(model => model.stato_finale)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_tecnico))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_tecnico)</b> @Html.DisplayFor(model => model.codice_tecnico)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.firma) && Model.firma.Trim()!=string.Empty)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.firma)</b> @Html.DisplayFor(model => model.firma)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.ser_buono))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.ser_buono)</b> @Html.DisplayFor(model => model.ser_buono)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.codice_intervento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.codice_intervento)</b> @Html.DisplayFor(model => model.codice_intervento)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.difetti_riscontrati))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.difetti_riscontrati)</b> @Html.DisplayFor(model => model.difetti_riscontrati)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.lavoro_eseguito))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.lavoro_eseguito)</b> @Html.DisplayFor(model => model.lavoro_eseguito)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.esito_intervento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.esito_intervento)</b> @Html.DisplayFor(model => model.esito_intervento)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.note_intervento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.note_intervento)</b> @Html.DisplayFor(model => model.note_intervento)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
@{
|
|
if (Model.ore_lavoro!=null)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.ore_lavoro)</b> @Html.DisplayFor(model => model.ore_lavoro)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
@{
|
|
if (Model.materiale!=null && Model.materiale>0)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.materiale)</b> @Html.DisplayFor(model => model.materiale)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (Model.diritto_chiamata != null && Model.diritto_chiamata > 0)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.diritto_chiamata)</b> @Html.DisplayFor(model => model.diritto_chiamata)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (Model.manodopera != null && Model.manodopera> 0)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.manodopera)</b> @Html.DisplayFor(model => model.manodopera)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (Model.spese_viaggio != null && Model.spese_viaggio > 0)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.spese_viaggio)</b> @Html.DisplayFor(model => model.spese_viaggio)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.pagamento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.pagamento)</b> @Html.DisplayFor(model => model.pagamento)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (Model.anticipo != null && Model.anticipo > 0)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.anticipo)</b> @Html.DisplayFor(model => model.anticipo)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (Model.totale != null && Model.totale > 0)
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.totale)</b> @Html.DisplayFor(model => model.totale)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.note_pagamento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.note_pagamento)</b> @Html.DisplayFor(model => model.note_pagamento)
|
|
</div>
|
|
}
|
|
}
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.tipo_intervento))
|
|
{
|
|
<div class="col-md-10">
|
|
<b>@Html.DisplayNameFor(model => model.tipo_intervento)</b> @Html.DisplayFor(model => model.tipo_intervento)
|
|
</div>
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@{
|
|
if (!string.IsNullOrEmpty(Model.rafoto1))
|
|
{
|
|
<tr>
|
|
<td>
|
|
<a href="@Url.Action("ShowOrServe", "Foto", new { folder = Model.azienda_impianto, fileName = Model.rafoto1 })">
|
|
@Html.DisplayNameFor(model => model.rafoto1)
|
|
</a>
|
|
</td>
|
|
|
|
</tr>
|
|
}
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" style="float:left;width:49%;">
|
|
@{
|
|
var imgSrc="";
|
|
|
|
if (Model.img2!=null)
|
|
{
|
|
|
|
//byte[] appo = Model.img2;
|
|
var base64 = Convert.ToBase64String(Model.img2);
|
|
imgSrc = String.Format("data:image/gif;base64,{0}", base64);
|
|
<img src="@imgSrc" height="1085" width="824"/>
|
|
}
|
|
else
|
|
{
|
|
<img src="~/assets/images/No_image.png" height="512" width="512" />
|
|
}
|
|
}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |