using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.FormControls;
using CMS.Reporting;
public partial class CMSModules_Reporting_FormControls_ReportSelector : FormEngineUserControl
{
///
/// Gets or sets field value.
///
public override object Value
{
get
{
return ucItemSelector.Value;
}
set
{
ucItemSelector.Form = Form;
ucItemSelector.Value = value;
}
}
///
/// Returns true if entered data is valid. If data is invalid, it returns false and displays an error message.
///
public override bool IsValid()
{
return ucItemSelector.IsValid();
}
///
/// Returns an array of values of any other fields returned by the control.
///
/// It returns an array where first dimension is attribute name and the second dimension is its value.
public override object[,] GetOtherValues()
{
return ucItemSelector.GetOtherValues();
}
protected void Page_Load(object sender, EventArgs e)
{
ucItemSelector.ReportType = ReportItemType.All;
ucItemSelector.IsLiveSite = IsLiveSite;
}
}