diff --git a/StockManMVC/Controllers/ItemFluxesController.cs b/StockManMVC/Controllers/ItemFluxesController.cs index 1be4af4..03a4016 100644 --- a/StockManMVC/Controllers/ItemFluxesController.cs +++ b/StockManMVC/Controllers/ItemFluxesController.cs @@ -220,7 +220,7 @@ namespace StockManMVC.Controllers ViewBag.ExtLocationID = new SelectList(db.Location, "ID", "Descr"); break; } - return View(); + return PartialView("_CreatePrecompiled"); } // POST: ItemFluxes/Create @@ -236,7 +236,7 @@ namespace StockManMVC.Controllers string currOpID = "ND"; // default try { - Operator currOp = (Operator)db.Operator.Where(o => o.CodExt == User.Identity.Name || o.CodExt.Contains(User.Identity.Name) || o.ID== User.Identity.Name); + Operator currOp = (Operator)db.Operator.Where(o => o.CodExt == User.Identity.Name || o.CodExt.Contains(User.Identity.Name) || o.ID == User.Identity.Name); currOpID = currOp.ID; } catch diff --git a/StockManMVC/StockManMVC.csproj b/StockManMVC/StockManMVC.csproj index b759ec1..d2bb64d 100644 --- a/StockManMVC/StockManMVC.csproj +++ b/StockManMVC/StockManMVC.csproj @@ -440,7 +440,7 @@ - + diff --git a/StockManMVC/Views/ItemFluxes/CreatePrecompiled.cshtml b/StockManMVC/Views/ItemFluxes/_CreatePrecompiled.cshtml similarity index 97% rename from StockManMVC/Views/ItemFluxes/CreatePrecompiled.cshtml rename to StockManMVC/Views/ItemFluxes/_CreatePrecompiled.cshtml index 7a47a10..5a52835 100644 --- a/StockManMVC/Views/ItemFluxes/CreatePrecompiled.cshtml +++ b/StockManMVC/Views/ItemFluxes/_CreatePrecompiled.cshtml @@ -5,7 +5,7 @@ var itemID = Request.Params["ItemID"]; } -

Create

+@*

Create

*@ @using (Html.BeginForm()) @@ -13,7 +13,7 @@ @Html.AntiForgeryToken()
-

ItemFlux

+ @*

ItemFlux

*@
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @@ -82,7 +82,6 @@ }
- @*@Html.ActionLink("Torna ad elenco", "Details", "Items")*@ @Html.ActionLink("Torna ad elenco", "Details", "Items", new { id = itemID, StockItemID = itemID, FluxItemID = itemID }, null)
diff --git a/StockManMVC/Views/Items/Details.cshtml b/StockManMVC/Views/Items/Details.cshtml index 04baf41..04162af 100644 --- a/StockManMVC/Views/Items/Details.cshtml +++ b/StockManMVC/Views/Items/Details.cshtml @@ -125,10 +125,14 @@
- + @* Scarico - + *@ + +
+
+ @*qui inserisco la partial view...*@
@@ -140,26 +144,6 @@ Movimenti (data indica movimenti confermati o da registrare)
- @*
- - - - -
*@ - - @* - - ALL/none - *@ - @Html.Partial("_MVCGridToolbar", new StockManMVC.Models.MVCGridToolbarModel() { MVCGridName = "FluxItemsGrid", @@ -173,3 +157,9 @@
+ + \ No newline at end of file diff --git a/StockManMVC/bin/StockManMVC.dll b/StockManMVC/bin/StockManMVC.dll index 1903eb8..9828d03 100644 Binary files a/StockManMVC/bin/StockManMVC.dll and b/StockManMVC/bin/StockManMVC.dll differ