Ejemplo n.º 1
0
        protected string PermaLink(PrintingOptions po, FlightQuery fq)
        {
            if (fq == null)
            {
                throw new ArgumentNullException(nameof(fq));
            }
            string szStudent = util.GetStringParam(Request, "u");

            return(PrintingOptions.PermaLink(fq, po, Request.Url.Host, Request.Url.Scheme, (nvc) =>
            {
                if (!String.IsNullOrEmpty(szStudent))
                {
                    nvc["u"] = szStudent;
                }
            }).ToString());
        }
Ejemplo n.º 2
0
        protected void ResolvePrintLink()
        {
            if (!ckEndorsements.Checked)
            {
                ckIncludeEndorsementImages.Checked = false;
            }
            PrintingOptions po = new PrintingOptions()
            {
                Sections = new PrintingSections()
                {
                    Endorsements     = ckEndorsements.Checked ? (ckIncludeEndorsementImages.Checked ? PrintingSections.EndorsementsLevel.DigitalAndPhotos : PrintingSections.EndorsementsLevel.DigitalOnly) : PrintingSections.EndorsementsLevel.None,
                    IncludeCoverPage = ckIncludeCoverSheet.Checked,
                    IncludeFlights   = true,
                    IncludeTotals    = ckTotals.Checked
                }
            };

            lnkPrintView.NavigateUrl = PrintingOptions.PermaLink(Restriction, po, Request.Url.Host, Request.Url.Scheme).ToString();
        }