This commit is contained in:
Marco Audiffredi 2023-10-17 14:43:41 +02:00
parent 16539d257c
commit 107e1eeee5
8 changed files with 535 additions and 1418 deletions

View File

@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Newtonsoft.Json;
using System.Data;
using System.Diagnostics;
using System.Text;
using VirtualTask.Models;
@ -15,6 +16,9 @@ namespace VirtualTask.Controllers
string token = string.Empty;
string tenant = string.Empty;
string errMes = string.Empty;
string _serchiam = "SER_CHIAMA";
string _numchiam = "NUM_CHIAMA";
HttpClient client;
@ -33,7 +37,7 @@ namespace VirtualTask.Controllers
return RedirectToAction("Index", "Login");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "chiamateList";
urlBase = apiUrl + "chiamateListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -83,7 +87,12 @@ namespace VirtualTask.Controllers
public IActionResult Create()
{
ViewBag.AllStockList = LoadStockItems();
ViewBag.Impianti = getImpianti();
ViewBag.StatiChiamata = getStatiChiamata();
//ViewBag.TipiChiamata = getTipiChiamata();
ViewBag.CodiciSegnalazione = getCodiciSegnalazione();
ViewBag.Tecnici = getTecnici();
return View();
}
@ -97,10 +106,28 @@ namespace VirtualTask.Controllers
{
return RedirectToAction("Index","Login");
}
#region campi da impostare
model.chcodazi = tenant;
model.chaziimp = tenant;
model.chserial = getNewSeriale();
model.chnumero=getNewNumeroChiamata();
DateTime adesso = DateTime.Now;
model.chdata = adesso;
model.chdtass = adesso;
model.chdtapp = adesso;
model.chtipo = "X";//X=creato da app, A creato da adhoc. NON SERVE
model.chmodrac = "EMAIL";
int year=adesso.Year;
model.chcodese=Convert.ToString(year);
#endregion
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "chiamata/add";
urlBase = urlBase + "?token=" + token;
client = new HttpClient();
Uri baseAddress = new Uri(urlBase);
client.BaseAddress = baseAddress;
string data = JsonConvert.SerializeObject(model);
@ -131,7 +158,7 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "chiamateList";
urlBase = apiUrl + "chiamateListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -170,7 +197,7 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "chiamateList";
urlBase = apiUrl + "chiamateListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -195,7 +222,12 @@ namespace VirtualTask.Controllers
return RedirectToAction("Error");
}
ViewBag.AllStockList = LoadStockItems();
ViewBag.Impianti = getImpianti();
ViewBag.StatiChiamata = getStatiChiamata();
//ViewBag.TipiChiamata = getTipiChiamata();
ViewBag.CodiciSegnalazione = getCodiciSegnalazione();
ViewBag.Tecnici = getTecnici();
return View(chiamata);
}
@ -247,7 +279,7 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "chiamateList";
urlBase = apiUrl + "chiamateListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -305,7 +337,8 @@ namespace VirtualTask.Controllers
}
#endregion DELETE
private List<SelectListItem> LoadStockItems()
#region metodi interni
private List<SelectListItem> getImpianti()
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
@ -325,13 +358,183 @@ namespace VirtualTask.Controllers
foreach (var role in modelList)
{
SelectListItem listItem = new SelectListItem();
string s = role.imcodimp + " - " + role.imdescri;
listItem.Value = role.imcodimp;
listItem.Text = role.imdescri;
listItem.Text = s;
selectItems.Add(listItem);
}
}
return selectItems;
}
private List<SelectListItem> getStatiChiamata()
{
List<SelectListItem> selectItems = new List<SelectListItem>();
SelectListItem listItem = new SelectListItem();
listItem.Value = "C";
listItem.Text = "Assegnata";
selectItems.Add(listItem);
listItem = new SelectListItem();
listItem.Value = "B";
listItem.Text = "Da Assegnare";
selectItems.Add(listItem);
listItem = new SelectListItem();
listItem.Value = "Z";
listItem.Text = "Chiusa";
selectItems.Add(listItem);
listItem = new SelectListItem();
listItem.Value = "S";
listItem.Text = "Sospesa";
selectItems.Add(listItem);
return selectItems;
}
private List<SelectListItem> getTipiChiamata()
{
List<SelectListItem> selectItems = new List<SelectListItem>();
SelectListItem listItem = new SelectListItem();
listItem.Value = "A";
listItem.Text = "Tipo A";
selectItems.Add(listItem);
listItem = new SelectListItem();
listItem.Value = "B";
listItem.Text = "Tipo B";
selectItems.Add(listItem);
return selectItems;
}
private List<SelectListItem> getCodiciSegnalazione()
{
List<SelectListItem> selectItems = new List<SelectListItem>();
SelectListItem listItem = new SelectListItem();
listItem.Value = "Intervento";
listItem.Text = "Intervento";
selectItems.Add(listItem);
listItem = new SelectListItem();
listItem.Value = "Collaudo";
listItem.Text = "Collaudo";
selectItems.Add(listItem);
return selectItems;
}
private List<SelectListItem> getTecnici()
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "tecniciList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
client.BaseAddress = baseAddress;
List<SelectListItem> selectItems = new List<SelectListItem>();
List<Tecnici> modelList = new List<Tecnici>();
HttpResponseMessage response = client.GetAsync(baseAddress).Result;
if (response.IsSuccessStatusCode)
{
string data = response.Content.ReadAsStringAsync().Result;
modelList = JsonConvert.DeserializeObject<List<Tecnici>>(data);
foreach (var role in modelList)
{
SelectListItem listItem = new SelectListItem();
string s = role.tccodice + " - " + role.tcdescri;
listItem.Value = role.tccodice;
listItem.Text = s;
selectItems.Add(listItem);
}
}
return selectItems;
}
private string getNewSeriale()
{
int p = -1;
string seriale = string.Empty;
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "progressiviList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
client.BaseAddress = baseAddress;
List<Progressivo> progressivi = new List<Progressivo>();
HttpResponseMessage response = client.GetAsync(baseAddress).Result;
if (response.IsSuccessStatusCode)
{
string data = response.Content.ReadAsStringAsync().Result;
progressivi = JsonConvert.DeserializeObject<List<Progressivo>>(data);
var last = progressivi.Where(t => t.tipo_prog.Equals(_serchiam)).First();
p = last.val_prog;
p++;
seriale = Convert.ToString(p);
seriale = seriale.PadLeft(10, '0');
Progressivo upd = new Progressivo();
upd.val_prog = p;
upd.tipo_prog = _serchiam;
upd.azienda = tenant;
updateTabellaProgressivi(upd);
}
return seriale;
}
private async void updateTabellaProgressivi(Progressivo p)
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
tenant = helper.GetStringValue("tenant");
urlBase = apiUrl + "progressivo/mod";
urlBase = urlBase + "?token=" + token;
//Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
var stringPayload = JsonConvert.SerializeObject(p);
var httpContent = new StringContent(stringPayload, Encoding.UTF8, "application/json");
var httpResponse = await client.PostAsync(urlBase, httpContent);
if (httpResponse.Content != null)
{
var responseContent = await httpResponse.Content.ReadAsStringAsync();
}
}
private decimal getNewNumeroChiamata()
{
int p = -1;
decimal numero =0;
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "progressiviList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
client.BaseAddress = baseAddress;
List<Progressivo> progressivi = new List<Progressivo>();
HttpResponseMessage response = client.GetAsync(baseAddress).Result;
if (response.IsSuccessStatusCode)
{
string data = response.Content.ReadAsStringAsync().Result;
progressivi = JsonConvert.DeserializeObject<List<Progressivo>>(data);
var last = progressivi.Where(t => t.tipo_prog.Equals(_numchiam)).First();
p = last.val_prog;
p++;
numero = Convert.ToDecimal(p);
Progressivo upd = new Progressivo();
upd.val_prog = p;
upd.tipo_prog = _numchiam;
upd.azienda = tenant;
updateTabellaProgressivi(upd);
}
return numero;
}
#endregion
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()

