using FastReport.Dialog; using System; using System.Globalization; using System.Text; using static FastReport.Web.Constants; namespace FastReport.Web { public partial class Dialog { private void MonthCalendarChange(MonthCalendarControl dp, string value) { dp.SelectionStart = DateTime.ParseExact(value, "d", CultureInfo.InvariantCulture); } private string GetMonthCalendarHtml(MonthCalendarControl control) { control.FillData(); ControlFilterRefresh(control); string id = GetControlID(control); StringBuilder html = new StringBuilder(); string selectedDate = control.SelectionStart.Month.ToString() + "/" + control.SelectionStart.Day.ToString() + "/" + control.SelectionStart.Year.ToString(); string ev = GetEvent(ONCHANGE, control, DIALOG, $"document.getElementById('{id}').value"); html.AppendFormat("
", "", GetMonthCalendarStyle(control), ev, id ); html.Append(""); //control.FilterData(); return html.ToString(); } private string GetMonthCalendarStyle(MonthCalendarControl control) { return GetStandardStyle(control); } } }