diff --git a/Controllers/AnagController.cs b/Controllers/AnagController.cs index 36719c1..2a90630 100644 --- a/Controllers/AnagController.cs +++ b/Controllers/AnagController.cs @@ -17,6 +17,7 @@ namespace VirtualTask.Controllers //Uri baseAddress = new Uri("http://10.0.0.187:8000/api/Polo/anagraficheList?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI"); //Uri baseAddress = new Uri("http://10.0.0.187:8000/api/Polo/anagraficheList?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI"); HttpClient client; + public AnagController() { @@ -78,7 +79,6 @@ namespace VirtualTask.Controllers public IActionResult Create() { - return View(); } diff --git a/Controllers/ChiamateController.cs b/Controllers/ChiamateController.cs index c5727bb..e5de08f 100644 --- a/Controllers/ChiamateController.cs +++ b/Controllers/ChiamateController.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; +using System.Text; using VirtualTask.Models; using X.PagedList; @@ -10,6 +11,7 @@ namespace VirtualTask.Controllers string apiUrl = string.Empty; string urlBase = string.Empty; string token = string.Empty; + string tenant = string.Empty; HttpClient client; @@ -28,7 +30,7 @@ namespace VirtualTask.Controllers return RedirectToAction("Index", "Login"); apiUrl = helper.GetStringValue("apiUrl"); - urlBase = apiUrl + "chiamateList"; + urlBase = apiUrl + "chiamate"; urlBase = urlBase + "?token=" + token; Uri baseAddress = new Uri(urlBase); client = new HttpClient(); @@ -66,5 +68,192 @@ namespace VirtualTask.Controllers } #endregion INDEX + + #region CREATE + + public IActionResult Create() + { + return View(); + } + + [HttpPost] + public IActionResult Create(Chiamate model) + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index","Login"); + } + model.chcodazi = tenant; + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "chiamata/add"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client.BaseAddress = baseAddress; + string data = JsonConvert.SerializeObject(model); + StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); + HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; + if (response.IsSuccessStatusCode) + { + return RedirectToAction("Index"); + } + + return View(); + } + + #endregion CREATE + + #region DETAIL + + public IActionResult Details(string id) + { + SessionHelper helper = new SessionHelper(this); + + token = helper.GetStringValue("tok"); + + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "chiamate"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + Chiamate chiamata = new Chiamate(); + + List modelList = new List(); + + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + chiamata = modelList.Where(x => x.chserial.Equals(id)).First(); + } + + return View(chiamata); + } + + #endregion DETAIL + + #region EDIT + + public IActionResult Edit(string id) + { + SessionHelper helper = new SessionHelper(this); + + token = helper.GetStringValue("tok"); + + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "chiamate"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + Chiamate chiamata = new Chiamate(); + + List modelList = new List(); + + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + chiamata = modelList.Where(t => t.chserial.Equals(id)).First(); + } + + return View(chiamata); + } + + [HttpPost] + public IActionResult Edit(Chiamate model) + { + SessionHelper helper = new SessionHelper(this); + + token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index", "Login"); + } + model.chcodazi = tenant; + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "chiamata/mod"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + string data = JsonConvert.SerializeObject(model); + StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); + HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; + if (response.IsSuccessStatusCode) + { + return RedirectToAction("Index"); + } + + return View(model); + } + + #endregion EDIT + + #region DELETE + + [HttpGet] + public IActionResult Delete(string id) + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "chiamate"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + Chiamate chiamata = new Chiamate(); + List modelList = new List(); + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + chiamata = modelList.Where(x => x.chserial.Equals(id)).First(); + } + + return View(chiamata); + } + + + [HttpPost, ActionName("DeleteConfirmed")] + public IActionResult DeleteConfirmed(string id) + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "chiamata/del?" + "codice=" + id + "&"; + urlBase = urlBase + "token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + string data = JsonConvert.SerializeObject(id); + StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); + HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; + + if (response.IsSuccessStatusCode) + { + return RedirectToAction("Index"); + } + + return View(); + } + #endregion DELETE } } diff --git a/Controllers/ChiusureController.cs b/Controllers/ChiusureController.cs index 760b3d9..eab3bdd 100644 --- a/Controllers/ChiusureController.cs +++ b/Controllers/ChiusureController.cs @@ -14,7 +14,7 @@ namespace VirtualTask.Controllers string apiUrl = string.Empty; string urlBase = string.Empty; string token = string.Empty; - + string tenant = string.Empty; //Uri baseAddress = new Uri("http://10.0.0.187:8000/api/Polo/codici_chiusura?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI"); HttpClient client; @@ -29,35 +29,17 @@ namespace VirtualTask.Controllers public ChiusureController() { - //client = new HttpClient(); - //client.BaseAddress = baseAddress; - - //clientCreate = new HttpClient(); - //clientCreate.BaseAddress = baseAddressCreate; - - //clientEdit = new HttpClient(); - //clientEdit.BaseAddress = baseAddressEdit; - - //clientDelete = new HttpClient(); - //clientDelete.BaseAddress = baseAddressDelete; - + client = new HttpClient(); } #region INDEX public IActionResult Index(string searchString, int? page = 1) { - //List modelList = new List(); - //HttpResponseMessage response = client.GetAsync(baseAddress).Result; - //if (response.IsSuccessStatusCode) - //{ - // string data = response.Content.ReadAsStringAsync().Result; - // modelList = JsonConvert.DeserializeObject>(data); - //} - //return View(modelList); SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); + if (string.IsNullOrEmpty(token)) return RedirectToAction("Index", "Login"); @@ -114,7 +96,14 @@ namespace VirtualTask.Controllers SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index", "Login"); + } + + model.cccodazi = tenant; apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "chiusure/add"; urlBase = urlBase + "?token=" + token; @@ -206,7 +195,12 @@ namespace VirtualTask.Controllers SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); - + tenant = helper.GetStringValue("tenant"); + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index", "Login"); + } + model.cccodazi = tenant; apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "chiusure/mod"; urlBase = urlBase + "?token=" + token; diff --git a/Controllers/ImpiantiController.cs b/Controllers/ImpiantiController.cs index 1b6fa31..ec8fd06 100644 --- a/Controllers/ImpiantiController.cs +++ b/Controllers/ImpiantiController.cs @@ -22,6 +22,8 @@ namespace VirtualTask.Controllers client = new HttpClient(); } + #region INDEX + public IActionResult Index(string searchString, int? page = 1) { SessionHelper helper = new SessionHelper(this); @@ -68,6 +70,10 @@ namespace VirtualTask.Controllers } + #endregion INDEX + + #region CREATE + public IActionResult Create() { ViewBag.AllStockList = LoadStockitems(); @@ -83,6 +89,7 @@ namespace VirtualTask.Controllers if (string.IsNullOrEmpty(token)) return RedirectToAction("Index", "Login"); model.imcodazi = tenant; + apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "impianti/add"; urlBase = urlBase + "?token=" + token; @@ -99,6 +106,158 @@ namespace VirtualTask.Controllers return View(); } + #endregion CREATE + + #region DETAILS + + public IActionResult Details(string id) + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "impiantiList"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + Impianto impianto = new Impianto(); + + List modelList = new List(); + + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + impianto = modelList.Where(x => x.imcodimp.Equals(id)).First(); + } + + return View(impianto); + + } + + #endregion DETAILS + + #region EDIT + + public IActionResult Edit(string id) + { + SessionHelper helper = new SessionHelper(this); + + token = helper.GetStringValue("tok"); + + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "impiantiList"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + Impianto impianto = new Impianto(); + + List modelList = new List(); + + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + impianto = modelList.Where(x => x.imcodimp.Equals(id)).First(); + } + + return View(impianto); + } + + [HttpPost] + public IActionResult Edit(Impianto model) + { + SessionHelper helper = new SessionHelper(this); + + token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index", "Login"); + } + model.imcodazi = tenant; + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "impianto/mod"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + string data = JsonConvert.SerializeObject(model); + StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); + HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; + if (response.IsSuccessStatusCode) + { + return RedirectToAction("Index"); + } + return View(model); + } + + #endregion EDIT + + #region DELETE + + [HttpGet] + public IActionResult Delete(string id) + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "impiantiList"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + Impianto impianto = new Impianto(); + List modelList = new List(); + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + impianto = modelList.Where(t => t.imcodimp.Equals(id)).First(); + } + + return View(impianto); + + } + + [HttpPost, ActionName("DeleteConfirmed")] + public IActionResult DeleteConfirmed(string id) + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "impianto/del?" + "codice=" + id + "&"; + urlBase = urlBase + "token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + + string data = JsonConvert.SerializeObject(id); + StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); + HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; + + if (response.IsSuccessStatusCode) + { + return RedirectToAction("Index"); + } + + return View(); + + } + + #endregion DELETE + private List LoadStockitems() { SessionHelper helper = new SessionHelper(this); diff --git a/Controllers/Rapp_NewController.cs b/Controllers/Rapp_NewController.cs index 21e7ef8..a2e9feb 100644 --- a/Controllers/Rapp_NewController.cs +++ b/Controllers/Rapp_NewController.cs @@ -77,35 +77,6 @@ namespace VirtualTask.Controllers return View(); } - //metodo per avere riempire combobox con la tabella delle chiusure - private List LoadStockitems() - { - SessionHelper helper = new SessionHelper(this); - token = helper.GetStringValue("tok"); - apiUrl = helper.GetStringValue("apiUrl"); - urlBase = apiUrl + "codici_chiusura"; - urlBase = urlBase + "?token=" + token; - Uri baseAddress = new Uri(urlBase); - client = new HttpClient(); - client.BaseAddress = baseAddress; - List selectItems = new List(); - List modelList = new List(); - HttpResponseMessage response = client.GetAsync(baseAddress).Result; - if (response.IsSuccessStatusCode) - { - string data = response.Content.ReadAsStringAsync().Result; - modelList = JsonConvert.DeserializeObject>(data); - foreach (var role in modelList) - { - SelectListItem listItem = new SelectListItem(); - listItem.Value = role.cccodice; - listItem.Text = role.ccdescr; - selectItems.Add(listItem); - } - } - return selectItems; - } - [HttpPost] public IActionResult Create(Rapp_New model) { @@ -289,5 +260,35 @@ namespace VirtualTask.Controllers } #endregion DELETE + + //metodo per avere riempire combobox con la tabella delle chiusure + private List LoadStockitems() + { + SessionHelper helper = new SessionHelper(this); + token = helper.GetStringValue("tok"); + apiUrl = helper.GetStringValue("apiUrl"); + urlBase = apiUrl + "codici_chiusura"; + urlBase = urlBase + "?token=" + token; + Uri baseAddress = new Uri(urlBase); + client = new HttpClient(); + client.BaseAddress = baseAddress; + List selectItems = new List(); + List modelList = new List(); + HttpResponseMessage response = client.GetAsync(baseAddress).Result; + if (response.IsSuccessStatusCode) + { + string data = response.Content.ReadAsStringAsync().Result; + modelList = JsonConvert.DeserializeObject>(data); + foreach (var role in modelList) + { + SelectListItem listItem = new SelectListItem(); + listItem.Value = role.cccodice; + listItem.Text = role.ccdescr; + selectItems.Add(listItem); + } + } + + return selectItems; + } } } diff --git a/Controllers/TecniciController.cs b/Controllers/TecniciController.cs index 2227f9d..ad5bff6 100644 --- a/Controllers/TecniciController.cs +++ b/Controllers/TecniciController.cs @@ -13,6 +13,7 @@ namespace VirtualTask.Controllers string apiUrl = string.Empty; string urlBase = string.Empty; string token = string.Empty; + string tenant = string.Empty; //MF commentati perchè L'Uri viene costruito //Uri baseAddress = new Uri("http://10.0.0.187:8000/api/Polo/tecniciList?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI"); @@ -29,34 +30,13 @@ namespace VirtualTask.Controllers public TecniciController() { - //client = new HttpClient(); - //client.BaseAddress = baseAddress; - - //clientCreate = new HttpClient(); - //clientCreate.BaseAddress = baseAddressCreate; - - //clientEdit = new HttpClient(); - //clientEdit.BaseAddress = baseAddressEdit; - - //clientDelete = new HttpClient(); - //clientDelete.BaseAddress = baseAddressDelete; + client = new HttpClient(); } #region INDEX public IActionResult Index(string searchString, int? page = 1) { - //List tecniciList = new List(); - - //HttpResponseMessage response = client.GetAsync(baseAddress).Result; - - //if (response.IsSuccessStatusCode) - //{ - // string data = response.Content.ReadAsStringAsync().Result; - // tecniciList = JsonConvert.DeserializeObject>(data); - //} - - //return View(tecniciList); SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); if (string.IsNullOrEmpty(token)) @@ -114,8 +94,14 @@ namespace VirtualTask.Controllers public IActionResult Create(Tecnici model) { SessionHelper helper = new SessionHelper(this); - token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); + + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index", "Login"); + } + model.tccodazi = tenant; apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "tecnici/add"; @@ -208,6 +194,13 @@ namespace VirtualTask.Controllers SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); + + if (string.IsNullOrEmpty(token)) + { + return RedirectToAction("Index", "Login"); + } + tecnico.tccodazi = tenant; apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "tecnici/mod"; @@ -217,9 +210,7 @@ namespace VirtualTask.Controllers client.BaseAddress = baseAddress; string data = JsonConvert.SerializeObject(tecnico); - StringContent content = new StringContent(data, Encoding.UTF8, "application/json"); - HttpResponseMessage response = client.PostAsync(baseAddress, content).Result; if (response.IsSuccessStatusCode) @@ -240,6 +231,7 @@ namespace VirtualTask.Controllers SessionHelper helper = new SessionHelper(this); token = helper.GetStringValue("tok"); + tenant = helper.GetStringValue("tenant"); apiUrl = helper.GetStringValue("apiUrl"); urlBase = apiUrl + "tecniciList"; diff --git a/Views/Anag/Index.cshtml b/Views/Anag/Index.cshtml index 1e4b431..ee47305 100644 --- a/Views/Anag/Index.cshtml +++ b/Views/Anag/Index.cshtml @@ -17,7 +17,7 @@ @using (Html.BeginForm()) {

