Files
NKC/NKC_WF/WebUserControls/cmp_DailyStatsPlot.ascx.cs
T
2021-10-05 19:00:21 +02:00

95 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace NKC_WF.WebUserControls
{
public partial class cmp_DailyStatsPlot : System.Web.UI.UserControl
{
#region Protected Fields
protected string dateFormat = "yyyy-MM-dd";
#endregion Protected Fields
#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 Methods
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}