completata la gestione online dei flussi da dettaglio items...
This commit is contained in:
Binary file not shown.
@@ -239,8 +239,12 @@ namespace StockManMVC.Controllers
|
||||
}
|
||||
|
||||
// GET: Items/Details/5
|
||||
public ActionResult Details(int? id)
|
||||
public ActionResult Details(int? id, int? page, int? pageSize)
|
||||
{
|
||||
if (page == null) page = 1;
|
||||
if (pageSize == null) pageSize = 10;
|
||||
ViewBag.page = page;
|
||||
ViewBag.pageSize = pageSize;
|
||||
if (id == null)
|
||||
{
|
||||
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
|
||||
|
||||
@@ -62,25 +62,25 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@*<div class="row">
|
||||
<div class="col-sm-1">
|
||||
<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-9 text-right">
|
||||
@Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { LocTypeID = ViewBag.LocTypeID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.SortOrd, pageSize = ViewBag.pageSize, page }), PagedListRenderOptions.ClassicPlusFirstAndLast)
|
||||
<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>*@
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function refreshPageSize() {
|
||||
var PageSizeNew = $("#PageSizeDD").val();
|
||||
var queryUrl = 'LocTypeID=@ViewBag.LocTypeID&SearchVal=@ViewBag.SearchVal&SortOrd=@ViewBag.SortOrd&page=1&pageSize=' + PageSizeNew; //riporto a pag 1 in caso di cambio filtro!
|
||||
var queryUrl = 'ID=@ViewBag.ID&StockItemID=@ViewBag.ID&FluxItemID=@ViewBag.ID&SearchVal=@ViewBag.SearchVal&SortOrd=@ViewBag.SortOrd&page=1&pageSize=' + PageSizeNew; //riporto a pag 1 in caso di cambio filtro!
|
||||
// ricarico
|
||||
window.location.href = 'Locations?' + queryUrl;
|
||||
window.location.href = '?' + queryUrl;
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$("#PageSizeDD").change(function () {
|
||||
|
||||
@@ -83,21 +83,7 @@
|
||||
<strong>Movimenti</strong> (data indica movimenti <del>confermati</del> o <span class="text-warning mark">da registrare</span>)
|
||||
</div>
|
||||
<div class="panel-body small">
|
||||
@*Nuovo modello semplificato...*@
|
||||
|
||||
|
||||
@Html.Action("ListByItem", "ItemFluxes", new { ItemID = @Model.ID, page = ViewBag.page, pageSize = ViewBag.pageSize })
|
||||
|
||||
|
||||
@Html.Partial("_MVCGridToolbar", new StockManMVC.Models.MVCGridToolbarModel()
|
||||
{
|
||||
MVCGridName = "FluxItemsGrid",
|
||||
PageSize = true,
|
||||
ColumnVisibility = true,
|
||||
Export = false,
|
||||
GlobalSearch = true
|
||||
})
|
||||
@Html.MVCGrid("FluxItemsGrid")
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.1.53.563")]
|
||||
[assembly: AssemblyFileVersion("1.1.53.563")]
|
||||
[assembly: AssemblyVersion("1.1.54.563")]
|
||||
[assembly: AssemblyFileVersion("1.1.54.563")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2006-2016")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.1.53.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("1.1.53.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("1.1.54.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("1.1.54.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2006-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user