maschera chiamate

This commit is contained in:
Marco Audiffredi 2024-10-04 15:04:42 +02:00
parent 5559f05799
commit fba773ce32
2 changed files with 45 additions and 20 deletions

View File

@ -25,7 +25,7 @@
<b>@Html.DisplayNameFor(model => model.chtipo)</b> @Html.DisplayFor(model => model.chtipo)
</div>
<div class="col-md-10">
@Html.DisplayNameFor(model => model.chnumero) @numChia
<b>@Html.DisplayNameFor(model => model.chnumero)</b> @numChia
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.chdata)</b> @Html.DisplayFor(model => model.chdata)
@ -67,7 +67,6 @@
</div>
<div>
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
@* <input type="submit" value="Torna alla lista" class="agy-btn submitForm" /> *@
</div>
</div>
</div>

View File

@ -49,6 +49,14 @@
border-radius: 50%;
display: inline-block;
}
.dotBlack {
height: 20px;
width: 20px;
background-color: black;
border-radius: 50%;
display: inline-block;
}
</style>
<div class="agy-project-wrapper agy-project-page-wrapper">
@ -69,7 +77,7 @@
<tbody class="table-border-bottom-0">
<tr>
<td>
<i class="bx bxl-angular bx-sm text-black me-3">Data giro</i>
<i class="bx bxl-angular bx-sm text-black me-3">Tecnico</i>
<span class="fw-medium">@Html.DropDownList("tecnico", ViewBag.Tecnici, null, new { @class = "agy-form-field require" })</span>
</td>
<td>
@ -132,8 +140,8 @@
<th>Cliente</th>
<th>Tecnico</th>
<th>&nbsp;</th>
<th>R</th>
<th>IC</th>
@* <th>R</th>
<th>IC</th>*@
<th>Buono</th>
<th></th>
</tr>
@ -164,27 +172,44 @@
<td>
@* @Html.DisplayFor(modelItem => item.chstato) - @Html.DisplayFor(modelItem => item.descStato)*@
@{
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("B"))
if (!string.IsNullOrEmpty(item.rif) && item.rif.Equals("S") )
{
<span class="dotYellow"></span>
//rifiutato
<span class="dotBlack"></span>
}
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("C"))
else
{
<span class="dotOrange"></span>
}
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("Z"))
{
<span class="dotGreen"></span>
}
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("S"))
{
<span class="dotGray"></span>
if ( !string.IsNullOrEmpty(item.ser_buono_chiu))
{
//seriale buono presente: chiusa
<span class="dotGreen"></span>
}
else
{
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("B"))
{
<span class="dotYellow"></span>
}
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("C"))
{
<span class="dotOrange"></span>
}
if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("S"))
{
<span class="dotGray"></span>
}
}
}
}
</td>
<td>@Html.DisplayFor(modelItem => item.rif)</td>
<td>@Html.DisplayFor(modelItem => item.ic)</td>
@* <td>@Html.DisplayFor(modelItem => item.rif)</td>
<td>@Html.DisplayFor(modelItem => item.ic)</td>*@
@{
@ -242,6 +267,7 @@
<div style="float:left;"><span class="dotOrange" ></span>&nbsp;Assegnata&nbsp;</div>
<div style="float:left;"><span class="dotGreen"></span>&nbsp;Chiusa&nbsp;</div>
<div style="float:left;"><span class="dotGray"></span>&nbsp;Sospesa&nbsp;</div>
<div style="float:left;"><span class="dotBlack"></span>&nbsp;Rifiutata&nbsp;</div>
</div>