View File

@ -48,6 +48,7 @@ namespace VirtualTask.Controllers
helper.SetStringValue("tok", loginOut.Tok);
helper.SetStringValue("apiUrl", apiUrl);
helper.SetStringValue("tenant", model.Tenant);
helper.SetStringValue("tecnico", model.Username);
return RedirectToAction("Index","Home");
}
else

View File

@ -1,6 +1,7 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq.Expressions;
using System.Xml.Linq;
namespace VirtualTask.Models
@ -20,41 +21,58 @@ namespace VirtualTask.Models
public string? chtipo { get; set; }
[Display(Name = "NUMERO")]
public double? chnumero { get; set; }
[Column(TypeName = "decimal(10, 0)")]
public decimal? chnumero { get; set; }
[Display(Name = "DATA")]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime? chdata { get; set; }
[Display(Name = "COD. IMPIANTO")]
public string? chcodimp { get; set; }
[Display(Name = "RIFERIMENTO")]
public string? chrifer { get; set; }
[Display(Name = "TELEFONO")]
public string? chtelef { get; set; }
[Display(Name = "COD. SEGNALAZIONE")]
public string? chcodseg { get; set; }
[Display(Name = "NOTE")]
public string? chnote { get; set; }
[Display(Name = "TECNICO")]
public string? chtchiam { get; set; }
[Display(Name = "STATO")]
public string? chstato { get; set; }
#region non visualizzati
public int? chora { get; set; }
public int? chmin { get; set; }
public int? chopins { get; set; }
public int? chopass { get; set; }
public int? chopchi { get; set; }
public string? chcodimp { get; set; }
public string? chaziimp { get; set; }
public string? chtchiam { get; set; }
public string? chtmanut { get; set; }
public string? chstato { get; set; }
public string? chdtapp { get; set; }
public string? choraapi { get; set; }
public DateTime? chdtapp { get; set; }
public int? choraapi { get; set; }
public int? chminapi { get; set; }
public int? choraapf { get; set; }
public int? chminapf { get; set; }
public string? chrifer { get; set; }
public string? chtelef { get; set; }
public string? chcodseg { get; set; }
public string? chstopi { get; set; }
public string? chnote { get; set; }
public string? chdtass { get; set; }
public DateTime? chdtass { get; set; }
public int? chorass { get; set; }
public int? chminass { get; set; }
public string? chdtchi { get; set; }
public int? chorachi { get; set; }
public int? chminchi { get; set; }
public string? chdtlin { get; set; }
public DateTime? chdtlin { get; set; }
public int? chorali { get; set; }
public int? chminli { get; set; }
public string? chdtlfi { get; set; }
public DateTime? chdtlfi { get; set; }
public int? choralf { get; set; }
public int? chminlf { get; set; }
public string? chvalfat { get; set; }
@ -68,14 +86,142 @@ namespace VirtualTask.Models
public string? chserchi { get; set; }
public string? chdesfat { get; set; }
public string? chdessup { get; set; }
public double? chimpofa { get; set; }
[Column(TypeName = "decimal(18, 4)")]
public decimal? chimpofa { get; set; }
public string? chserdoc { get; set; }
public double? chimpmat { get; set; }
public double? chimpman { get; set; }
public double? chperman { get; set; }
[Column(TypeName = "decimal(18, 4)")]
public decimal? chimpmat { get; set; }
[Column(TypeName = "decimal(18, 4)")]
public decimal? chimpman { get; set; }
[Column(TypeName = "decimal(6, 2)")]
public decimal? chperman { get; set; }
public string? chflstim { get; set; }
public string? chfleste { get; set; }
public string? chserext { get; set; }
public string? chrifiutata { get; set; }
#endregion
/// <summary>Tipo indirizzo (Via, piazza..)</summary>
[Display(Name = "Via,piazza,..")]
public string? imindiri1 { get; set; }
/// <summary> indirizzo </summary>
[Display(Name = "Indirizzo")]
public string? imindiri2 { get; set; }
/// <summary> numero civico </summary>
[Display(Name = "Num civico")]
public int? imindiri3 { get; set; }
/// <summary> sottonumero </summary>
[Display(Name = "Interno")]
public string? imindiri4 { get; set; }
/// <summary>scala</summary>
[Display(Name = "Scala")]
public string? imindiri5 { get; set; }
/// <summary> localita </summary>
[Display(Name = "Località")]
public string? imlocali { get; set; }
/// <summary> Cap </summary>
[Display(Name = "Cap")]
public string? imcodcap { get; set; }
/// <summary> Comune </summary>
[Display(Name = "Comune")]
public string? imcomune { get; set; }
/// <summary> Provincia </summary>
[Display(Name = "Provincia")]
public string? improvin { get; set; }
public string? indirizzo
{
get
{
string ind = string.Empty;
if (!string.IsNullOrEmpty(imindiri1))
ind = imindiri1.Trim();
if (!string.IsNullOrEmpty(imindiri2))
ind = ind + " " + imindiri2.Trim();
if (imindiri3 != null)
ind = ind + "," + Convert.ToString(imindiri3);
if (!string.IsNullOrEmpty(imindiri4) && imindiri4.Trim().Length > 0)
ind = ind + " Scala " + imindiri4.Trim();
if (!string.IsNullOrEmpty(imindiri5) && imindiri5.Trim().Length > 0)
ind = ind + " Int " + imindiri5.Trim();
if (!string.IsNullOrEmpty(imlocali) && imlocali.Trim().Length > 0)
ind = ind + " " + imlocali.Trim();
if (!string.IsNullOrEmpty(imcodcap) && imcodcap.Trim().Length > 0)
ind = ind + " " + imcodcap.Trim();
if (!string.IsNullOrEmpty(imcomune) && imcomune.Trim().Length > 0)
ind = ind + " " + imcomune.Trim();
if (!string.IsNullOrEmpty(improvin) && improvin.Trim().Length > 0)
ind = ind + " " + improvin.Trim();
return ind;
}
}
public string? indirizzoBreve
{
get
{
string ind = string.Empty;
if (!string.IsNullOrEmpty(imindiri1))
ind = imindiri1.Trim();
if (!string.IsNullOrEmpty(imindiri2))
ind = ind + " " + imindiri2.Trim();
if (imindiri3 != null)
ind = ind + "," + Convert.ToString(imindiri3);
return ind;
}
}
public string? tcdescri { get; set; }
public int? numIntero
{
get
{
int numero = -1;
numero=Convert.ToInt32(chnumero);
return numero;
}
}
public string? descStato
{
get
{
string st = string.Empty;
switch (chstato)
{
case "B":
st = "Da assegnare";
break;
case "A":
st = "Aperta";
break;
case "C":
st = "Assegnata";
break;
case "Z":
st = "Chiusa";
break;
case "S":
st = "Sospesa";
break;
default:
st = "N.C.";
break;
}
return st;
}
}
}
}

