debug e ristrutturazione pagina aggiungi destinazione
This commit is contained in:
parent
2467c7b3bd
commit
f4cf876ef2
@ -190,10 +190,13 @@ namespace SoftwayWeb.Controllers
|
|||||||
|
|
||||||
return RedirectToAction("Index", "Destinazioni", new
|
return RedirectToAction("Index", "Destinazioni", new
|
||||||
{
|
{
|
||||||
|
//string id, string? codAutista, string? nomeAutista, DateTime dataGiro, string? codMezzo, string? desMezzo
|
||||||
id = model.serialeGiro,
|
id = model.serialeGiro,
|
||||||
codAutista = model.CodAutista,
|
codAutista = model.CodAutista,
|
||||||
|
nomeAutista=model.Autista,
|
||||||
dataGiro = model.DataCarico,
|
dataGiro = model.DataCarico,
|
||||||
codMezzo=model.CodAutomezzo
|
codMezzo=model.CodAutomezzo,
|
||||||
|
desMezzo = model.DescAutomezzo
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,6 +230,10 @@ namespace SoftwayWeb.Controllers
|
|||||||
mezzi.Find(c => c.Value.Equals(model.CodAutomezzo)).Selected = true;
|
mezzi.Find(c => c.Value.Equals(model.CodAutomezzo)).Selected = true;
|
||||||
ViewBag.CodMezzo = mezzi;
|
ViewBag.CodMezzo = mezzi;
|
||||||
|
|
||||||
|
model.CodAutistaOld = model.CodAutista;
|
||||||
|
model.CodAutomezzoOld = model.CodAutomezzo;
|
||||||
|
model.AutistaOld = model.Autista;
|
||||||
|
model.DescAutomezzoOld = model.DescAutomezzo;
|
||||||
return View(model);
|
return View(model);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -278,11 +285,11 @@ namespace SoftwayWeb.Controllers
|
|||||||
return RedirectToAction("Index", "Destinazioni", new
|
return RedirectToAction("Index", "Destinazioni", new
|
||||||
{
|
{
|
||||||
id = model.serialeGiro,
|
id = model.serialeGiro,
|
||||||
codAutista = model.CodAutista,
|
codAutista = model.CodAutistaOld,
|
||||||
nomeAutista = model.Autista,
|
nomeAutista = model.AutistaOld,
|
||||||
dataGiro = model.DataCarico,
|
dataGiro = model.DataCarico,
|
||||||
codMezzo = model.CodAutomezzo,
|
codMezzo = model.CodAutomezzoOld,
|
||||||
desMezzo = model.DescAutomezzo
|
desMezzo = model.DescAutomezzoOld
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -57,6 +57,12 @@ namespace SoftwayWeb.Models
|
|||||||
public int? Seq { get; set; }
|
public int? Seq { get; set; }
|
||||||
public string? Prog { get; set; }
|
public string? Prog { get; set; }
|
||||||
public string? Pisergir { get; set; }
|
public string? Pisergir { get; set; }
|
||||||
|
|
||||||
|
public string? CodAutomezzoOld { get; set; }
|
||||||
|
public string? CodAutistaOld { get; set; }
|
||||||
|
public string? AutistaOld { get; set; }
|
||||||
|
public string? DescAutomezzoOld { get; set; }
|
||||||
|
|
||||||
public class ConsegnaFatta
|
public class ConsegnaFatta
|
||||||
{
|
{
|
||||||
[Display(Name = "Seriale consegna")]
|
[Display(Name = "Seriale consegna")]
|
||||||
@ -82,6 +88,8 @@ namespace SoftwayWeb.Models
|
|||||||
|
|
||||||
[Display(Name = "Ora consegna")]
|
[Display(Name = "Ora consegna")]
|
||||||
public DateTime? consFattaDataOra { get; set; }
|
public DateTime? consFattaDataOra { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,85 +25,98 @@
|
|||||||
{
|
{
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form asp-action="NewDestinazione">
|
<form asp-action="NewDestinazione">
|
||||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||||
<div class="mb-3">
|
|
||||||
|
|
||||||
|
<div class="mb-0" style="width:49%;float:left;">
|
||||||
<b><label asp-for="Picommit" class="control-label"></label></b>
|
<b><label asp-for="Picommit" class="control-label"></label></b>
|
||||||
<div>
|
<div>
|
||||||
@Html.DropDownListFor(x => x.Picommit, (IEnumerable<SelectListItem>)ViewBag.Commit, new { @id = "ddlCommittenti", @class = "agy-form-field require" })
|
@Html.DropDownListFor(x => x.Picommit, (IEnumerable<SelectListItem>)ViewBag.Commit, new { @id = "ddlCommittenti", @class = "agy-form-field require" })
|
||||||
</div><span asp-validation-for="Picommit" class="text-danger"></span>
|
</div><span asp-validation-for="Picommit" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-0" style="width:49%;float:left;">
|
||||||
<b><label asp-for="Pidesdiv" class="control-label"></label></b>
|
<b><label asp-for="Pidesdiv" class="control-label"></label></b>
|
||||||
<div id="District">
|
<div id="District">
|
||||||
@Html.DropDownListFor(x => x.Pidesdiv, new List<SelectListItem>(), "- Seleziona sede", new { @id = "ddlSediCons", @class = "agy-form-field require" })
|
@Html.DropDownListFor(x => x.Pidesdiv, new List<SelectListItem>(), "- Seleziona sede", new { @id = "ddlSediCons", @class = "agy-form-field require" })
|
||||||
</div>
|
</div>
|
||||||
<span asp-validation-for="Pidesdiv" class="text-danger"></span>
|
<span asp-validation-for="Pidesdiv" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3" style="width:25%;float:left;">
|
||||||
<b><label asp-for="Pidata" class="control-label"></label></b>
|
<b><label asp-for="Piautist" class="control-label"></label></b>
|
||||||
<input asp-for="Pidata" class="form-control" />
|
|
||||||
<span asp-validation-for="Pidata" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Piautist" class="control-label"></label></b>
|
|
||||||
<div>
|
|
||||||
@Html.DropDownList("autista",ViewBag.CodAutista, null, new { @class = "agy-form-field require" })
|
|
||||||
</div>
|
|
||||||
<span asp-validation-for="Piautist" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Pitarga" class="control-label"></label></b>
|
|
||||||
<div>
|
|
||||||
@Html.DropDownList("mezzo",ViewBag.Mezzi, null, new { @class = "agy-form-field require" })
|
|
||||||
</div>
|
|
||||||
<span asp-validation-for="Pitarga" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Picasse" class="control-label"></label></b>
|
|
||||||
<input asp-for="Picasse" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Picasse" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Pitrasf" class="control-label"></label></b>
|
|
||||||
<input asp-for="Pitrasf" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Pitrasf" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Picolli" class="control-label"></label></b>
|
|
||||||
<input asp-for="Picolli" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Picolli" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Pinumcons" class="control-label"></label></b>
|
|
||||||
<input asp-for="Pinumcons" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Pinumcons" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Piuova" class="control-label"></label></b>
|
|
||||||
<input asp-for="Piuova" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Piuova" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Picist" class="control-label"></label></b>
|
|
||||||
<input asp-for="Picist" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Picist" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div class="mb-3">
|
|
||||||
<b><label asp-for="Piseq" class="control-label"></label></b>
|
|
||||||
<input asp-for="Piseq" value="0" class="form-control" />
|
|
||||||
<span asp-validation-for="Piseq" class="text-danger"></span>
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
|
@Html.DropDownList("autista",ViewBag.CodAutista, null, new { @class = "agy-form-field require" })
|
||||||
@Html.HiddenFor(x => x.Piprogre)
|
|
||||||
@Html.HiddenFor(x => x.Piserial)
|
|
||||||
@Html.HiddenFor(x => x.Pitiprec)
|
|
||||||
@Html.HiddenFor(x => x.Pisergir)
|
|
||||||
|
|
||||||
<input type="submit" asp-action="NewDestinazione" asp-controller="AddDestinazione" asp-route-id="@Model.Pisergir" value="Salva modifiche" class="btn btn-primary" />
|
|
||||||
<a asp-action="Index" asp-controller="Giri" value="Torna alla lista" class="btn btn-primary">Torna alla lista</a>
|
|
||||||
</div>
|
</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>
|
||||||
|
@Html.DropDownList("mezzo",ViewBag.Mezzi, null, new { @class = "agy-form-field require" })
|
||||||
|
</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>
|
||||||
|
<input asp-for="Pidata" class="form-control" />
|
||||||
|
<span asp-validation-for="Pidata" class="text-danger"></span>
|
||||||
|
</div>
|
||||||
|
<div style="width:8%;float:left;"> </div>
|
||||||
|
<div class="mb-3" style="width:10%;float:left;">
|
||||||
|
<b><label asp-for="Picasse" class="control-label"></label></b>
|
||||||
|
<input asp-for="Picasse" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Picasse" class="text-danger"></span>
|
||||||
|
</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>
|
||||||
|
<input asp-for="Pitrasf" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Pitrasf" class="text-danger"></span>
|
||||||
|
</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>
|
||||||
|
<input asp-for="Picolli" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Picolli" class="text-danger"></span>
|
||||||
|
</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>
|
||||||
|
<input asp-for="Pinumcons" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Pinumcons" class="text-danger"></span>
|
||||||
|
</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>
|
||||||
|
<input asp-for="Piuova" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Piuova" class="text-danger"></span>
|
||||||
|
</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>
|
||||||
|
<input asp-for="Picist" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Picist" class="text-danger"></span>
|
||||||
|
</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>
|
||||||
|
<input asp-for="Piseq" value="0" class="form-control" />
|
||||||
|
<span asp-validation-for="Piseq" class="text-danger"></span>
|
||||||
|
</div>
|
||||||
|
<div style="width:35%;float:left;"> </div>
|
||||||
|
<div style="width:10%;float:left;">
|
||||||
|
<input type="submit" asp-action="NewDestinazione" asp-controller="AddDestinazione" asp-route-id="@Model.Pisergir" value="Salva modifiche" class="btn btn-primary" />
|
||||||
|
</div>
|
||||||
|
<div style="width:2%;float:left;"> </div>
|
||||||
|
<div style="width:10%;float:left;">
|
||||||
|
<a asp-action="Index" asp-controller="Giri" value="Torna alla lista" class="btn btn-primary">Torna alla lista</a>
|
||||||
|
</div>
|
||||||
|
@Html.HiddenFor(x => x.Piprogre)
|
||||||
|
@Html.HiddenFor(x => x.Piserial)
|
||||||
|
@Html.HiddenFor(x => x.Pitiprec)
|
||||||
|
@Html.HiddenFor(x => x.Pisergir)
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,11 @@
|
|||||||
@Html.HiddenFor(model => model.Note)
|
@Html.HiddenFor(model => model.Note)
|
||||||
@Html.HiddenFor(model => model.Seq)
|
@Html.HiddenFor(model => model.Seq)
|
||||||
@Html.HiddenFor(model => model.Prog)
|
@Html.HiddenFor(model => model.Prog)
|
||||||
|
|
||||||
|
@Html.HiddenFor(model => model.CodAutistaOld)
|
||||||
|
@Html.HiddenFor(model => model.CodAutomezzoOld)
|
||||||
|
@Html.HiddenFor(model => model.AutistaOld)
|
||||||
|
@Html.HiddenFor(model => model.DescAutomezzoOld)
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary">Salva</button>
|
<button type="submit" class="btn btn-primary">Salva</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user