diff --git a/.vs/config/applicationhost.config b/.vs/config/applicationhost.config index 0700253..4bb94c2 100644 --- a/.vs/config/applicationhost.config +++ b/.vs/config/applicationhost.config @@ -162,7 +162,7 @@ - + diff --git a/StockManMVC/Controllers/ItemFluxesController.cs b/StockManMVC/Controllers/ItemFluxesController.cs index 6a951e9..eb7eee1 100644 --- a/StockManMVC/Controllers/ItemFluxesController.cs +++ b/StockManMVC/Controllers/ItemFluxesController.cs @@ -271,7 +271,7 @@ namespace StockManMVC.Controllers ViewBag.OperatorID = new SelectList(db.Operator, "ID", "CodExt", itemFlux.OperatorID); ViewBag.ExtLocationID = new SelectList(db.Location, "ID", "Descr", itemFlux.ExtLocationID); - return PartialView("_CreatePrecompiled", itemFlux); + return View("CreatePrecompiled", itemFlux); } // GET: ItemFluxes/Edit/5 diff --git a/StockManMVC/StockManMVC.csproj b/StockManMVC/StockManMVC.csproj index 7e48a6d..e7a28b3 100644 --- a/StockManMVC/StockManMVC.csproj +++ b/StockManMVC/StockManMVC.csproj @@ -442,6 +442,7 @@ + diff --git a/StockManMVC/Views/ItemFluxes/CreatePrecompiled.cshtml b/StockManMVC/Views/ItemFluxes/CreatePrecompiled.cshtml new file mode 100644 index 0000000..e5ca197 --- /dev/null +++ b/StockManMVC/Views/ItemFluxes/CreatePrecompiled.cshtml @@ -0,0 +1,94 @@ +@model StockManMVC.Models.ItemFlux + +@{ + ViewBag.Title = "Create"; + var itemID = Request.Params["ItemID"]; +} + + +@using (Html.BeginForm()) +{ + @Html.AntiForgeryToken() + +
+ @Html.ValidationSummary(true, "", new { @class = "text-danger" }) + + +
+ @Html.LabelFor(model => model.MovTypeID, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.DropDownList("MovTypeID", null, htmlAttributes: new { @class = "form-control" }) + @Html.ValidationMessageFor(model => model.MovTypeID, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.ExtLocationID, "Riferimento", htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.DropDownList("ExtLocationID", null, htmlAttributes: new { @class = "form-control" }) + @Html.ValidationMessageFor(model => model.ExtLocationID, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.CodDoc, "Documento", htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.CodDoc, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.CodDoc, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.dtMov, "Data documento", htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.dtMov, new { htmlAttributes = new { @class = "form-control date-picker", type = "date" } }) + @Html.ValidationMessageFor(model => model.dtMov, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.Qta, "Quantità", htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.Qta, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Qta, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.TotValue, "Importo", htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.TotValue, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.TotValue, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.LocationID, "Posizione", htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.DropDownList("LocationID", null, htmlAttributes: new { @class = "form-control" }) + @Html.ValidationMessageFor(model => model.LocationID, "", new { @class = "text-danger" }) +
+
+ +
+ @Html.LabelFor(model => model.Note, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.TextAreaFor(model => model.Note, 3, 70, new { htmlAttributes = new { @class = "form-control" } }) + @Html.ValidationMessageFor(model => model.Note, "", new { @class = "text-danger" }) +
+
+ +
+
+ +
+ +
+
+} + +@section Scripts { + @Scripts.Render("~/bundles/jqueryval") +} diff --git a/StockManMVC/Views/Items/_Edit.cshtml b/StockManMVC/Views/Items/_Edit.cshtml index c966206..6d28efb 100644 --- a/StockManMVC/Views/Items/_Edit.cshtml +++ b/StockManMVC/Views/Items/_Edit.cshtml @@ -87,18 +87,18 @@ -} + } - +*@ @section Scripts { @Scripts.Render("~/bundles/jqueryval") diff --git a/StockManMVC/Web.config b/StockManMVC/Web.config index 0b12bbb..04a1f31 100644 --- a/StockManMVC/Web.config +++ b/StockManMVC/Web.config @@ -87,9 +87,9 @@ - + - + diff --git a/StockManMVC/bin/StockManMVC.dll b/StockManMVC/bin/StockManMVC.dll index 6f083ff..1faa943 100644 Binary files a/StockManMVC/bin/StockManMVC.dll and b/StockManMVC/bin/StockManMVC.dll differ diff --git a/StockManMVC/bin/StockManMVC.dll.config b/StockManMVC/bin/StockManMVC.dll.config index 0b12bbb..04a1f31 100644 --- a/StockManMVC/bin/StockManMVC.dll.config +++ b/StockManMVC/bin/StockManMVC.dll.config @@ -87,9 +87,9 @@ - + - +