Files
NKC/NKC_WF/WebUserControls/cmp_DailyStatsPlot.ascx.cs
2024-03-20 07:18:34 +01:00

88 lines
1.9 KiB
C#

using System;
using System.Globalization;
using System.Web.UI;
namespace NKC_WF.WebUserControls
{
public partial class cmp_DailyStatsPlot : System.Web.UI.UserControl
{
#region Public Properties
public DateTime DateEnd
{
get
{
DateTime answ = DateTime.Today;
DateTime.TryParseExact(hfDateEnd.Value, dateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out answ);
return answ;
}
set
{
hfDateEnd.Value = $"{value:yyyy-MM-dd}";
}
}
public DateTime DateStart
{
get
{
DateTime answ = DateTime.Today;
DateTime.TryParseExact(hfDateStart.Value, dateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out answ);
return answ;
}
set
{
hfDateStart.Value = $"{value:yyyy-MM-dd}";
}
}
public string Legend
{
get
{
return hfLegend.Value;
}
set
{
hfLegend.Value = value;
}
}
public string PlaceCod
{
get
{
return hfPlaceCod.Value;
}
set
{
hfPlaceCod.Value = value;
}
}
public string PlotType
{
get
{
return hfPlotType.Value;
}
set
{
hfPlotType.Value = value;
}
}
#endregion Public Properties
#region Protected Fields
protected string dateFormat = "yyyy-MM-dd";
#endregion Protected Fields
#region Protected Methods
#endregion Protected Methods
}
}