Merge branch 'develop'
This commit is contained in:
@@ -1,79 +1,80 @@
|
||||
@model IEnumerable<StockManMVC.Models.ItemFlux>
|
||||
@using X.PagedList.Mvc;
|
||||
@using X.PagedList;
|
||||
@using X.PagedList.Mvc.Common;
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-condensed table-responsive table-striped table-hover table-bordered">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.ActionLink("Data", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.DtMovSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th>
|
||||
@Html.ActionLink("Posizione", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.LocSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th class="text-right">
|
||||
@Html.ActionLink("Qta", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.QtaSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th class="text-right">
|
||||
@Html.ActionLink("Importo", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.ValSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th class="text-right">
|
||||
@Html.ActionLink("Riferimento", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.RifSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-condensed table-responsive table-striped table-hover table-bordered">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.ActionLink("Data", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.DtMovSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th>
|
||||
@Html.ActionLink("Posizione", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.LocSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th class="text-right">
|
||||
@Html.ActionLink("Qta", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.QtaSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th class="text-right">
|
||||
@Html.ActionLink("Importo", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.ValSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th class="text-right">
|
||||
@Html.ActionLink("Riferimento", "Details", "Items", new { ID = ViewBag.ID, StockItemID = ViewBag.ID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.RifSortParm, page = 1, pageSize = ViewBag.pageSize }, null)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@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"; }
|
||||
<tr>
|
||||
<td class="@confStyle">
|
||||
@Html.DisplayFor(modelItem => item.dtMov)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Location.Descr)
|
||||
</td>
|
||||
<td class="text-right @item.MovType.CssClass">
|
||||
@Html.DisplayFor(modelItem => item.Qta)
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@Html.DisplayFor(modelItem => item.TotValue)
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@Html.DisplayFor(modelItem => item.Location1.Descr)
|
||||
</td>
|
||||
<td class="text-left">
|
||||
<button class="btn btn-xs btn-default" title="Mostra" onclick="LoadItemFluxReadOnly(@item.ID);"><i class="glyphicon glyphicon-search"></i></button>
|
||||
<button class="btn btn-xs btn-warning" title="Clona" onclick="LoadItemFluxDupl(@item.ID);"><i class="glyphicon glyphicon-duplicate"></i></button>
|
||||
<button class="btn btn-xs btn-primary @delStyle" title="Modifica" onclick="LoadItemFluxEdit(@item.ID);"><i class="glyphicon glyphicon-edit"></i></button>
|
||||
@Html.ActionLink(" ", "ConvOrder", new { ID = item.ID }, new { @class = "btn btn-xs btn-info glyphicon glyphicon-flash " + @delStyle + " " + @convStyle })
|
||||
<button class="btn btn-xs btn-danger @delStyle" title="Elimina" onclick="LoadItemFluxDelete(@item.ID);"><i class="glyphicon glyphicon-trash"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
@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"; }
|
||||
<tr>
|
||||
<td class="@confStyle">
|
||||
@Html.DisplayFor(modelItem => item.dtMov)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Location.Descr)
|
||||
</td>
|
||||
<td class="text-right @item.MovType.CssClass">
|
||||
@Html.DisplayFor(modelItem => item.Qta)
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@Html.DisplayFor(modelItem => item.TotValue)
|
||||
</td>
|
||||
<td class="text-right">
|
||||
@Html.DisplayFor(modelItem => item.Location1.Descr)
|
||||
</td>
|
||||
<td class="text-left">
|
||||
<button class="btn btn-xs btn-default" title="Mostra" onclick="LoadItemFluxReadOnly(@item.ID);"><i class="glyphicon glyphicon-search"></i></button>
|
||||
<button class="btn btn-xs btn-warning" title="Clona" onclick="LoadItemFluxDupl(@item.ID);"><i class="glyphicon glyphicon-duplicate"></i></button>
|
||||
<button class="btn btn-xs btn-primary @delStyle" title="Modifica" onclick="LoadItemFluxEdit(@item.ID);"><i class="glyphicon glyphicon-edit"></i></button>
|
||||
@Html.ActionLink(" ", "ConvOrder", new { ID = item.ID }, new { @class = "btn btn-xs btn-info glyphicon glyphicon-flash " + @delStyle + " " + @convStyle })
|
||||
<button class="btn btn-xs btn-danger @delStyle" title="Elimina" onclick="LoadItemFluxDelete(@item.ID);"><i class="glyphicon glyphicon-trash"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
@Html.DropDownList("PageSizeDD", null, htmlAttributes: new { @class = "form-control pageSelDD" })
|
||||
</div>
|
||||
<div class="col-sm-2 pagination">
|
||||
@(((IPagedList)Model).FirstItemOnPage) - @(((IPagedList)Model).LastItemOnPage) (@(((IPagedList)Model).TotalItemCount) tot)
|
||||
</div>
|
||||
<div class="col-sm-8 text-right">
|
||||
@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)
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
@Html.DropDownList("PageSizeDD", null, htmlAttributes: new { @class = "form-control pageSelDD" })
|
||||
</div>
|
||||
<div class="col-sm-2 pagination">
|
||||
@(((IPagedList)Model).FirstItemOnPage) - @(((IPagedList)Model).LastItemOnPage) (@(((IPagedList)Model).TotalItemCount) tot)
|
||||
</div>
|
||||
<div class="col-sm-8 text-right">
|
||||
@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)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user