diff --git a/StockManMVC/Views/ItemFluxes/_ListByItem.cshtml b/StockManMVC/Views/ItemFluxes/_ListByItem.cshtml index e51eac7..38058d8 100644 --- a/StockManMVC/Views/ItemFluxes/_ListByItem.cshtml +++ b/StockManMVC/Views/ItemFluxes/_ListByItem.cshtml @@ -1,79 +1,80 @@ @model IEnumerable @using X.PagedList.Mvc; @using X.PagedList; +@using X.PagedList.Mvc.Common;
-
- - - - - - - - - +
+
- @Html.ActionLink("Data", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.DtMovSortParm, page = 1, pageSize = ViewBag.pageSize }, null) - - @Html.ActionLink("Posizione", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.LocSortParm, page = 1, pageSize = ViewBag.pageSize }, null) - - @Html.ActionLink("Qta", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.QtaSortParm, page = 1, pageSize = ViewBag.pageSize }, null) - - @Html.ActionLink("Importo", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.ValSortParm, page = 1, pageSize = ViewBag.pageSize }, null) - - @Html.ActionLink("Riferimento", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.RifSortParm, page = 1, pageSize = ViewBag.pageSize }, null) -
+ + + + + + + + - @foreach (var item in Model) - { - var delStyle = ""; - var convStyle = ""; - var confStyle = "text-warning mark"; - if (item.dtExport.ToString() != "") - { - delStyle = "disabled invisible zeroWidth"; - confStyle = "deleted"; - } - if (item.MovTypeID != "OFOR") { convStyle = "disabled invisible zeroWidth"; } - - - - - - - - - } -
+ @Html.ActionLink("Data", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.DtMovSortParm, page = 1, pageSize = ViewBag.pageSize }, null) + + @Html.ActionLink("Posizione", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.LocSortParm, page = 1, pageSize = ViewBag.pageSize }, null) + + @Html.ActionLink("Qta", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.QtaSortParm, page = 1, pageSize = ViewBag.pageSize }, null) + + @Html.ActionLink("Importo", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.ValSortParm, page = 1, pageSize = ViewBag.pageSize }, null) + + @Html.ActionLink("Riferimento", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.RifSortParm, page = 1, pageSize = ViewBag.pageSize }, null) +
- @Html.DisplayFor(modelItem => item.dtMov) - - @Html.DisplayFor(modelItem => item.Location.Descr) - - @Html.DisplayFor(modelItem => item.Qta) - - @Html.DisplayFor(modelItem => item.TotValue) - - @Html.DisplayFor(modelItem => item.Location1.Descr) - - - - - @Html.ActionLink(" ", "ConvOrder", new { ID = item.ID }, new { @class = "btn btn-xs btn-info glyphicon glyphicon-flash " + @delStyle + " " + @convStyle }) - -
-
+ @foreach (var item in Model) + { + var delStyle = ""; + var convStyle = ""; + var confStyle = "text-warning mark"; + if (item.dtExport.ToString() != "") + { + delStyle = "disabled invisible zeroWidth"; + confStyle = "deleted"; + } + if (item.MovTypeID != "OFOR") { convStyle = "disabled invisible zeroWidth"; } + + + @Html.DisplayFor(modelItem => item.dtMov) + + + @Html.DisplayFor(modelItem => item.Location.Descr) + + + @Html.DisplayFor(modelItem => item.Qta) + + + @Html.DisplayFor(modelItem => item.TotValue) + + + @Html.DisplayFor(modelItem => item.Location1.Descr) + + + + + + @Html.ActionLink(" ", "ConvOrder", new { ID = item.ID }, new { @class = "btn btn-xs btn-info glyphicon glyphicon-flash " + @delStyle + " " + @convStyle }) + + + + } + +
-
- @Html.DropDownList("PageSizeDD", null, htmlAttributes: new { @class = "form-control pageSelDD" }) -
- -
- @Html.PagedListPager((IPagedList)Model, page => Url.Action("Details", "Items", new { ID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.SortOrd, pageSize = ViewBag.pageSize, page }), PagedListRenderOptions.ClassicPlusFirstAndLast) -
+
+ @Html.DropDownList("PageSizeDD", null, htmlAttributes: new { @class = "form-control pageSelDD" }) +
+ +
+ @Html.PagedListPager((IPagedList)Model, page => Url.Action("Details", "Items", new { ID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.SortOrd, pageSize = ViewBag.pageSize, page }), PagedListRenderOptions.ClassicPlusFirstAndLast) +