From b4b6b22947a3979a1a6daf2f1bd8a69aa6d770cd Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 2 Nov 2016 11:30:54 +0100 Subject: [PATCH] nascondo campo ID diventato inutile x locations --- StockManMVC/Views/Locations/Create.cshtml | 7 ------- StockManMVC/Views/Locations/_ListByType.cshtml | 8 +------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/StockManMVC/Views/Locations/Create.cshtml b/StockManMVC/Views/Locations/Create.cshtml index 3ef689b..2ce2aca 100644 --- a/StockManMVC/Views/Locations/Create.cshtml +++ b/StockManMVC/Views/Locations/Create.cshtml @@ -15,13 +15,6 @@
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) - @*
- @Html.LabelFor(model => model.ID, htmlAttributes: new { @class = "control-label col-md-2" }) -
- @Html.EditorFor(model => model.ID, new { htmlAttributes = new { @class = "form-control" } }) - @Html.ValidationMessageFor(model => model.ID, "", new { @class = "text-danger" }) -
-
*@
@Html.LabelFor(model => model.Descr, htmlAttributes: new { @class = "control-label col-md-2" }) diff --git a/StockManMVC/Views/Locations/_ListByType.cshtml b/StockManMVC/Views/Locations/_ListByType.cshtml index b9df769..08710a4 100644 --- a/StockManMVC/Views/Locations/_ListByType.cshtml +++ b/StockManMVC/Views/Locations/_ListByType.cshtml @@ -6,9 +6,6 @@
- @@ -23,12 +20,9 @@ var delStyle = ""; var edtStyle = ""; if (item.ItemFlux.Count + item.ItemFlux1.Count > 0) { delStyle = "disabled invisible"; } - // anche i codici "#QUALCOSA#" NON sono modificabili... + // anche i codici con ID "#QUALCOSA" NON sono modificabili... if(item.ID.StartsWith("#")) { delStyle = "disabled invisible"; edtStyle = "disabled invisible"; } -
- @Html.DisplayNameFor(model => model.ID) - @Html.ActionLink(Html.DisplayNameFor(model => model.Descr).ToString(), "Index", new { LocTypeID = ViewBag.LocTypeID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.DescrSortParm, page = 1, pageSize = ViewBag.pageSize })
- @Html.DisplayFor(modelItem => item.ID) - @Html.DisplayFor(modelItem => item.Descr)