View File

@ -4,121 +4,48 @@
ViewData["Title"] = "Create";
}
<h1>Create</h1>
<h1>Nuova chiamata</h1>
<h4>Chiamate</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
@* <div class="form-group">
<label asp-for="chcodazi" class="control-label"></label>
<input asp-for="chcodazi" class="form-control" />
<span asp-validation-for="chcodazi" class="text-danger"></span>
</div> *@
@Html.HiddenFor(x => x.chcodazi)
<div class="form-group">
<label asp-for="chserial" class="control-label"></label>
<input asp-for="chserial" class="form-control" />
<span asp-validation-for="chserial" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chcodese" class="control-label"></label>
<input asp-for="chcodese" class="form-control" />
<span asp-validation-for="chcodese" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtipo" class="control-label"></label>
<input asp-for="chtipo" class="form-control" />
<span asp-validation-for="chtipo" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnumero" class="control-label"></label>
<input asp-for="chnumero" class="form-control" />
<span asp-validation-for="chnumero" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdata" class="control-label"></label>
<input asp-for="chdata" class="form-control" />
<span asp-validation-for="chdata" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chora" class="control-label"></label>
<input asp-for="chora" class="form-control" />
<span asp-validation-for="chora" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chmin" class="control-label"></label>
<input asp-for="chmin" class="form-control" />
<span asp-validation-for="chmin" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chopins" class="control-label"></label>
<input asp-for="chopins" class="form-control" />
<span asp-validation-for="chopins" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chopass" class="control-label"></label>
<input asp-for="chopass" class="form-control" />
<span asp-validation-for="chopass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chopchi" class="control-label"></label>
<input asp-for="chopchi" class="form-control" />
<span asp-validation-for="chopchi" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.chserial)
@Html.HiddenFor(x => x.chcodese)
@Html.HiddenFor(x => x.chserial)
@Html.HiddenFor(x => x.chnumero)
@Html.HiddenFor(x => x.chdata)
@Html.HiddenFor(x => x.chora)
@Html.HiddenFor(x => x.chmin)
@Html.HiddenFor(x => x.chopins)
@Html.HiddenFor(x => x.chopass)
@Html.HiddenFor(x => x.chopchi)
@Html.HiddenFor(x => x.chaziimp)
@Html.HiddenFor(x => x.chtmanut)
@Html.HiddenFor(x => x.chdtapp)
@Html.HiddenFor(x => x.chtipo)
<div class="form-group">
<label asp-for="chcodimp" class="control-label"></label>
@*<input asp-for="chcodimp" class="form-control" />*@
@Html.DropDownListFor(x => x.chcodimp,(IEnumerable<SelectListItem>)ViewBag.AllStockList, new {@class = "form-control"})
@Html.DropDownListFor(x => x.chcodimp,(IEnumerable<SelectListItem>)ViewBag.Impianti, new {@class = "form-control"})
<span asp-validation-for="chcodimp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chaziimp" class="control-label"></label>
<input asp-for="chaziimp" class="form-control" />
<span asp-validation-for="chaziimp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtchiam" class="control-label"></label>
<input asp-for="chtchiam" class="form-control" />
@Html.DropDownListFor(x => x.chtchiam,(IEnumerable<SelectListItem>)ViewBag.Tecnici, new {@class = "form-control"})
<span asp-validation-for="chtchiam" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtmanut" class="control-label"></label>
<input asp-for="chtmanut" class="form-control" />
<span asp-validation-for="chtmanut" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chstato" class="control-label"></label>
<input asp-for="chstato" class="form-control" />
@Html.DropDownListFor(x => x.chstato,(IEnumerable<SelectListItem>)ViewBag.StatiChiamata, new {@class = "form-control"})
<span asp-validation-for="chstato" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtapp" class="control-label"></label>
<input asp-for="chdtapp" class="form-control" />
<span asp-validation-for="chdtapp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="choraapi" class="control-label"></label>
<input asp-for="choraapi" class="form-control" />
<span asp-validation-for="choraapi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminapi" class="control-label"></label>
<input asp-for="chminapi" class="form-control" />
<span asp-validation-for="chminapi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="choraapf" class="control-label"></label>
<input asp-for="choraapf" class="form-control" />
<span asp-validation-for="choraapf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminapf" class="control-label"></label>
<input asp-for="chminapf" class="form-control" />
<span asp-validation-for="chminapf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chrifer" class="control-label"></label>
<input asp-for="chrifer" class="form-control" />
@ -131,179 +58,54 @@
</div>
<div class="form-group">
<label asp-for="chcodseg" class="control-label"></label>
<input asp-for="chcodseg" class="form-control" />
@Html.DropDownListFor(x => x.chcodseg,(IEnumerable<SelectListItem>)ViewBag.CodiciSegnalazione, new {@class = "form-control"})
<span asp-validation-for="chcodseg" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chstopi" class="control-label"></label>
<input asp-for="chstopi" class="form-control" />
<span asp-validation-for="chstopi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnote" class="control-label"></label>
<input asp-for="chnote" class="form-control" />
<span asp-validation-for="chnote" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtass" class="control-label"></label>
<input asp-for="chdtass" class="form-control" />
<span asp-validation-for="chdtass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chorass" class="control-label"></label>
<input asp-for="chorass" class="form-control" />
<span asp-validation-for="chorass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminass" class="control-label"></label>
<input asp-for="chminass" class="form-control" />
<span asp-validation-for="chminass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtchi" class="control-label"></label>
<input asp-for="chdtchi" class="form-control" />
<span asp-validation-for="chdtchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chorachi" class="control-label"></label>
<input asp-for="chorachi" class="form-control" />
<span asp-validation-for="chorachi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminchi" class="control-label"></label>
<input asp-for="chminchi" class="form-control" />
<span asp-validation-for="chminchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtlin" class="control-label"></label>
<input asp-for="chdtlin" class="form-control" />
<span asp-validation-for="chdtlin" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chorali" class="control-label"></label>
<input asp-for="chorali" class="form-control" />
<span asp-validation-for="chorali" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminli" class="control-label"></label>
<input asp-for="chminli" class="form-control" />
<span asp-validation-for="chminli" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtlfi" class="control-label"></label>
<input asp-for="chdtlfi" class="form-control" />
<span asp-validation-for="chdtlfi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="choralf" class="control-label"></label>
<input asp-for="choralf" class="form-control" />
<span asp-validation-for="choralf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminlf" class="control-label"></label>
<input asp-for="chminlf" class="form-control" />
<span asp-validation-for="chminlf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chvalfat" class="control-label"></label>
<input asp-for="chvalfat" class="form-control" />
<span asp-validation-for="chvalfat" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="cpccchk" class="control-label"></label>
<input asp-for="cpccchk" class="form-control" />
<span asp-validation-for="cpccchk" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnrap1" class="control-label"></label>
<input asp-for="chnrap1" class="form-control" />
<span asp-validation-for="chnrap1" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chsrap1" class="control-label"></label>
<input asp-for="chsrap1" class="form-control" />
<span asp-validation-for="chsrap1" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnrap2" class="control-label"></label>
<input asp-for="chnrap2" class="form-control" />
<span asp-validation-for="chnrap2" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chsrap2" class="control-label"></label>
<input asp-for="chsrap2" class="form-control" />
<span asp-validation-for="chsrap2" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chmodrac" class="control-label"></label>
<input asp-for="chmodrac" class="form-control" />
<span asp-validation-for="chmodrac" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chprgann" class="control-label"></label>
<input asp-for="chprgann" class="form-control" />
<span asp-validation-for="chprgann" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chserchi" class="control-label"></label>
<input asp-for="chserchi" class="form-control" />
<span asp-validation-for="chserchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdesfat" class="control-label"></label>
<input asp-for="chdesfat" class="form-control" />
<span asp-validation-for="chdesfat" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdessup" class="control-label"></label>
<input asp-for="chdessup" class="form-control" />
<span asp-validation-for="chdessup" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chimpofa" class="control-label"></label>
<input asp-for="chimpofa" class="form-control" />
<span asp-validation-for="chimpofa" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chserdoc" class="control-label"></label>
<input asp-for="chserdoc" class="form-control" />
<span asp-validation-for="chserdoc" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chimpmat" class="control-label"></label>
<input asp-for="chimpmat" class="form-control" />
<span asp-validation-for="chimpmat" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chimpman" class="control-label"></label>
<input asp-for="chimpman" class="form-control" />
<span asp-validation-for="chimpman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chperman" class="control-label"></label>
<input asp-for="chperman" class="form-control" />
<span asp-validation-for="chperman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chflstim" class="control-label"></label>
<input asp-for="chflstim" class="form-control" />
<span asp-validation-for="chflstim" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chfleste" class="control-label"></label>
<input asp-for="chfleste" class="form-control" />
<span asp-validation-for="chfleste" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chserext" class="control-label"></label>
<input asp-for="chserext" class="form-control" />
<span asp-validation-for="chserext" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chrifiutata" class="control-label"></label>
<input asp-for="chrifiutata" class="form-control" />
<span asp-validation-for="chrifiutata" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.chmodrac)
@Html.HiddenFor(x => x.choraapi)
@Html.HiddenFor(x => x.chminapi)
@Html.HiddenFor(x => x.choraapf)
@Html.HiddenFor(x => x.chminapf)
@Html.HiddenFor(x => x.chstopi)
@Html.HiddenFor(x => x.chdtass)
@Html.HiddenFor(x => x.chorass)
@Html.HiddenFor(x => x.chminass)
@Html.HiddenFor(x => x.chdtchi)
@Html.HiddenFor(x => x.chorachi)
@Html.HiddenFor(x => x.chminchi)
@Html.HiddenFor(x => x.chdtlin)
@Html.HiddenFor(x => x.chorali)
@Html.HiddenFor(x => x.chminli)
@Html.HiddenFor(x => x.chdtlfi)
@Html.HiddenFor(x => x.choralf)
@Html.HiddenFor(x => x.chminlf)
@Html.HiddenFor(x => x.chvalfat)
@Html.HiddenFor(x => x.cpccchk)
@Html.HiddenFor(x => x.chnrap1)
@Html.HiddenFor(x => x.chsrap1)
@Html.HiddenFor(x => x.chnrap2)
@Html.HiddenFor(x => x.chsrap2)
@Html.HiddenFor(x => x.chprgann)
@Html.HiddenFor(x => x.chserchi)
@Html.HiddenFor(x => x.chdesfat)
@Html.HiddenFor(x => x.chdessup)
@Html.HiddenFor(x => x.chimpofa)
@Html.HiddenFor(x => x.chserdoc)
@Html.HiddenFor(x => x.chimpmat)
@Html.HiddenFor(x => x.chimpman)
@Html.HiddenFor(x => x.chperman)
@Html.HiddenFor(x => x.chflstim)
@Html.HiddenFor(x => x.chfleste)
@Html.HiddenFor(x => x.chserext)
@Html.HiddenFor(x => x.chrifiutata)
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>

