Ejemplo n.º 1
0
        public static string ShowPopupReportType(IPrintable printable, HttpServerUtility serverUtility, bool reportWide)
        {
            if (SessionWrapper.Instance.Get != null)
            {
                SessionWrapper.Instance.Get.PrintBag = printable;
            }
            else if (!string.IsNullOrEmpty(QueryString.ViewIDValue))
            {
                SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).PrintBag = printable;
            }

            if (reportWide)
            {
                return
                    (string.Format(
                         "window.open('{0}Popups/{1}', 'Popup', 'status=yes, scrollbars=yes, menubar=no, toolbar=no, location=no, width=1050, height=640, resizable=no');",
                         RelativePathComputer.ComputeRelativePathToRoot(serverUtility), printable.PopupPageName));
            }
            else
            {
                return
                    (string.Format(
                         "window.open('{0}Popups/{1}', 'Popup', 'status=yes, scrollbars=yes, menubar=no, toolbar=no, location=no, width=958, height=640, resizable=no');",
                         RelativePathComputer.ComputeRelativePathToRoot(serverUtility), printable.PopupPageName));
            }
        }
Ejemplo n.º 2
0
        public static string ShowPopup(IDocument document, HttpServerUtility serverUtility)
        {
            if (SessionWrapper.Instance.Get != null)
            {
                SessionWrapper.Instance.Get.DocBag = document;
            }
            else if (!string.IsNullOrEmpty(QueryString.ViewIDValue))
            {
                SessionWrapper.Instance.GetSession(QueryString.ViewIDValue).DocBag = document;
            }

            return(string.Format("window.open('{0}Popups/{1}', 'Popup', 'status=yes, scrollbars=yes, menubar=no, toolbar=no, location=no, width=860, height=640, resizable=yes');",
                                 RelativePathComputer.ComputeRelativePathToRoot(serverUtility), document.PopupPageName));
        }