58 lines
2.2 KiB
C#
58 lines
2.2 KiB
C#
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Helpers;
|
|
using Sarand.Net.Standard.Base.Utils;
|
|
using Saxonite.Net.Core.Web.Base.App;
|
|
using Saxonite.Net.Core.Web.Base.Controllers;
|
|
using Saxonite.Net.Core.Web.Base.Models;
|
|
using Saxonite.Net.Standard.Base.App;
|
|
using Saxonite.Net.Standard.Base.Bus;
|
|
using Saxonite.Net.Standard.Base.Helpers;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Saxonite.Net.Core.Web.Online.Models
|
|
{
|
|
//=======================================================================
|
|
public class Model_Search_Organisations : SaxModel_Online
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public Model_Search_Organisations(SaxLocaliser localiser) :
|
|
base(localiser)
|
|
{
|
|
//AdditionalFiles_CSS.Add("css/sax-src-org.css");
|
|
AdditionalFiles_JS.Add("js/sax-src-org.js");
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Page configuration.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Form properties.
|
|
public class FilterData
|
|
{
|
|
public String Organisation { get; set; }
|
|
public String Type { get; set; }
|
|
public String Category { get; set; }
|
|
public String RegionId { get; set; }
|
|
public String SportId { get; set; }
|
|
}
|
|
public FilterData Filter { get; } = new FilterData();
|
|
public Sax.OrganisationType FilterOrganisationType { get { return (Sax.OrganisationType)OrganisationTypeCodes.GetTypeForCode(Filter.Type); } }
|
|
public Sax.OrganisationCategory FilterOrganisationCategory { get { return (Sax.OrganisationCategory)OrganisationCategoryCodes.GetTypeForCode(Filter.Category); } }
|
|
public SysId FilterSportId { get { return ExtractSysId(Filter.SportId); } }
|
|
public SysId FilterRegionId { get { return ExtractSysId(Filter.RegionId); } }
|
|
public String OrganisationId { get; set; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Validation.
|
|
//-------------------------------------------------------------------
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|