FIX edit e delete!!!
This commit is contained in:
@@ -479,6 +479,10 @@ namespace StockManMVC.Controllers
|
||||
itemFlux.ItemID = itemFluxOld.ItemID;
|
||||
itemFlux.MovTypeID = itemFluxOld.MovTypeID;
|
||||
if (itemFlux.OperatorID == null) itemFlux.OperatorID = itemFluxOld.OperatorID;
|
||||
// fix valori opzionali da non annullare...
|
||||
if (itemFlux.dtMov == null) itemFlux.dtMov = DateTime.Now;
|
||||
if (itemFlux.Note == null) itemFlux.Note = "";
|
||||
if (itemFlux.CodDoc == null) itemFlux.CodDoc = "";
|
||||
// continuo
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
|
||||
@@ -4,110 +4,117 @@
|
||||
ViewBag.Title = "Delete";
|
||||
}
|
||||
|
||||
<h3>Eliminazione movimento</h3>
|
||||
<div>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtMov)
|
||||
</dt>
|
||||
<div class="panel panel-danger">
|
||||
<div class="panel-heading">
|
||||
<strong>Eliminazione record</strong>
|
||||
</div>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtMov)
|
||||
</dd>
|
||||
<div class="panel-body">
|
||||
<h4>Sicuro di voler eliminare questo record?</h4>
|
||||
<div>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtMov)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Qta)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtMov)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Qta)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Qta)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.TotValue)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Qta)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.TotValue)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.TotValue)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UnitVal)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.TotValue)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UnitVal)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UnitVal)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UnitVal)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Note)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Note)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtExport)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Note)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtExport)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.dtExport)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.dtExport)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location.Descr)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location.Descr)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.MovType.Descr)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location.Descr)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.MovType.Descr)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.MovType.Descr)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.MovType.Descr)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Item.Descr)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Item.Descr)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Operator.CodExt)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Item.Descr)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Operator.CodExt)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Operator.CodExt)
|
||||
</dt>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location1.Descr)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Operator.CodExt)
|
||||
</dd>
|
||||
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location1.Descr)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Location1.Descr)
|
||||
</dt>
|
||||
|
||||
</dl>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Location1.Descr)
|
||||
</dd>
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<div class="form-actions no-color row">
|
||||
<div class="col-sm-3">
|
||||
<button type="submit" value="Delete" class="btn btn-danger form-control">Elimina <i class="glyphicon glyphicon-remove-circle"></i></button>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<a href="@Url.Action("Details", "Items", new { id=Model.ItemID, StockItemID= Model.ItemID, FluxItemID= Model.ItemID })" class="btn btn-info form-control">Torna ad elenco <i class="glyphicon glyphicon-retweet"></i></a>
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@Html.AntiForgeryToken()
|
||||
<div class="form-actions no-color row">
|
||||
<div class="col-sm-6">
|
||||
<button type="submit" value="Delete" class="btn btn-danger form-control">Elimina <i class="glyphicon glyphicon-remove-circle"></i></button>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<a href="@Url.Action("Details", "Items", new { id=Model.ItemID, StockItemID= Model.ItemID, FluxItemID= Model.ItemID })" class="btn btn-info form-control">Annulla <i class="glyphicon glyphicon-retweet"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<button type="submit" value="Save" class="btn btn-primary form-control">Salva modifiche <i class="glyphicon glyphicon-ok-circle"></i></button>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<a href="@Url.Action("Details", "Items", new { id=Model.ItemID, StockItemID= Model.ItemID, FluxItemID= Model.ItemID })" class="btn btn-info form-control">Torna ad elenco <i class="glyphicon glyphicon-retweet"></i></a>
|
||||
<a href="@Url.Action("Details", "Items", new { id=Model.ItemID, StockItemID= Model.ItemID, FluxItemID= Model.ItemID })" class="btn btn-info form-control">Annulla <i class="glyphicon glyphicon-retweet"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user