/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="reportManifestRefId">The report manifest corresponding to this report.</param> ///<param name="calculationDate">The date on which the report was calculated.</param> ///<param name="submissionNumber">A number that identifies the submission; beginning at 1 and incremented each time a submission is done for a particular report; used to indicate resubmission(s).</param> ///<param name="submissionReason">Reason for the report submission.</param> /// public ReportInfo( string reportManifestRefId, DateTime? calculationDate, int? submissionNumber, SubmissionReason submissionReason ) : base(ReportingDTD.REPORTINFO) { this.ReportManifestRefId = reportManifestRefId; this.CalculationDate = calculationDate; this.SubmissionNumber = submissionNumber; this.SetSubmissionReason( submissionReason ); }
///<summary>Sets the value of the <c><ReportInfo></c> element.</summary> /// <param name="ReportManifestRefId">The report manifest corresponding to this report.</param> /// <param name="CalculationDate">The date on which the report was calculated.</param> /// <param name="SubmissionNumber">A number that identifies the submission; beginning at 1 and incremented each time a submission is done for a particular report; used to indicate resubmission(s).</param> /// <param name="SubmissionReason">Reason for the report submission.</param> ///<remarks> /// <para>This form of <c>setReportInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ReportInfo</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetReportInfo(string ReportManifestRefId, DateTime?CalculationDate, int?SubmissionNumber, SubmissionReason SubmissionReason) { RemoveChild(ReportingDTD.SIF_REPORTOBJECT_REPORTINFO); AddChild(ReportingDTD.SIF_REPORTOBJECT_REPORTINFO, new ReportInfo(ReportManifestRefId, CalculationDate, SubmissionNumber, SubmissionReason)); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="reportManifestRefId">The report manifest corresponding to this report.</param> ///<param name="calculationDate">The date on which the report was calculated.</param> ///<param name="submissionNumber">A number that identifies the submission; beginning at 1 and incremented each time a submission is done for a particular report; used to indicate resubmission(s).</param> ///<param name="submissionReason">Reason for the report submission.</param> /// public ReportInfo(string reportManifestRefId, DateTime?calculationDate, int?submissionNumber, SubmissionReason submissionReason) : base(ReportingDTD.REPORTINFO) { this.ReportManifestRefId = reportManifestRefId; this.CalculationDate = calculationDate; this.SubmissionNumber = submissionNumber; this.SetSubmissionReason(submissionReason); }
/// <summary> /// Sets the value of the <c><SubmissionReason></c> element. /// </summary> /// <param name="val">A SubmissionReason object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Reason for the report submission."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetSubmissionReason(SubmissionReason val) { SetField(ReportingDTD.REPORTINFO_SUBMISSIONREASON, val); }
/// <summary> /// Sets the value of the <c><SubmissionReason></c> element. /// </summary> /// <param name="val">A SubmissionReason object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Reason for the report submission."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetSubmissionReason( SubmissionReason val ) { SetField( ReportingDTD.REPORTINFO_SUBMISSIONREASON, val ); }
///<summary>Sets the value of the <c><ReportInfo></c> element.</summary> /// <param name="ReportManifestRefId">The report manifest corresponding to this report.</param> /// <param name="CalculationDate">The date on which the report was calculated.</param> /// <param name="SubmissionNumber">A number that identifies the submission; beginning at 1 and incremented each time a submission is done for a particular report; used to indicate resubmission(s).</param> /// <param name="SubmissionReason">Reason for the report submission.</param> ///<remarks> /// <para>This form of <c>setReportInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>ReportInfo</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetReportInfo( string ReportManifestRefId, DateTime? CalculationDate, int? SubmissionNumber, SubmissionReason SubmissionReason ) { RemoveChild( ReportingDTD.SIF_REPORTOBJECT_REPORTINFO); AddChild( ReportingDTD.SIF_REPORTOBJECT_REPORTINFO, new ReportInfo( ReportManifestRefId, CalculationDate, SubmissionNumber, SubmissionReason ) ); }