- Find by name: @Html.TextBox("SearchString") + Find by Rag. Sociale: @Html.TextBox("SearchString")

} diff --git a/Views/Chiamate/Create.cshtml b/Views/Chiamate/Create.cshtml new file mode 100644 index 0000000..9a3625a --- /dev/null +++ b/Views/Chiamate/Create.cshtml @@ -0,0 +1,319 @@ +@model VirtualTask.Models.Chiamate + +@{ + ViewData["Title"] = "Create"; +} + +

Create

+ +

Chiamate

+
+
+
+
+
+ @*
+ + + +
*@ + @Html.HiddenFor(x => x.chcodazi) +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/Views/Chiamate/Delete.cshtml b/Views/Chiamate/Delete.cshtml new file mode 100644 index 0000000..c584932 --- /dev/null +++ b/Views/Chiamate/Delete.cshtml @@ -0,0 +1,369 @@ +@model VirtualTask.Models.Chiamate + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Chiamate

+
+
+
+ @Html.DisplayNameFor(model => model.chcodazi) +
+
+ @Html.DisplayFor(model => model.chcodazi) +
+
+ @Html.DisplayNameFor(model => model.chserial) +
+
+ @Html.DisplayFor(model => model.chserial) +
+
+ @Html.DisplayNameFor(model => model.chcodese) +
+
+ @Html.DisplayFor(model => model.chcodese) +
+
+ @Html.DisplayNameFor(model => model.chtipo) +
+
+ @Html.DisplayFor(model => model.chtipo) +
+
+ @Html.DisplayNameFor(model => model.chnumero) +
+
+ @Html.DisplayFor(model => model.chnumero) +
+
+ @Html.DisplayNameFor(model => model.chdata) +
+
+ @Html.DisplayFor(model => model.chdata) +
+
+ @Html.DisplayNameFor(model => model.chora) +
+
+ @Html.DisplayFor(model => model.chora) +
+
+ @Html.DisplayNameFor(model => model.chmin) +
+
+ @Html.DisplayFor(model => model.chmin) +
+
+ @Html.DisplayNameFor(model => model.chopins) +
+
+ @Html.DisplayFor(model => model.chopins) +
+
+ @Html.DisplayNameFor(model => model.chopass) +
+
+ @Html.DisplayFor(model => model.chopass) +
+
+ @Html.DisplayNameFor(model => model.chopchi) +
+
+ @Html.DisplayFor(model => model.chopchi) +
+
+ @Html.DisplayNameFor(model => model.chcodimp) +
+
+ @Html.DisplayFor(model => model.chcodimp) +
+
+ @Html.DisplayNameFor(model => model.chaziimp) +
+
+ @Html.DisplayFor(model => model.chaziimp) +
+
+ @Html.DisplayNameFor(model => model.chtchiam) +
+
+ @Html.DisplayFor(model => model.chtchiam) +
+
+ @Html.DisplayNameFor(model => model.chtmanut) +
+
+ @Html.DisplayFor(model => model.chtmanut) +
+
+ @Html.DisplayNameFor(model => model.chstato) +
+
+ @Html.DisplayFor(model => model.chstato) +
+
+ @Html.DisplayNameFor(model => model.chdtapp) +
+
+ @Html.DisplayFor(model => model.chdtapp) +
+
+ @Html.DisplayNameFor(model => model.choraapi) +
+
+ @Html.DisplayFor(model => model.choraapi) +
+
+ @Html.DisplayNameFor(model => model.chminapi) +
+
+ @Html.DisplayFor(model => model.chminapi) +
+
+ @Html.DisplayNameFor(model => model.choraapf) +
+
+ @Html.DisplayFor(model => model.choraapf) +
+
+ @Html.DisplayNameFor(model => model.chminapf) +
+
+ @Html.DisplayFor(model => model.chminapf) +
+
+ @Html.DisplayNameFor(model => model.chrifer) +
+
+ @Html.DisplayFor(model => model.chrifer) +
+
+ @Html.DisplayNameFor(model => model.chtelef) +
+
+ @Html.DisplayFor(model => model.chtelef) +
+
+ @Html.DisplayNameFor(model => model.chcodseg) +
+
+ @Html.DisplayFor(model => model.chcodseg) +
+
+ @Html.DisplayNameFor(model => model.chstopi) +
+
+ @Html.DisplayFor(model => model.chstopi) +
+
+ @Html.DisplayNameFor(model => model.chnote) +
+
+ @Html.DisplayFor(model => model.chnote) +
+
+ @Html.DisplayNameFor(model => model.chdtass) +
+
+ @Html.DisplayFor(model => model.chdtass) +
+
+ @Html.DisplayNameFor(model => model.chorass) +
+
+ @Html.DisplayFor(model => model.chorass) +
+
+ @Html.DisplayNameFor(model => model.chminass) +
+
+ @Html.DisplayFor(model => model.chminass) +
+
+ @Html.DisplayNameFor(model => model.chdtchi) +
+
+ @Html.DisplayFor(model => model.chdtchi) +
+
+ @Html.DisplayNameFor(model => model.chorachi) +
+
+ @Html.DisplayFor(model => model.chorachi) +
+
+ @Html.DisplayNameFor(model => model.chminchi) +
+
+ @Html.DisplayFor(model => model.chminchi) +
+
+ @Html.DisplayNameFor(model => model.chdtlin) +
+
+ @Html.DisplayFor(model => model.chdtlin) +
+
+ @Html.DisplayNameFor(model => model.chorali) +
+
+ @Html.DisplayFor(model => model.chorali) +
+
+ @Html.DisplayNameFor(model => model.chminli) +
+
+ @Html.DisplayFor(model => model.chminli) +
+
+ @Html.DisplayNameFor(model => model.chdtlfi) +
+
+ @Html.DisplayFor(model => model.chdtlfi) +
+
+ @Html.DisplayNameFor(model => model.choralf) +
+
+ @Html.DisplayFor(model => model.choralf) +
+
+ @Html.DisplayNameFor(model => model.chminlf) +
+
+ @Html.DisplayFor(model => model.chminlf) +
+
+ @Html.DisplayNameFor(model => model.chvalfat) +
+
+ @Html.DisplayFor(model => model.chvalfat) +
+
+ @Html.DisplayNameFor(model => model.cpccchk) +
+
+ @Html.DisplayFor(model => model.cpccchk) +
+
+ @Html.DisplayNameFor(model => model.chnrap1) +
+
+ @Html.DisplayFor(model => model.chnrap1) +
+
+ @Html.DisplayNameFor(model => model.chsrap1) +
+
+ @Html.DisplayFor(model => model.chsrap1) +
+
+ @Html.DisplayNameFor(model => model.chnrap2) +
+
+ @Html.DisplayFor(model => model.chnrap2) +
+
+ @Html.DisplayNameFor(model => model.chsrap2) +
+
+ @Html.DisplayFor(model => model.chsrap2) +
+
+ @Html.DisplayNameFor(model => model.chmodrac) +
+
+ @Html.DisplayFor(model => model.chmodrac) +
+
+ @Html.DisplayNameFor(model => model.chprgann) +
+
+ @Html.DisplayFor(model => model.chprgann) +
+
+ @Html.DisplayNameFor(model => model.chserchi) +
+
+ @Html.DisplayFor(model => model.chserchi) +
+
+ @Html.DisplayNameFor(model => model.chdesfat) +
+
+ @Html.DisplayFor(model => model.chdesfat) +
+
+ @Html.DisplayNameFor(model => model.chdessup) +
+
+ @Html.DisplayFor(model => model.chdessup) +
+
+ @Html.DisplayNameFor(model => model.chimpofa) +
+
+ @Html.DisplayFor(model => model.chimpofa) +
+
+ @Html.DisplayNameFor(model => model.chserdoc) +
+
+ @Html.DisplayFor(model => model.chserdoc) +
+
+ @Html.DisplayNameFor(model => model.chimpmat) +
+
+ @Html.DisplayFor(model => model.chimpmat) +
+
+ @Html.DisplayNameFor(model => model.chimpman) +
+
+ @Html.DisplayFor(model => model.chimpman) +
+
+ @Html.DisplayNameFor(model => model.chperman) +
+
+ @Html.DisplayFor(model => model.chperman) +
+
+ @Html.DisplayNameFor(model => model.chflstim) +
+
+ @Html.DisplayFor(model => model.chflstim) +
+
+ @Html.DisplayNameFor(model => model.chfleste) +
+
+ @Html.DisplayFor(model => model.chfleste) +
+
+ @Html.DisplayNameFor(model => model.chserext) +
+
+ @Html.DisplayFor(model => model.chserext) +
+
+ @Html.DisplayNameFor(model => model.chrifiutata) +
+
+ @Html.DisplayFor(model => model.chrifiutata) +
+
+ +
+ | + model.chserial) name="id" /> + Back to List +
+
diff --git a/Views/Chiamate/Details.cshtml b/Views/Chiamate/Details.cshtml new file mode 100644 index 0000000..05726c7 --- /dev/null +++ b/Views/Chiamate/Details.cshtml @@ -0,0 +1,366 @@ +@model VirtualTask.Models.Chiamate + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Chiamate

