Ejemplo n.º 1
0
        /// <summary>
        /// Gets the URL for navigating to a post election audit report page.
        /// </summary>
        /// <param name="type">The type of post election audit report to navigate to.</param>
        /// <returns>The URL for the post election audit report indicated by <paramref name="type"/>.</returns>
        public static string GetPostElectionAuditReportUrl(AuditReportType type)
        {
            // group audit report types
            switch (type)
            {
            case AuditReportType.IdrInadequateResponse:
            case AuditReportType.IdrAdditionalInadequateResponse:
                type = AuditReportType.InitialDocumentationRequest;
                break;

            case AuditReportType.DarInadequateResponse:
            case AuditReportType.DarAdditionalInadequateResponse:
                type = AuditReportType.DraftAuditReport;
                break;
            }
            return(string.Format("{0}?{1}", PageUrlManager.PostElectionPageUrl, QueryStringManager.MakeQueryString(auditReportType: type).ToQueryString(HttpContext.Current != null ? HttpContext.Current.Server : null)));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Temporarily redirects the user of a web session to an intermediary page for additional processing before continuing on. Specifies whether execution of the current page should terminate.
        /// </summary>
        /// <param name="response">The <see cref="HttpResponse"/> object for sending data to a client.</param>
        /// <param name="url">The intermediary page URL.</param>
        public static void Pit(this HttpResponse response, string url)
        {
            HttpContext context = HttpContext.Current;

            response.Redirect(url, QueryStringManager.MakeQueryString(returnUrl: context.Server.UrlEncode(context.Request.Url.PathAndQuery)));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the URL for requesting an audit review extension.
 /// </summary>
 /// <param name="type">The type of extension being requested.</param>
 /// <param name="number">The number of the audit review response for which an extension is to be requested.</param>
 /// <returns>The URL for requesting an extension to the audit review type and number specified.</returns>
 public static string GetExtensionRequestUrl(ExtensionType type, byte number)
 {
     return(string.Format("{0}?{1}", PageUrlManager.ExtensionRequestPageUrl, QueryStringManager.MakeQueryString(extensionType: type, reviewNumber: number).ToQueryString(HttpContext.Current != null ? HttpContext.Current.Server : null)));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets the calendar item ID for an audit review.
 /// </summary>
 /// <param name="committeeID">The ID of the audited committee.</param>
 /// <param name="reviewNumber">The number of the audit review.</param>
 /// <returns>The calendar item ID for the specified audit review.</returns>
 private static NameValueCollection GetAuditReviewItemID(char committeeID, byte reviewNumber)
 {
     return(QueryStringManager.MakeQueryString(committeeID: committeeID, reviewNumber: reviewNumber));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the calendar item ID for a filing disclosure statement.
 /// </summary>
 /// <param name="statementNumber">The number of the statement.</param>
 /// <returns>The calendar item ID for the specified statement.</returns>
 private static NameValueCollection GetStatementReviewItemID(byte statementNumber)
 {
     return(QueryStringManager.MakeQueryString(statementNumber: statementNumber));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Gets the calendar item ID for a post election audit item.
 /// </summary>
 /// <param name="type">The item's associated post election audit report type.</param>
 /// <returns>The calendar item ID for the specified post election audit type.</returns>
 private static NameValueCollection GetPostElectionAuditItemID(AuditReportType type)
 {
     return(QueryStringManager.MakeQueryString(auditReportType: type));
 }