test su chiusure e messaggio di errore

This commit is contained in:
Marco Audiffredi 2023-10-05 10:10:42 +02:00
parent ccfae5384d
commit 40c14060e7
10 changed files with 124 additions and 420 deletions

View File

@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System.Diagnostics;
using System.Net;
using System.Reflection;
using System.Text;
@ -15,18 +16,10 @@ namespace VirtualTask.Controllers
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");
string errMes = string.Empty;
HttpClient client;
//Uri baseAddressCreate = new Uri("http://10.0.0.187:8000/api/Polo/chiusure/add?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI");
//HttpClient clientCreate;
//Uri baseAddressEdit = new Uri("http://10.0.0.187:8000/api/Polo/chiusure/mod?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI");
//HttpClient clientEdit;
//Uri baseAddressDelete = new Uri("http://10.0.0.187:8000/api/Polo/chiusure/del?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVEVTVCIsImp0aSI6IjA2MzA5MzlmLTBhZDgtNDhkMi04ZTI5LWI3Mjk3N2IyOWM1YiIsInRlbmFudCI6Ik1BUlJPIiwidGNjb2RpY2UiOiJaWlogICAgICAgICAgICAiLCJleHAiOjE3MDE3Njk0NTUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6NjE5NTUiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQyMDAifQ.CDt3wR6ube4zzNscVG9Qv6bzOnNF6A9-bIZxxjbKmKI");
//HttpClient clientDelete;
public ChiusureController()
{
client = new HttpClient();
@ -44,7 +37,7 @@ namespace VirtualTask.Controllers
return RedirectToAction("Index", "Login");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "codici_chiusura";
urlBase = apiUrl + "chiusureVtList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -57,28 +50,35 @@ namespace VirtualTask.Controllers
{
string data = response.Content.ReadAsStringAsync().Result;
modelList = JsonConvert.DeserializeObject<List<Chiusure>>(data);
}
if (!string.IsNullOrEmpty(searchString))
{
modelList = modelList.Where(s => s.ccdescr.ToUpper().Contains(searchString.ToUpper())).ToList();
if (!string.IsNullOrEmpty(searchString))
{
modelList = modelList.Where(s => s.ccdescr.ToUpper().Contains(searchString.ToUpper())).ToList();
ViewData["CurrentFilter"] = searchString;
ViewData["CurrentFilter"] = searchString;
}
else
ViewData["CurrentFilter"] = null;
if (page != null && page < 1)
{
page = 1;
}
var pageSize = 10;
var shortLinks = modelList
.OrderByDescending(s => s.cccodice)
.ToPagedList(page ?? 1, pageSize);
return View(shortLinks);
}
else
ViewData["CurrentFilter"] = null;
if (page != null && page < 1)
{
page = 1;
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
var pageSize = 10;
var shortLinks = modelList
.OrderByDescending(s => s.cccodice)
.ToPagedList(page ?? 1, pageSize);
return View(shortLinks);
}
#endregion INDEX
@ -114,12 +114,19 @@ namespace VirtualTask.Controllers
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");
}
else
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
return View();
}
#endregion CREATE
@ -133,7 +140,7 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "codici_chiusura";
urlBase = apiUrl + "chiusureVtList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -151,6 +158,12 @@ namespace VirtualTask.Controllers
modelList = JsonConvert.DeserializeObject<List<Chiusure>>(data);
chiusura = modelList.Where(x => x.cccodice.Equals(id)).First();
}
else
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
return View(chiusura);
}
@ -166,7 +179,7 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "codici_chiusura";
urlBase = apiUrl + "chiusureVtList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -185,6 +198,12 @@ namespace VirtualTask.Controllers
var el = modelList.Where(t => t.cccodice.Equals(id)).First();
ele = el;
}
else
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
return View(ele);
}
@ -215,7 +234,12 @@ namespace VirtualTask.Controllers
{
return RedirectToAction("Index");
}
return View(model);
else
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
}
#endregion EDIT
@ -230,7 +254,7 @@ namespace VirtualTask.Controllers
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "codici_chiusura";
urlBase = apiUrl + "chiusureVtList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
@ -245,9 +269,14 @@ namespace VirtualTask.Controllers
string data = response.Content.ReadAsStringAsync().Result;
modelList = JsonConvert.DeserializeObject<List<Chiusure>>(data);
elem = modelList.Where(t => t.cccodice.Equals(id)).First();
return View(elem);
}
return View(elem);
else
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
}
[HttpPost, ActionName("DeleteConfirmed")]
@ -273,11 +302,22 @@ namespace VirtualTask.Controllers
{
return RedirectToAction("Index");
}
return View();
else
{
errMes = response.Content.ReadAsStringAsync().Result;
helper.SetStringValue("errMsg", errMes);
return RedirectToAction("Error");
}
}
#endregion DELETE
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()
{
SessionHelper helper = new SessionHelper(this);
string e= helper.GetStringValue("errMsg");
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier,ErrMsg=e });
}
}
}

View File