+
+
+
+ @Html.DisplayNameFor(model => model.chcodazi) +
+
+ @Html.DisplayFor(model => model.chcodazi) +
+
+ @Html.DisplayNameFor(model => model.chserial) +
+
+ @Html.DisplayFor(model => model.chserial) +
+
+ @Html.DisplayNameFor(model => model.chcodese) +
+
+ @Html.DisplayFor(model => model.chcodese) +
+
+ @Html.DisplayNameFor(model => model.chtipo) +
+
+ @Html.DisplayFor(model => model.chtipo) +
+
+ @Html.DisplayNameFor(model => model.chnumero) +
+
+ @Html.DisplayFor(model => model.chnumero) +
+
+ @Html.DisplayNameFor(model => model.chdata) +
+
+ @Html.DisplayFor(model => model.chdata) +
+
+ @Html.DisplayNameFor(model => model.chora) +
+
+ @Html.DisplayFor(model => model.chora) +
+
+ @Html.DisplayNameFor(model => model.chmin) +
+
+ @Html.DisplayFor(model => model.chmin) +
+
+ @Html.DisplayNameFor(model => model.chopins) +
+
+ @Html.DisplayFor(model => model.chopins) +
+
+ @Html.DisplayNameFor(model => model.chopass) +
+
+ @Html.DisplayFor(model => model.chopass) +
+
+ @Html.DisplayNameFor(model => model.chopchi) +
+
+ @Html.DisplayFor(model => model.chopchi) +
+
+ @Html.DisplayNameFor(model => model.chcodimp) +
+
+ @Html.DisplayFor(model => model.chcodimp) +
+
+ @Html.DisplayNameFor(model => model.chaziimp) +
+
+ @Html.DisplayFor(model => model.chaziimp) +
+
+ @Html.DisplayNameFor(model => model.chtchiam) +
+
+ @Html.DisplayFor(model => model.chtchiam) +
+
+ @Html.DisplayNameFor(model => model.chtmanut) +
+
+ @Html.DisplayFor(model => model.chtmanut) +
+
+ @Html.DisplayNameFor(model => model.chstato) +
+
+ @Html.DisplayFor(model => model.chstato) +
+
+ @Html.DisplayNameFor(model => model.chdtapp) +
+
+ @Html.DisplayFor(model => model.chdtapp) +
+
+ @Html.DisplayNameFor(model => model.choraapi) +
+
+ @Html.DisplayFor(model => model.choraapi) +
+
+ @Html.DisplayNameFor(model => model.chminapi) +
+
+ @Html.DisplayFor(model => model.chminapi) +
+
+ @Html.DisplayNameFor(model => model.choraapf) +
+
+ @Html.DisplayFor(model => model.choraapf) +
+
+ @Html.DisplayNameFor(model => model.chminapf) +
+
+ @Html.DisplayFor(model => model.chminapf) +
+
+ @Html.DisplayNameFor(model => model.chrifer) +
+
+ @Html.DisplayFor(model => model.chrifer) +
+
+ @Html.DisplayNameFor(model => model.chtelef) +
+
+ @Html.DisplayFor(model => model.chtelef) +
+
+ @Html.DisplayNameFor(model => model.chcodseg) +
+
+ @Html.DisplayFor(model => model.chcodseg) +
+
+ @Html.DisplayNameFor(model => model.chstopi) +
+
+ @Html.DisplayFor(model => model.chstopi) +
+
+ @Html.DisplayNameFor(model => model.chnote) +
+
+ @Html.DisplayFor(model => model.chnote) +
+
+ @Html.DisplayNameFor(model => model.chdtass) +
+
+ @Html.DisplayFor(model => model.chdtass) +
+
+ @Html.DisplayNameFor(model => model.chorass) +
+
+ @Html.DisplayFor(model => model.chorass) +
+
+ @Html.DisplayNameFor(model => model.chminass) +
+
+ @Html.DisplayFor(model => model.chminass) +
+
+ @Html.DisplayNameFor(model => model.chdtchi) +
+
+ @Html.DisplayFor(model => model.chdtchi) +
+
+ @Html.DisplayNameFor(model => model.chorachi) +
+
+ @Html.DisplayFor(model => model.chorachi) +
+
+ @Html.DisplayNameFor(model => model.chminchi) +
+
+ @Html.DisplayFor(model => model.chminchi) +
+
+ @Html.DisplayNameFor(model => model.chdtlin) +
+
+ @Html.DisplayFor(model => model.chdtlin) +
+
+ @Html.DisplayNameFor(model => model.chorali) +
+
+ @Html.DisplayFor(model => model.chorali) +
+
+ @Html.DisplayNameFor(model => model.chminli) +
+
+ @Html.DisplayFor(model => model.chminli) +
+
+ @Html.DisplayNameFor(model => model.chdtlfi) +
+
+ @Html.DisplayFor(model => model.chdtlfi) +
+
+ @Html.DisplayNameFor(model => model.choralf) +
+
+ @Html.DisplayFor(model => model.choralf) +
+
+ @Html.DisplayNameFor(model => model.chminlf) +
+
+ @Html.DisplayFor(model => model.chminlf) +
+
+ @Html.DisplayNameFor(model => model.chvalfat) +
+
+ @Html.DisplayFor(model => model.chvalfat) +
+
+ @Html.DisplayNameFor(model => model.cpccchk) +
+
+ @Html.DisplayFor(model => model.cpccchk) +
+
+ @Html.DisplayNameFor(model => model.chnrap1) +
+
+ @Html.DisplayFor(model => model.chnrap1) +
+
+ @Html.DisplayNameFor(model => model.chsrap1) +
+
+ @Html.DisplayFor(model => model.chsrap1) +
+
+ @Html.DisplayNameFor(model => model.chnrap2) +
+
+ @Html.DisplayFor(model => model.chnrap2) +
+
+ @Html.DisplayNameFor(model => model.chsrap2) +
+
+ @Html.DisplayFor(model => model.chsrap2) +
+
+ @Html.DisplayNameFor(model => model.chmodrac) +
+
+ @Html.DisplayFor(model => model.chmodrac) +
+
+ @Html.DisplayNameFor(model => model.chprgann) +
+
+ @Html.DisplayFor(model => model.chprgann) +
+
+ @Html.DisplayNameFor(model => model.chserchi) +
+
+ @Html.DisplayFor(model => model.chserchi) +
+
+ @Html.DisplayNameFor(model => model.chdesfat) +
+
+ @Html.DisplayFor(model => model.chdesfat) +
+
+ @Html.DisplayNameFor(model => model.chdessup) +
+
+ @Html.DisplayFor(model => model.chdessup) +
+
+ @Html.DisplayNameFor(model => model.chimpofa) +
+
+ @Html.DisplayFor(model => model.chimpofa) +
+
+ @Html.DisplayNameFor(model => model.chserdoc) +
+
+ @Html.DisplayFor(model => model.chserdoc) +
+
+ @Html.DisplayNameFor(model => model.chimpmat) +
+
+ @Html.DisplayFor(model => model.chimpmat) +
+
+ @Html.DisplayNameFor(model => model.chimpman) +
+
+ @Html.DisplayFor(model => model.chimpman) +
+
+ @Html.DisplayNameFor(model => model.chperman) +
+
+ @Html.DisplayFor(model => model.chperman) +
+
+ @Html.DisplayNameFor(model => model.chflstim) +
+
+ @Html.DisplayFor(model => model.chflstim) +
+
+ @Html.DisplayNameFor(model => model.chfleste) +
+
+ @Html.DisplayFor(model => model.chfleste) +
+
+ @Html.DisplayNameFor(model => model.chserext) +
+
+ @Html.DisplayFor(model => model.chserext) +
+
+ @Html.DisplayNameFor(model => model.chrifiutata) +
+
+ @Html.DisplayFor(model => model.chrifiutata) +
+
+
+
+ @Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) | + Back to List +
diff --git a/Views/Chiamate/Edit.cshtml b/Views/Chiamate/Edit.cshtml new file mode 100644 index 0000000..ad05a9d --- /dev/null +++ b/Views/Chiamate/Edit.cshtml @@ -0,0 +1,319 @@ +@model VirtualTask.Models.Chiamate + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Chiamate

