// ReSharper disable MemberCanBePrivate.Global
        // ReSharper disable MemberCanBeProtected.Global
        // ReSharper disable UnusedMember.Global
        // ReSharper disable UnusedMethodReturnValue.Global
        // ReSharper disable UnusedAutoPropertyAccessor.Global
        // ReSharper disable UnassignedField.Global

        #endregion ReSharper disable

        public static Control GetReport(string electionKey, string countyCode, string district,
                                        string place, string elementary, string secondary, string unified, string cityCouncil,
                                        string countySupervisors, string schoolDistrictDistrict)
        {
            var reportObject = new BallotReferendumReportResponsive();

            return(reportObject.GenerateReport(electionKey, countyCode, district, place,
                                               elementary, secondary, unified, cityCouncil, countySupervisors, schoolDistrictDistrict));
        }
Exemple #2
0
        //private void CreateJurisdictionHeading(string heading)
        //{
        //  var tr = new HtmlTableRow().AddTo(_MainHtmlTable, "trBallotSeparator");
        //  new HtmlTableCell {ColSpan = 2, InnerHtml = heading}.AddTo(tr,
        //    "tdBallotSeparator");
        //}

        //private void ReportOneReferendum(Control container, DataRow referendum)
        //{
        //  //var tr = new HtmlTableRow().AddTo(_MainHtmlTable, "trBallotReferendumHeading");
        //  //var td = new HtmlTableCell {ColSpan = 2}.AddTo(tr,
        //  //  "tdBallotReferendumHeading");
        //  //CreateReferendumAnchor(referendum)
        //  //  .AddTo(td);

        //  //tr = new HtmlTableRow().AddTo(_MainHtmlTable, "trBallotReferendum");
        //  //var referendumDesc = string.IsNullOrWhiteSpace(referendum.ReferendumDesc())
        //  //  ? referendum.ReferendumTitle()
        //  //  : referendum.ReferendumDesc();
        //  //referendumDesc = referendumDesc.ReplaceNewLinesWithBreakTags();
        //  //new HtmlTableCell {InnerHtml = referendumDesc}.AddTo(tr, "tdBallotReferendum");

        //  //td = new HtmlTableCell {Align = "right"}.AddTo(tr, "tdBallotReferendumYN");
        //  //var checkboxTable = new HtmlTable {CellSpacing = 0}.AddTo(td,
        //  //  "tableBallotReferendumYN");

        //  //tr = new HtmlTableRow().AddTo(checkboxTable, "trBallotReferendumYN");
        //  //new HtmlTableCell {InnerHtml = "Yes"}.AddTo(tr, "tdBallotReferendumYN");
        //  //td = new HtmlTableCell {Align = "right"}.AddTo(tr,
        //  //  "tdBallotReferendumCheckBox");
        //  //new HtmlInputCheckBox().AddTo(td);

        //  //tr = new HtmlTableRow().AddTo(checkboxTable, "trBallotReferendumYN");
        //  //new HtmlTableCell {InnerHtml = "No"}.AddTo(tr, "tdBallotReferendumYN");
        //  //td = new HtmlTableCell {Align = "right"}.AddTo(tr,
        //  //  "tdBallotReferendumCheckBox");
        //  //new HtmlInputCheckBox().AddTo(td);
        //}

        //private static HtmlAnchor CreateReferendumAnchor(DataRow referendum)
        //{
        //  var a = new HtmlAnchor
        //    {
        //      HRef =
        //        UrlManager.GetReferendumPageUri(referendum.ElectionKey(),
        //          referendum.ReferendumKey())
        //          .ToString(),
        //      Title = "Referendum Description, Details and Full Text",
        //      InnerHtml = referendum.ReferendumTitle()
        //        .ReplaceNewLinesWithBreakTags()
        //    };
        //  return a;
        //}

        #endregion Private

        #region Public

        #region ReSharper disable

        // ReSharper disable MemberCanBePrivate.Global
        // ReSharper disable MemberCanBeProtected.Global
        // ReSharper disable UnusedMember.Global
        // ReSharper disable UnusedMethodReturnValue.Global
        // ReSharper disable UnusedAutoPropertyAccessor.Global
        // ReSharper disable UnassignedField.Global

        #endregion ReSharper disable

        public static Control GetReport(string electionKey, string countyCode)
        {
            var reportObject = new BallotReferendumReportResponsive();

            return(reportObject.GenerateReport(electionKey, countyCode));
        }