View File

@ -11,12 +11,7 @@
<h4>Chiamate</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chcodazi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chcodazi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserial)
</dt>
@ -44,99 +39,27 @@
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdata)
</dt>
<dd class = "col-sm-10">
<dd class="col-sm-10">
@Html.DisplayFor(model => model.chdata)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chora)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chora)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chmin)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chmin)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chopins)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chopins)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chopass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chopass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chopchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chopchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chcodimp)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chcodimp)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chaziimp)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chaziimp)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chtchiam)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chtchiam)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chtmanut)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chtmanut)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chstato)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chstato)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtapp)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtapp)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.choraapi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.choraapi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminapi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminapi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.choraapf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.choraapf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminapf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminapf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chrifer)
</dt>
@ -155,210 +78,12 @@
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chcodseg)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chstopi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chstopi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chnote)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnote)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chorass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chorass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chorachi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chorachi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtlin)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtlin)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chorali)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chorali)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminli)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminli)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtlfi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtlfi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.choralf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.choralf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminlf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminlf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chvalfat)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chvalfat)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.cpccchk)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.cpccchk)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chnrap1)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnrap1)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chsrap1)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chsrap1)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chnrap2)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnrap2)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chsrap2)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chsrap2)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chmodrac)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chmodrac)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chprgann)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chprgann)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chserchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdesfat)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdesfat)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdessup)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdessup)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chimpofa)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chimpofa)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserdoc)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chserdoc)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chimpmat)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chimpmat)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chimpman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chimpman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chperman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chperman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chflstim)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chflstim)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chfleste)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chfleste)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserext)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chserext)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chrifiutata)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chrifiutata)
</dd>
</dl>
<form asp-action="DeleteConfirmed">