+
+
+
+
+
+ @*
+ + + +
*@ + @Html.HiddenFor(x => x.chcodazi) +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/Views/Chiamate/Index.cshtml b/Views/Chiamate/Index.cshtml index 8ede8db..2017bf5 100644 --- a/Views/Chiamate/Index.cshtml +++ b/Views/Chiamate/Index.cshtml @@ -2,7 +2,7 @@ @using X.PagedList.Mvc.Core; @using X.PagedList.Web.Common; @using X.PagedList; - + @{ ViewData["Title"] = "Index"; } @@ -12,6 +12,13 @@

Create New

+@using (Html.BeginForm()) +{ +

+ Find by Impianto: @Html.TextBox("SearchString") + +

+} @@ -56,8 +63,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }
@* @Html.DisplayNameFor(model => model.chcodimp) *@ + IMPIANTO @Html.DisplayFor(modelItem => item.chmin) + + + @Html.DisplayFor(modelItem => item.chcodimp) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) | - @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) | - @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ }) + @Html.ActionLink("Edit", "Edit", new { id=item.chserial }) | + @Html.ActionLink("Details", "Details", new { id=item.chserial }) | + @Html.ActionLink("Delete", "Delete", new { id=item.chserial })
+
+ diff --git a/Views/Chiusure/Create.cshtml b/Views/Chiusure/Create.cshtml index 15d24b1..e60cef7 100644 --- a/Views/Chiusure/Create.cshtml +++ b/Views/Chiusure/Create.cshtml @@ -12,11 +12,12 @@
-
+ @*
-
+
*@ + @Html.HiddenFor(x => x.cccodazi)
diff --git a/Views/Chiusure/Edit.cshtml b/Views/Chiusure/Edit.cshtml index f6f1bfd..545d98c 100644 --- a/Views/Chiusure/Edit.cshtml +++ b/Views/Chiusure/Edit.cshtml @@ -12,11 +12,12 @@
-
+ @*
-
+
*@ + @Html.HiddenFor(x => x.cccodazi)
diff --git a/Views/Impianti/Delete.cshtml b/Views/Impianti/Delete.cshtml new file mode 100644 index 0000000..6336f68 --- /dev/null +++ b/Views/Impianti/Delete.cshtml @@ -0,0 +1,105 @@ +@model VirtualTask.Models.Impianto + +@{ + ViewData["Title"] = "Delete"; +} + +

