webdav portal filter + detail view added

This commit is contained in:
vfedosevich 2015-02-18 02:35:32 -08:00
parent 280628e362
commit 51d432fd2e
156 changed files with 32494 additions and 260 deletions

View file

@ -0,0 +1,13 @@
using System.Collections;
using System.Collections.Generic;
namespace WebsitePanel.WebDavPortal.Models.Common.DataTable
{
public abstract class JqueryDataTableBaseEntity
{
public abstract dynamic this[int index]
{
get;
}
}
}

View file

@ -0,0 +1,13 @@
namespace WebsitePanel.WebDavPortal.Models.Common.DataTable
{
public class JqueryDataTableColumn
{
public string Data { get; set; }
public string Name { get; set; }
public bool Orderable { get; set; }
public JqueryDataTableSearch Search { get; set; }
}
}

View file

@ -0,0 +1,8 @@
namespace WebsitePanel.WebDavPortal.Models.Common.DataTable
{
public class JqueryDataTableOrder
{
public int Column { get; set; }
public bool Ascending { get; set; }
}
}

View file

@ -0,0 +1,16 @@
using System.Collections.Generic;
namespace WebsitePanel.WebDavPortal.Models.Common.DataTable
{
public class JqueryDataTableRequest
{
public int Draw { get; set; }
public int Start { get; set; }
public int Count { get; set; }
public JqueryDataTableSearch Search { get; set; }
public IEnumerable<JqueryDataTableOrder> Orders { get; set; }
public IEnumerable<JqueryDataTableColumn> Columns { get; set; }
}
}

View file

@ -0,0 +1,9 @@
namespace WebsitePanel.WebDavPortal.Models.Common.DataTable
{
public class JqueryDataTableSearch
{
public string Value { get; set; }
public bool IsRegex { get; set; }
}
}

View file

@ -0,0 +1,20 @@
using System.Collections;
namespace WebsitePanel.WebDavPortal.Models.Common.DataTable
{
public class JqueryDataTablesResponse
{
public int draw { get; private set; }
public IEnumerable data { get; private set; }
public int recordsTotal { get; private set; }
public int recordsFiltered { get; private set; }
public JqueryDataTablesResponse(int draw, IEnumerable data, int recordsFilteredCount, int recordsTotalCount)
{
this.draw = draw;
this.data = data;
this.recordsFiltered = recordsFilteredCount;
this.recordsTotal = recordsTotalCount;
}
}
}