Esempio n. 1
0
 /// <summary>Changes the state of the report.</summary>
 /// <param name="reportState">State of the report.</param>
 public void ChangeReportState(ReportState reportState)
 {
     RaiseEvent(new ReportTemplateReportStateChangedEvent(Key, Version, reportState));
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ReportTemplate" /> class.
        /// </summary>
        /// <param name="staffKey">The staff key.</param>
        /// <param name="name">The name.</param>
        /// <param name="reportType">Type of the report.</param>
        /// <param name="parameters">The parameters.</param>
        /// <param name="reportState">State of the report.</param>
        internal ReportTemplate(Guid staffKey, string name, ReportType reportType, object parameters, ReportState reportState)
        {
            Check.IsNotNull(name, () => Name);
            Check.IsNotNull(reportType, () => ReportType);
            Check.IsNotNull(parameters, () => Parameters);
            Check.IsNotNull(reportState, () => ReportState);

            Key = CombGuid.NewCombGuid();

            RaiseEvent(new ReportTemplateCreatedEvent(Key, Version, staffKey, name, reportType, parameters, reportState));
        }
Esempio n. 3
0
 /// <summary>
 /// Creates the specified name.
 /// </summary>
 /// <param name="staffKey">The staff key.</param>
 /// <param name="name">The name.</param>
 /// <param name="reportType">Type of the report.</param>
 /// <param name="parameters">The parameters.</param>
 /// <param name="reportState">State of the report.</param>
 /// <returns>
 /// A <see cref="ReportTemplate" />.
 /// </returns>
 public ReportTemplate Create(Guid staffKey, string name, ReportType reportType, object parameters, ReportState reportState)
 {
     return(new ReportTemplate(staffKey, name, reportType, parameters, reportState));
 }