Delete

+ +

Are you sure you want to delete this?

+
+

Impianto

+
+
+
+ @Html.DisplayNameFor(model => model.imcodimp) +
+
+ @Html.DisplayFor(model => model.imcodimp) +
+
+ @Html.DisplayNameFor(model => model.imcodazi) +
+
+ @Html.DisplayFor(model => model.imcodazi) +
+
+ @Html.DisplayNameFor(model => model.imdescri) +
+
+ @Html.DisplayFor(model => model.imdescri) +
+
+ @Html.DisplayNameFor(model => model.imindiri1) +
+
+ @Html.DisplayFor(model => model.imindiri1) +
+
+ @Html.DisplayNameFor(model => model.imindiri2) +
+
+ @Html.DisplayFor(model => model.imindiri2) +
+
+ @Html.DisplayNameFor(model => model.imindiri3) +
+
+ @Html.DisplayFor(model => model.imindiri3) +
+
+ @Html.DisplayNameFor(model => model.imindiri4) +
+
+ @Html.DisplayFor(model => model.imindiri4) +
+
+ @Html.DisplayNameFor(model => model.imindiri5) +
+
+ @Html.DisplayFor(model => model.imindiri5) +
+
+ @Html.DisplayNameFor(model => model.imlocali) +
+
+ @Html.DisplayFor(model => model.imlocali) +
+
+ @Html.DisplayNameFor(model => model.imcodcap) +
+
+ @Html.DisplayFor(model => model.imcodcap) +
+
+ @Html.DisplayNameFor(model => model.imcomune) +
+
+ @Html.DisplayFor(model => model.imcomune) +
+
+ @Html.DisplayNameFor(model => model.improvin) +
+
+ @Html.DisplayFor(model => model.improvin) +
+
+ @Html.DisplayNameFor(model => model.imultcli) +
+
+ @Html.DisplayFor(model => model.imultcli) +
+
+ @Html.DisplayNameFor(model => model.indirizzo) +
+
+ @Html.DisplayFor(model => model.indirizzo) +
+
+ + + | + model.imcodimp) name="id" /> + Back to List + +
diff --git a/Views/Impianti/Details.cshtml b/Views/Impianti/Details.cshtml new file mode 100644 index 0000000..655685a --- /dev/null +++ b/Views/Impianti/Details.cshtml @@ -0,0 +1,102 @@ +@model VirtualTask.Models.Impianto + +@{ + ViewData["Title"] = "Details"; +} + +