View File

@ -2,12 +2,14 @@
@{
ViewData["Title"] = "Details";
int numChia = -1;
numChia = Convert.ToInt32(Model.chnumero);
}
<h1>Details</h1>
<h1>Dettaglio chiamata</h1>
<div>
<h4>Chiamate</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@ -38,7 +40,7 @@
@Html.DisplayNameFor(model => model.chnumero)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnumero)
@numChia
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdata)
@ -46,96 +48,34 @@
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdata)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chora)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chora)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chmin)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chmin)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chopins)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chopins)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chopass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chopass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chopchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chopchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chcodimp)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chcodimp)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chaziimp)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chaziimp)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chtchiam)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chtchiam)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chtmanut)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chtmanut)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chstato)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chstato)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtapp)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtapp)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.choraapi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.choraapi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminapi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminapi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.choraapf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.choraapf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminapf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminapf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chrifer)
</dt>
@ -154,213 +94,22 @@
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chcodseg)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chstopi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chstopi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chnote)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnote)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtass)
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.indirizzo)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chorass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chorass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminass)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminass)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chorachi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chorachi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtlin)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtlin)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chorali)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chorali)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminli)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminli)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdtlfi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdtlfi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.choralf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.choralf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chminlf)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chminlf)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chvalfat)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chvalfat)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.cpccchk)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.cpccchk)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chnrap1)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnrap1)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chsrap1)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chsrap1)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chnrap2)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chnrap2)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chsrap2)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chsrap2)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chmodrac)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chmodrac)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chprgann)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chprgann)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserchi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chserchi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdesfat)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdesfat)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chdessup)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chdessup)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chimpofa)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chimpofa)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserdoc)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chserdoc)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chimpmat)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chimpmat)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chimpman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chimpman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chperman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chperman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chflstim)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chflstim)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chfleste)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chfleste)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chserext)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chserext)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.chrifiutata)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.chrifiutata)
<dd class="col-sm-10">
@Html.DisplayFor(model => model.indirizzo)
</dd>
</dl>
</div>
<div>
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
@Html.ActionLink("Edit", "Edit", new { id = Model.chserial }) |
<a asp-action="Index">Back to List</a>
</div>

