Esempio n. 1
0
        protected void xPage_Load(object sender, EventArgs e)
        {
            var reportUser = ReportUser.Public;
            var start      = DateTime.UtcNow;
            //var report = OfficialsReport.GetReport(reportUser, "VA", "059", "14");
            //var report = OfficialsReport.GetReport(reportUser, "VA", "059");
            var report = OfficialsReport.GetReport(reportUser, "DC");
            //var table =
            //  Offices.GetOfficialsReportData(new OfficialsReportOptions
            //    {
            //      ElectoralLevel = ElectoralLevel.State,
            //      StateCode = "VA"
            //    });
            var elapsed = DateTime.UtcNow - start;

            PlaceHolder placeHolder;

            if (reportUser == ReportUser.Public)
            {
                PublicCss.Visible = true;
                placeHolder       = PublicPlaceHolder;
            }
            else
            {
                NonPublicCss.Visible = true;
                placeHolder          = NonPublicPlaceHolder;
            }

            placeHolder.Controls.Add(report);
        }
Esempio n. 2
0
 private void ShowOfficialsReport() =>
 OfficialsReport.GetReport(Report.SignedInReportUser,
                           ViewState["StateCode"].ToString(), ViewState["CountyCode"].ToString(),
                           ViewState["LocalCode"].ToString()).AddTo(ReportPlaceHolder);
Esempio n. 3
0
 private void ShowOfficialsReport()
 {
     OfficialsReport.GetReport(Report.SignedInReportUser, StateCode, CountyCode, LocalKey)
     .AddTo(ReportPlaceHolder);
 }