Details

+ +
+

Impianto

+
+
+
+ @Html.DisplayNameFor(model => model.imcodimp) +
+
+ @Html.DisplayFor(model => model.imcodimp) +
+
+ @Html.DisplayNameFor(model => model.imcodazi) +
+
+ @Html.DisplayFor(model => model.imcodazi) +
+
+ @Html.DisplayNameFor(model => model.imdescri) +
+
+ @Html.DisplayFor(model => model.imdescri) +
+
+ @Html.DisplayNameFor(model => model.imindiri1) +
+
+ @Html.DisplayFor(model => model.imindiri1) +
+
+ @Html.DisplayNameFor(model => model.imindiri2) +
+
+ @Html.DisplayFor(model => model.imindiri2) +
+
+ @Html.DisplayNameFor(model => model.imindiri3) +
+
+ @Html.DisplayFor(model => model.imindiri3) +
+
+ @Html.DisplayNameFor(model => model.imindiri4) +
+
+ @Html.DisplayFor(model => model.imindiri4) +
+
+ @Html.DisplayNameFor(model => model.imindiri5) +
+
+ @Html.DisplayFor(model => model.imindiri5) +
+
+ @Html.DisplayNameFor(model => model.imlocali) +
+
+ @Html.DisplayFor(model => model.imlocali) +
+
+ @Html.DisplayNameFor(model => model.imcodcap) +
+
+ @Html.DisplayFor(model => model.imcodcap) +
+
+ @Html.DisplayNameFor(model => model.imcomune) +
+
+ @Html.DisplayFor(model => model.imcomune) +
+
+ @Html.DisplayNameFor(model => model.improvin) +
+
+ @Html.DisplayFor(model => model.improvin) +
+
+ @Html.DisplayNameFor(model => model.imultcli) +
+
+ @Html.DisplayFor(model => model.imultcli) +
+
+ @Html.DisplayNameFor(model => model.indirizzo) +
+
+ @Html.DisplayFor(model => model.indirizzo) +
+
+
+
+ @Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) | + Back to List +
diff --git a/Views/Impianti/Edit.cshtml b/Views/Impianti/Edit.cshtml new file mode 100644 index 0000000..a6a5f77 --- /dev/null +++ b/Views/Impianti/Edit.cshtml @@ -0,0 +1,99 @@ +@model VirtualTask.Models.Impianto + +@{ + ViewData["Title"] = "Edit"; +} + +