View File

@ -2,6 +2,8 @@
@{
ViewData["Title"] = "Edit";
int numChia = -1;
numChia = Convert.ToInt32(Model.chnumero);
}
<h1>Edit</h1>
@ -12,15 +14,12 @@
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
@* <div class="form-group">
<label asp-for="chcodazi" class="control-label"></label>
<input asp-for="chcodazi" class="form-control" />
<span asp-validation-for="chcodazi" class="text-danger"></span>
</div> *@
@Html.HiddenFor(x => x.chcodazi)
<div class="form-group">
<label asp-for="chserial" class="control-label"></label>
<input asp-for="chserial" class="form-control" />
@Html.HiddenFor(x => x.chserial)
@Html.DisplayFor(model => model.chserial)
<span asp-validation-for="chserial" class="text-danger"></span>
</div>
<div class="form-group">
@ -28,14 +27,10 @@
<input asp-for="chcodese" class="form-control" />
<span asp-validation-for="chcodese" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtipo" class="control-label"></label>
<input asp-for="chtipo" class="form-control" />
<span asp-validation-for="chtipo" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.chtipo)
<div class="form-group">
<label asp-for="chnumero" class="control-label"></label>
<input asp-for="chnumero" class="form-control" />
<input asp-for="chnumero" class="form-control" value="@numChia"/>
<span asp-validation-for="chnumero" class="text-danger"></span>
</div>
<div class="form-group">
@ -43,81 +38,21 @@
<input asp-for="chdata" class="form-control" />
<span asp-validation-for="chdata" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chora" class="control-label"></label>
<input asp-for="chora" class="form-control" />
<span asp-validation-for="chora" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chmin" class="control-label"></label>
<input asp-for="chmin" class="form-control" />
<span asp-validation-for="chmin" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chopins" class="control-label"></label>
<input asp-for="chopins" class="form-control" />
<span asp-validation-for="chopins" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chopass" class="control-label"></label>
<input asp-for="chopass" class="form-control" />
<span asp-validation-for="chopass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chopchi" class="control-label"></label>
<input asp-for="chopchi" class="form-control" />
<span asp-validation-for="chopchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chcodimp" class="control-label"></label>
<input asp-for="chcodimp" class="form-control" />
<span asp-validation-for="chcodimp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chaziimp" class="control-label"></label>
<input asp-for="chaziimp" class="form-control" />
<span asp-validation-for="chaziimp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtchiam" class="control-label"></label>
<input asp-for="chtchiam" class="form-control" />
<span asp-validation-for="chtchiam" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtmanut" class="control-label"></label>
<input asp-for="chtmanut" class="form-control" />
<span asp-validation-for="chtmanut" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chstato" class="control-label"></label>
<input asp-for="chstato" class="form-control" />
@Html.DropDownListFor(x => x.chstato,(IEnumerable<SelectListItem>)ViewBag.StatiChiamata, new {@class = "form-control"})
<span asp-validation-for="chstato" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtapp" class="control-label"></label>
<input asp-for="chdtapp" class="form-control" />
<span asp-validation-for="chdtapp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="choraapi" class="control-label"></label>
<input asp-for="choraapi" class="form-control" />
<span asp-validation-for="choraapi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminapi" class="control-label"></label>
<input asp-for="chminapi" class="form-control" />
<span asp-validation-for="chminapi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="choraapf" class="control-label"></label>
<input asp-for="choraapf" class="form-control" />
<span asp-validation-for="choraapf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminapf" class="control-label"></label>
<input asp-for="chminapf" class="form-control" />
<span asp-validation-for="chminapf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chrifer" class="control-label"></label>
<input asp-for="chrifer" class="form-control" />
@ -133,176 +68,58 @@
<input asp-for="chcodseg" class="form-control" />
<span asp-validation-for="chcodseg" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chstopi" class="control-label"></label>
<input asp-for="chstopi" class="form-control" />
<span asp-validation-for="chstopi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnote" class="control-label"></label>
<input asp-for="chnote" class="form-control" />
<span asp-validation-for="chnote" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtass" class="control-label"></label>
<input asp-for="chdtass" class="form-control" />
<span asp-validation-for="chdtass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chorass" class="control-label"></label>
<input asp-for="chorass" class="form-control" />
<span asp-validation-for="chorass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminass" class="control-label"></label>
<input asp-for="chminass" class="form-control" />
<span asp-validation-for="chminass" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtchi" class="control-label"></label>
<input asp-for="chdtchi" class="form-control" />
<span asp-validation-for="chdtchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chorachi" class="control-label"></label>
<input asp-for="chorachi" class="form-control" />
<span asp-validation-for="chorachi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminchi" class="control-label"></label>
<input asp-for="chminchi" class="form-control" />
<span asp-validation-for="chminchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtlin" class="control-label"></label>
<input asp-for="chdtlin" class="form-control" />
<span asp-validation-for="chdtlin" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chorali" class="control-label"></label>
<input asp-for="chorali" class="form-control" />
<span asp-validation-for="chorali" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminli" class="control-label"></label>
<input asp-for="chminli" class="form-control" />
<span asp-validation-for="chminli" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdtlfi" class="control-label"></label>
<input asp-for="chdtlfi" class="form-control" />
<span asp-validation-for="chdtlfi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="choralf" class="control-label"></label>
<input asp-for="choralf" class="form-control" />
<span asp-validation-for="choralf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chminlf" class="control-label"></label>
<input asp-for="chminlf" class="form-control" />
<span asp-validation-for="chminlf" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chvalfat" class="control-label"></label>
<input asp-for="chvalfat" class="form-control" />
<span asp-validation-for="chvalfat" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="cpccchk" class="control-label"></label>
<input asp-for="cpccchk" class="form-control" />
<span asp-validation-for="cpccchk" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnrap1" class="control-label"></label>
<input asp-for="chnrap1" class="form-control" />
<span asp-validation-for="chnrap1" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chsrap1" class="control-label"></label>
<input asp-for="chsrap1" class="form-control" />
<span asp-validation-for="chsrap1" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chnrap2" class="control-label"></label>
<input asp-for="chnrap2" class="form-control" />
<span asp-validation-for="chnrap2" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chsrap2" class="control-label"></label>
<input asp-for="chsrap2" class="form-control" />
<span asp-validation-for="chsrap2" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chmodrac" class="control-label"></label>
<input asp-for="chmodrac" class="form-control" />
<span asp-validation-for="chmodrac" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chprgann" class="control-label"></label>
<input asp-for="chprgann" class="form-control" />
<span asp-validation-for="chprgann" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chserchi" class="control-label"></label>
<input asp-for="chserchi" class="form-control" />
<span asp-validation-for="chserchi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdesfat" class="control-label"></label>
<input asp-for="chdesfat" class="form-control" />
<span asp-validation-for="chdesfat" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chdessup" class="control-label"></label>
<input asp-for="chdessup" class="form-control" />
<span asp-validation-for="chdessup" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chimpofa" class="control-label"></label>
<input asp-for="chimpofa" class="form-control" />
<span asp-validation-for="chimpofa" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chserdoc" class="control-label"></label>
<input asp-for="chserdoc" class="form-control" />
<span asp-validation-for="chserdoc" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chimpmat" class="control-label"></label>
<input asp-for="chimpmat" class="form-control" />
<span asp-validation-for="chimpmat" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chimpman" class="control-label"></label>
<input asp-for="chimpman" class="form-control" />
<span asp-validation-for="chimpman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chperman" class="control-label"></label>
<input asp-for="chperman" class="form-control" />
<span asp-validation-for="chperman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chflstim" class="control-label"></label>
<input asp-for="chflstim" class="form-control" />
<span asp-validation-for="chflstim" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chfleste" class="control-label"></label>
<input asp-for="chfleste" class="form-control" />
<span asp-validation-for="chfleste" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chserext" class="control-label"></label>
<input asp-for="chserext" class="form-control" />
<span asp-validation-for="chserext" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chrifiutata" class="control-label"></label>
<input asp-for="chrifiutata" class="form-control" />
<span asp-validation-for="chrifiutata" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.chora)
@Html.HiddenFor(x => x.chmin)
@Html.HiddenFor(x => x.chopins)
@Html.HiddenFor(x => x.chopass)
@Html.HiddenFor(x => x.chopchi)
@Html.HiddenFor(x => x.chaziimp)
@Html.HiddenFor(x => x.chtmanut)
@Html.HiddenFor(x => x.chdtapp)
@Html.HiddenFor(x => x.choraapi)
@Html.HiddenFor(x => x.chminapi)
@Html.HiddenFor(x => x.choraapf)
@Html.HiddenFor(x => x.chminapf)
@Html.HiddenFor(x => x.chstopi)
@Html.HiddenFor(x => x.chdtass)
@Html.HiddenFor(x => x.chorass)
@Html.HiddenFor(x => x.chminass)
@Html.HiddenFor(x => x.chdtchi)
@Html.HiddenFor(x => x.chorachi)
@Html.HiddenFor(x => x.chminchi)
@Html.HiddenFor(x => x.chdtlin)
@Html.HiddenFor(x => x.chorali)
@Html.HiddenFor(x => x.chminli)
@Html.HiddenFor(x => x.chdtlfi)
@Html.HiddenFor(x => x.choralf)
@Html.HiddenFor(x => x.chminlf)
@Html.HiddenFor(x => x.chvalfat)
@Html.HiddenFor(x => x.cpccchk)
@Html.HiddenFor(x => x.chnrap1)
@Html.HiddenFor(x => x.chsrap1)
@Html.HiddenFor(x => x.chnrap2)
@Html.HiddenFor(x => x.chsrap2)
@Html.HiddenFor(x => x.chmodrac)
@Html.HiddenFor(x => x.chprgann)
@Html.HiddenFor(x => x.chserchi)
@Html.HiddenFor(x => x.chdesfat)
@Html.HiddenFor(x => x.chdessup)
@Html.HiddenFor(x => x.chimpofa)
@Html.HiddenFor(x => x.chserdoc)
@Html.HiddenFor(x => x.chimpmat)
@Html.HiddenFor(x => x.chimpman)
@Html.HiddenFor(x => x.chperman)
@Html.HiddenFor(x => x.chflstim)
@Html.HiddenFor(x => x.chfleste)
@Html.HiddenFor(x => x.chserext)
@Html.HiddenFor(x => x.chrifiutata)
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
</div>