@ -25,21 +25,6 @@ namespace VirtualTask.Controllers
}
else
{
//List<Anag> modelList = new List<Anag>();
//Anag a=new Anag();
//a.ancodice = "0001";
//a.andescri = "Francesco Totti";
//modelList.Add(a);
//Anag b = new Anag();
//b.ancodice = "0002";
//b.andescri = "Alex Del Piero";
//modelList.Add(b);
//SelectList customers = new SelectList(modelList,"ancodice","andescri");
//ViewBag.Token = token;
//return View(customers);
return View();
}
}

View File

@ -29,7 +29,7 @@ namespace VirtualTask.Controllers
[HttpPost]
public IActionResult Login(Login model)
{
string url = apiUrl + "loginTechnical";
string url = apiUrl + "loginTechnicalVT";
Uri baseAddress = new Uri(url);
client.BaseAddress = baseAddress;

View File

@ -68,7 +68,6 @@ namespace VirtualTask.Models
/// <summary></summary>
public string? ccriapre { get; set; }
/// <summary></summary>
public string? ccchiint { get; set; }
}
}

View File

@ -5,5 +5,7 @@ namespace VirtualTask.Models
public string? RequestId { get; set; }
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
public string? ErrMsg { get; set; }
}
}

View File

@ -12,12 +12,8 @@
<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="cccodazi" class="control-label"></label>
<input asp-for="cccodazi" class="form-control" />
<span asp-validation-for="cccodazi" class="text-danger"></span>
</div> *@
@Html.HiddenFor(x => x.cccodazi)
<div class="form-group">
<label asp-for="cccodice" class="control-label"></label>
<input asp-for="cccodice" class="form-control" />
@ -33,86 +29,26 @@
<input asp-for="ccdessup" class="form-control" />
<span asp-validation-for="ccdessup" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccflfatt" class="control-label"></label>
<input asp-for="ccflfatt" class="form-control" />
<span asp-validation-for="ccflfatt" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccflrep" class="control-label"></label>
<input asp-for="ccflrep" class="form-control" />
<span asp-validation-for="ccflrep" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="cctipcod" class="control-label"></label>
<input asp-for="cctipcod" class="form-control" />
<span asp-validation-for="cctipcod" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccgruppo" class="control-label"></label>
<input asp-for="ccgruppo" class="form-control" />
<span asp-validation-for="ccgruppo" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccimpint" class="control-label"></label>
<input asp-for="ccimpint" class="form-control" />
<span asp-validation-for="ccimpint" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccimpman" class="control-label"></label>
<input asp-for="ccimpman" class="form-control" />
<span asp-validation-for="ccimpman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccserint" class="control-label"></label>
<input asp-for="ccserint" class="form-control" />
<span asp-validation-for="ccserint" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccserman" class="control-label"></label>
<input asp-for="ccserman" class="form-control" />
<span asp-validation-for="ccserman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccnumore" class="control-label"></label>
<input asp-for="ccnumore" class="form-control" />
<span asp-validation-for="ccnumore" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccperman" class="control-label"></label>
<input asp-for="ccperman" class="form-control" />
<span asp-validation-for="ccperman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="corecom" class="control-label"></label>
<input asp-for="corecom" class="form-control" />
<span asp-validation-for="corecom" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="codtobso" class="control-label"></label>
<input asp-for="codtobso" class="form-control" />
<span asp-validation-for="codtobso" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccrapabi" class="control-label"></label>
<input asp-for="ccrapabi" class="form-control" />
<span asp-validation-for="ccrapabi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccrapobb" class="control-label"></label>
<input asp-for="ccrapobb" class="form-control" />
<span asp-validation-for="ccrapobb" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccriapre" class="control-label"></label>
<input asp-for="ccriapre" class="form-control" />
<span asp-validation-for="ccriapre" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccchiint" class="control-label"></label>
<input asp-for="ccchiint" class="form-control" />
<span asp-validation-for="ccchiint" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.cccodazi)
@Html.HiddenFor(x => x.ccflfatt)
@Html.HiddenFor(x => x.ccflrep)
@Html.HiddenFor(x => x.cctipcod)
@Html.HiddenFor(x => x.ccgruppo)
@Html.HiddenFor(x => x.ccimpint)
@Html.HiddenFor(x => x.ccimpman)
@Html.HiddenFor(x => x.ccserint)
@Html.HiddenFor(x => x.ccserman)
@Html.HiddenFor(x => x.ccnumore)
@Html.HiddenFor(x => x.ccperman)
@Html.HiddenFor(x => x.corecom)
@Html.HiddenFor(x => x.codtobso)
@Html.HiddenFor(x => x.ccriapre)
@Html.HiddenFor(x => x.ccchiint)
@Html.HiddenFor(x => x.ccrapabi)
@Html.HiddenFor(x => x.ccrapobb)
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>

View File

