209 lines
11 KiB
Plaintext
209 lines
11 KiB
Plaintext
@model SoftwayWeb.Models.Modgir
|
|
|
|
@{
|
|
ViewData["Title"] = "NewDestinazioneStep1";
|
|
string dataStr = string.Empty;
|
|
bool btnVisible = false;
|
|
if (Model.Pidata.HasValue)
|
|
{
|
|
dataStr = Model.Pidata.Value.ToString("dd/MM/yyyy");
|
|
}
|
|
string mex = ViewBag.controllo;
|
|
if(string.IsNullOrEmpty(mex))
|
|
{
|
|
btnVisible = true;
|
|
}
|
|
string pserialeGiro = Model.Pisergir;
|
|
string pcodAutista = Model.Piautist;
|
|
string pnomeAutista = ViewBag.Autista;
|
|
string pautomezzo = ViewBag.Automezzo;
|
|
string pcodmezzo = Model.Pitarga;
|
|
DateTime datagiro = ViewBag.datetimeGiro;
|
|
}
|
|
|
|
<h1>Aggiungi una nuova destinazione</h1>
|
|
<form asp-action="NewDestinazione">
|
|
<div class="row">
|
|
<div class="col-xl">
|
|
<div class="card mb-4">
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<h5 class="mb-0">Nuova destinazione</h5> <small class="text-muted float-end"></small>
|
|
</div>
|
|
|
|
|
|
<div class="card-body">
|
|
<form asp-action="NewDestinazione">
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
|
|
|
|
<div class="mb-3" style="width:25%;float:left;">
|
|
<b><label asp-for="Piautist" class="control-label"></label></b>
|
|
<div>
|
|
<div class="form-text">@Html.DisplayFor(model => model.Piautist)</div>
|
|
@Html.HiddenFor(x => x.Piautist)
|
|
</div>
|
|
<span asp-validation-for="Piautist" class="text-danger"></span>
|
|
</div>
|
|
<div style="width:3%;float:left;"> </div>
|
|
<div class="mb-3" style="width:40%;float:left;">
|
|
<b><label asp-for="Pitarga" class="control-label"></label></b>
|
|
<div>
|
|
<div class="form-text">@Html.DisplayFor(model => model.Pitarga)</div>
|
|
@Html.HiddenFor(x => x.Pitarga)
|
|
</div>
|
|
<span asp-validation-for="Pitarga" class="text-danger"></span>
|
|
</div>
|
|
<div style="width:3%;height:40px;float:left;"> </div>
|
|
|
|
<div class="mb-3" style="width:20%;float:left;">
|
|
<b><label asp-for="Pidata" class="control-label"></label></b>
|
|
<div class="form-text">@dataStr</div>
|
|
@Html.HiddenFor(x => x.Pidata)
|
|
</div>
|
|
<div style="width:8%;float:left;"> </div>
|
|
|
|
|
|
<div class="mb-0" style="width:49%;float:left;">
|
|
<b><label asp-for="Picommit" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Picommit)
|
|
</div>
|
|
<span asp-validation-for="Picommit" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Picommit)
|
|
</div>
|
|
<div class="mb-0" style="width:49%;float:left;">
|
|
<b><label asp-for="Pidesdiv" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Pidesdiv)
|
|
</div>
|
|
<span asp-validation-for="Pidesdiv" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Pidesdiv)
|
|
</div>
|
|
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Picasse" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Picasse)
|
|
<span asp-validation-for="Picasse" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Picasse)
|
|
</div>
|
|
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Pitrasf" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Pitrasf)
|
|
<span asp-validation-for="Pitrasf" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Pitrasf)
|
|
</div>
|
|
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Picolli" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Picolli)
|
|
<span asp-validation-for="Picolli" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Picolli)
|
|
</div>
|
|
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Pinumcons" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Pinumcons)
|
|
<span asp-validation-for="Pinumcons" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Pinumcons)
|
|
</div>
|
|
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Piuova" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Piuova)
|
|
<span asp-validation-for="Piuova" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Piuova)
|
|
</div>
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Picist" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Picist)
|
|
<span asp-validation-for="Picist" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Picist)
|
|
</div>
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:10%;float:left;">
|
|
<b><label asp-for="Piseq" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Piseq)
|
|
<span asp-validation-for="Piseq" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Piseq)
|
|
</div>
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div class="mb-3" style="width:16%;float:left;">
|
|
<b><label asp-for="Pinote" class="control-label"></label></b>
|
|
<div>
|
|
@Html.DisplayFor(model => model.Pinote)
|
|
<span asp-validation-for="Pinote" class="text-danger"></span>
|
|
@Html.HiddenFor(x => x.Pinote)
|
|
</div>
|
|
|
|
</div>
|
|
<div style="width:35%;float:left;"> </div>
|
|
<div style="width:10%;float:left;">
|
|
@if(btnVisible)
|
|
{
|
|
<input type="submit" value="Salva" class="btn btn-primary" />
|
|
}
|
|
|
|
</div>
|
|
<div style="width:2%;float:left;"> </div>
|
|
<div style="width:10%;float:left;">
|
|
@* <a asp-action="AddDestinazione"
|
|
asp-controller="AddDestinazione"
|
|
|
|
asp-route-serialeGiro="@pserialeGiro"
|
|
asp-route-codAutista="@pcodAutista"
|
|
asp-route-nomeAutista="@pnomeAutista"
|
|
asp-route-dataGiro="@datagiro"
|
|
asp-route-codMezzo="@pcodmezzo"
|
|
asp-route-desMezzo="@pautomezzo"
|
|
|
|
class="btn btn-primary">Indietro</a>*@
|
|
|
|
|
|
<a href="@Url.ActionLink("AddDestinazione", "AddDestinazione", new{serialeGiro = Model.Pisergir,
|
|
codAutista=Model.Piautist,
|
|
nomeAutista=pnomeAutista,
|
|
dataGiro=Model.Pidata,
|
|
codMezzo=Model.Pitarga,
|
|
desMezzo=pautomezzo})" title="Aggiungi nuova destinazione" class="btn btn-primary" >
|
|
Indietro
|
|
</a>
|
|
|
|
</div>
|
|
<div style="width:100%;float:left;"> </div>
|
|
@Html.HiddenFor(x => x.Piprogre)
|
|
@Html.HiddenFor(x => x.Piserial)
|
|
@Html.HiddenFor(x => x.Pitiprec)
|
|
@Html.HiddenFor(x => x.Pisergir)
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div><h4 style="color:red">@mex</h4></div>
|
|
|
|
</form>
|
|
|