62 lines
2.3 KiB
C#
62 lines
2.3 KiB
C#
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Utils;
|
|
using Saxonite.Base.App;
|
|
using Saxonite.Net.Core.Web.Base.App;
|
|
using Saxonite.Net.Core.Web.Base.Controllers;
|
|
using Saxonite.Net.Standard.Base.App;
|
|
using Saxonite.Net.Standard.Base.Bus;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Saxonite.Net.Core.Web.Online.Models
|
|
{
|
|
//=======================================================================
|
|
public class Model_Organisation : SaxModel_Online
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public Model_Organisation(SaxLocaliser localiser) :
|
|
base(localiser)
|
|
{
|
|
//AdditionalFiles_CSS.Add("css/sax-org.css");
|
|
AdditionalFiles_JS.Add("js/sax-org.js");
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// List configuration.
|
|
public class OrganisationFilterData
|
|
{
|
|
public String Organisation { get; set; }
|
|
public String RegionId { get; set; }
|
|
public String SportId { get; set; }
|
|
}
|
|
public OrganisationFilterData Filter { get; } = new OrganisationFilterData();
|
|
|
|
//-------------------------------------------------------------------
|
|
// Organisation properties.
|
|
public String OrganisationName { get; set; }
|
|
public String OrganisationTypeValue { get; set; }
|
|
public Sax.OrganisationType OrganisationType { get { return (Sax.OrganisationType)OrganisationTypeCodes.GetTypeForCode(OrganisationTypeValue); } }
|
|
public String OrganisationCategoryValue { get; set; }
|
|
public Sax.OrganisationCategory OrganisationCategory { get { return (Sax.OrganisationCategory)OrganisationCategoryCodes.GetTypeForCode(OrganisationCategoryValue); } }
|
|
public String OrganisationSportId { get; set; }
|
|
public String OrganisationRegionId { get; set; }
|
|
|
|
//-------------------------------------------------------------------
|
|
// Validation.
|
|
//-------------------------------------------------------------------
|
|
// Organisation.
|
|
public bool ValidateOrganisationData(SaxController_Base.AjaxResponse_Data responseData)
|
|
{
|
|
return !responseData.HasControlErrors();
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|