Edit

+ +

Impianto

+
+
+
+
+
+
+ + + +
+ @*
+ + + +
*@ + @Html.HiddenFor(x => x.imcodazi) +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+
+
+ + + +@section Scripts { + @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} +} diff --git a/Views/Impianti/Index.cshtml b/Views/Impianti/Index.cshtml index b3aae57..c17630b 100644 --- a/Views/Impianti/Index.cshtml +++ b/Views/Impianti/Index.cshtml @@ -123,9 +123,9 @@ @Html.DisplayFor(modelItem => item.imultcli) - @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) | - @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) | - @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ }) + @Html.ActionLink("Edit", "Edit", new { id=item.imcodimp }) | + @Html.ActionLink("Details", "Details", new { id=item.imcodimp }) | + @Html.ActionLink("Delete", "Delete", new { id=item.imcodimp }) } diff --git a/Views/Rapp_New/Create.cshtml b/Views/Rapp_New/Create.cshtml index d4d48f9..5175b84 100644 --- a/Views/Rapp_New/Create.cshtml +++ b/Views/Rapp_New/Create.cshtml @@ -22,11 +22,12 @@
-
+ @*
-
+
*@ + @Html.HiddenFor(x => x.azienda_impianto)
@@ -74,72 +75,52 @@
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_1, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_1,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_2, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_2,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_3, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_3,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_4, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_4,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_5, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_5,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_6, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_6,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_7, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_7,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_8, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_8,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_9, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_9,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
- @* *@ - @Html.DropDownListFor(x => x.codice_chiusura_10, - (IEnumerable)ViewBag.AllStockList) + @Html.DropDownListFor(x => x.codice_chiusura_10,(IEnumerable)ViewBag.AllStockList,new {@class = "form-control"})
@@ -356,6 +337,15 @@
diff --git a/Views/Rapp_New/Edit.cshtml b/Views/Rapp_New/Edit.cshtml index be2fb06..524bca2 100644 --- a/Views/Rapp_New/Edit.cshtml +++ b/Views/Rapp_New/Edit.cshtml @@ -22,11 +22,12 @@
-
+ @*
-
+
*@ + @Html.HiddenFor(x => x.azienda_impianto)
diff --git a/Views/Tecnici/Create.cshtml b/Views/Tecnici/Create.cshtml index c025135..599f6bd 100644 --- a/Views/Tecnici/Create.cshtml +++ b/Views/Tecnici/Create.cshtml @@ -12,11 +12,12 @@
-
+ @*
-
+
*@ + @Html.HiddenFor(x => x.tccodazi)
diff --git a/Views/Tecnici/Edit.cshtml b/Views/Tecnici/Edit.cshtml index 2ce31b8..66dfc83 100644 --- a/Views/Tecnici/Edit.cshtml +++ b/Views/Tecnici/Edit.cshtml @@ -12,11 +12,12 @@
-
+ @*
-
+
*@ + @Html.HiddenFor(x => x.tccodazi)