@ -35,102 +35,6 @@
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccdessup)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccflfatt)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccflfatt)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccflrep)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccflrep)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.cctipcod)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.cctipcod)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccgruppo)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccgruppo)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccimpint)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccimpint)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccimpman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccimpman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccserint)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccserint)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccserman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccserman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccnumore)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccnumore)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccperman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccperman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.corecom)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.corecom)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.codtobso)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.codtobso)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccrapabi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccrapabi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccrapobb)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccrapobb)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccriapre)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccriapre)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccchiint)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccchiint)
</dd>
</dl>
<form asp-action="DeleteConfirmed">

View File

@ -34,105 +34,8 @@
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccdessup)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccflfatt)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccflfatt)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccflrep)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccflrep)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.cctipcod)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.cctipcod)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccgruppo)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccgruppo)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccimpint)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccimpint)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccimpman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccimpman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccserint)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccserint)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccserman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccserman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccnumore)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccnumore)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccperman)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccperman)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.corecom)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.corecom)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.codtobso)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.codtobso)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccrapabi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccrapabi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccrapobb)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccrapobb)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccriapre)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccriapre)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.ccchiint)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.ccchiint)
</dd>
</dl>
</div>
<div>
@Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
<a asp-action="Index">Back to List</a>
</div>

View File

@ -12,12 +12,7 @@
<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="cccodazi" class="control-label"></label>
<input asp-for="cccodazi" class="form-control" />
<span asp-validation-for="cccodazi" class="text-danger"></span>
</div> *@
@Html.HiddenFor(x => x.cccodazi)
<div class="form-group">
<label asp-for="cccodice" class="control-label"></label>
<input asp-for="cccodice" class="form-control" />
@ -33,86 +28,23 @@
<input asp-for="ccdessup" class="form-control" />
<span asp-validation-for="ccdessup" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccflfatt" class="control-label"></label>
<input asp-for="ccflfatt" class="form-control" />
<span asp-validation-for="ccflfatt" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccflrep" class="control-label"></label>
<input asp-for="ccflrep" class="form-control" />
<span asp-validation-for="ccflrep" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="cctipcod" class="control-label"></label>
<input asp-for="cctipcod" class="form-control" />
<span asp-validation-for="cctipcod" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccgruppo" class="control-label"></label>
<input asp-for="ccgruppo" class="form-control" />
<span asp-validation-for="ccgruppo" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccimpint" class="control-label"></label>
<input asp-for="ccimpint" class="form-control" />
<span asp-validation-for="ccimpint" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccimpman" class="control-label"></label>
<input asp-for="ccimpman" class="form-control" />
<span asp-validation-for="ccimpman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccserint" class="control-label"></label>
<input asp-for="ccserint" class="form-control" />
<span asp-validation-for="ccserint" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccserman" class="control-label"></label>
<input asp-for="ccserman" class="form-control" />
<span asp-validation-for="ccserman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccnumore" class="control-label"></label>
<input asp-for="ccnumore" class="form-control" />
<span asp-validation-for="ccnumore" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccperman" class="control-label"></label>
<input asp-for="ccperman" class="form-control" />
<span asp-validation-for="ccperman" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="corecom" class="control-label"></label>
<input asp-for="corecom" class="form-control" />
<span asp-validation-for="corecom" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="codtobso" class="control-label"></label>
<input asp-for="codtobso" class="form-control" />
<span asp-validation-for="codtobso" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccrapabi" class="control-label"></label>
<input asp-for="ccrapabi" class="form-control" />
<span asp-validation-for="ccrapabi" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccrapobb" class="control-label"></label>
<input asp-for="ccrapobb" class="form-control" />
<span asp-validation-for="ccrapobb" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccriapre" class="control-label"></label>
<input asp-for="ccriapre" class="form-control" />
<span asp-validation-for="ccriapre" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ccchiint" class="control-label"></label>
<input asp-for="ccchiint" class="form-control" />
<span asp-validation-for="ccchiint" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.cccodazi)
@Html.HiddenFor(x => x.ccflfatt)
@Html.HiddenFor(x => x.ccflrep)
@Html.HiddenFor(x => x.cctipcod)
@Html.HiddenFor(x => x.ccgruppo)
@Html.HiddenFor(x => x.ccimpint)
@Html.HiddenFor(x => x.ccimpman)
@Html.HiddenFor(x => x.ccserint)
@Html.HiddenFor(x => x.ccserman)
@Html.HiddenFor(x => x.ccnumore)
@Html.HiddenFor(x => x.ccperman)
@Html.HiddenFor(x => x.corecom)
@Html.HiddenFor(x => x.codtobso)
@Html.HiddenFor(x => x.ccriapre)
@Html.HiddenFor(x => x.ccchiint)
@Html.HiddenFor(x => x.ccrapabi)
@Html.HiddenFor(x => x.ccrapobb)
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
</div>

View File

@ -11,6 +11,9 @@
<p>
<strong>Request ID:</strong> <code>@Model.RequestId</code>
</p>
<p>
<strong>Error:</strong> <code>@Model.ErrMsg</code>
</p>
}
<h3>Development Mode</h3>