View File

@ -7,10 +7,10 @@
ViewData["Title"] = "Index";
}
<h1>Index</h1>
<h1>Chiamate</h1>
<p>
<a asp-action="Create">Create New</a>
<a asp-action="Create">Nuova chiamata</a>
</p>
@using (Html.BeginForm())
{
@ -22,369 +22,43 @@
<table class="table">
<thead>
<tr>
<th>
@* @Html.DisplayNameFor(model => model.chcodazi) *@
AZIENDA
</th>
<th>
@* @Html.DisplayNameFor(model => model.chserial) *@
SERIALE
</th>
<th>
@* @Html.DisplayNameFor(model => model.chcodese) *@
ESERCIZIO
</th>
<th>
@* @Html.DisplayNameFor(model => model.chtipo) *@
TIPO
</th>
<th>
@* @Html.DisplayNameFor(model => model.chnumero) *@
NUMERO
</th>
<th>
@* @Html.DisplayNameFor(model => model.chdata) *@
DATA
</th>
<th>
@* @Html.DisplayNameFor(model => model.chora) *@
ORA
</th>
<th>
@* @Html.DisplayNameFor(model => model.chmin) *@
MINUTI
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chopins) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chopass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chopchi) *@
</th>
<th>
@* @Html.DisplayNameFor(model => model.chcodimp) *@
IMPIANTO
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chaziimp) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chtchiam) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chtmanut) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chstato) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtapp) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.choraapi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminapi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.choraapf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminapf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chrifer) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chtelef) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chcodseg) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chstopi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chnote) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chorass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminass) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtchi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chorachi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminchi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtlin) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chorali) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminli) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdtlfi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.choralf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chminlf) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chvalfat) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.cpccchk) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chnrap1) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chsrap1) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chnrap2) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chsrap2) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chmodrac) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chprgann) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chserchi) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdesfat) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chdessup) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chimpofa) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chserdoc) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chimpmat) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chimpman) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chperman) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chflstim) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chfleste) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chserext) *@
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.chrifiutata) *@
</th>
<th>SERIALE</th>
<th>ESERCIZIO</th>
<th>NUMERO</th>
<th>DATA</th>
<th>IMPIANTO</th>
<th>TECNICO</th>
<th>STATO</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.chcodazi)
</td>
<td>
@Html.DisplayFor(modelItem => item.chserial)
</td>
<td>
@Html.DisplayFor(modelItem => item.chcodese)
</td>
<td>
@Html.DisplayFor(modelItem => item.chtipo)
</td>
<td>
@Html.DisplayFor(modelItem => item.chnumero)
@Html.DisplayFor(modelItem => item.numIntero)
</td>
<td>
@Html.DisplayFor(modelItem => item.chdata)
</td>
<td>
@Html.DisplayFor(modelItem => item.chora)
@Html.DisplayFor(modelItem => item.chcodimp) - @Html.DisplayFor(modelItem => item.indirizzoBreve)
</td>
<td>
@Html.DisplayFor(modelItem => item.chmin)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chopins)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chopass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chopchi)
</td>
<td>
@Html.DisplayFor(modelItem => item.chcodimp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chaziimp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chtchiam)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chtmanut)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chstato)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtapp)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.choraapi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminapi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.choraapf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminapf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chrifer)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chtelef)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chcodseg)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chstopi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chnote)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chorass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminass)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chorachi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtlin)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chorali)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminli)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdtlfi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.choralf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chminlf)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chvalfat)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.cpccchk)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chnrap1)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chsrap1)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chnrap2)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chsrap2)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chmodrac)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chprgann)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chserchi)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdesfat)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chdessup)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chimpofa)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chserdoc)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chimpmat)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chimpman)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chperman)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chflstim)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chfleste)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chserext)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.chrifiutata)
@Html.DisplayFor(modelItem => item.chtchiam) - @Html.DisplayFor(modelItem => item.tcdescri)
</td>
<td>@Html.DisplayFor(modelItem => item.chstato) - @Html.DisplayFor(modelItem => item.descStato)</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.chserial }) |
@Html.ActionLink("Details", "Details", new { id=item.chserial }) |