Beispiel #1
0
        /// <summary>
        ///	Procedminiento que Cierra la pagina Web
        /// </summary>
        /// <param name="awbPrin"> Pagina </param>
        public static void ProCerrar(Lucky.CFG.Web.SessionControl awbPrin)
        {
            string lsScp;

            lsScp  = "";
            lsScp += "<script language=JavaScript> ";
            lsScp += "window.close();";
            lsScp += "</script>";

            awbPrin.ClientScript.RegisterClientScriptBlock(System.Type.GetType("System.String"), "close", lsScp);
        }
Beispiel #2
0
        /// <summary>
        ///	Procedminiento que lanza PopUp
        /// </summary>
        /// <param name="awbPrin"> Pagina </param>
        /// <param name="asUrl"> Url</param>
        /// <param name="asRutPag"> Direccion </param>
        /// <param name="asRutPag"> Direccion de Pagina Consolidada </param>
        /// <param name="asLeft"> Izquierda del Scream</param>
        /// <param name="asTop"> Tope del Scream</param>
        /// <param name="asWith"> Ancho </param>
        /// <param name="asHeight"> Alto </param>
        /// <param name="asResizable"> Resizable  (yes - no)</param>
        /// <param name="asScrollbars"> Scrollbars (yes - no) </param>
        /// <param name="asToolBar"> ToolBar  (yes - no)</param>
        /// <param name="asStatus"> Status  (yes - no)</param>
        /// <param name="asCreateNewEntry"> Crea una nueva entrada o refresca los resultado sobre la ventana PopUp Levantada  (true - false)</param>
        /// <param name="abRepCon"> Indicador de Reporte Consolidado</param>
        public static void ProPopUp(Lucky.CFG.Web.SessionControl awbPrin, string asUrl, string asRutPag, string asRutPagCon, string asLeft, string asTop, string asWith, string asHeight, string asResizable, string asScrollbars, string asToolBar, string asStatus, string asCreateNewEntry, bool abRepCon)
        {
            string lsScp;

            lsScp  = "";
            lsScp += "<script language=JavaScript> ";
            lsScp += "window.open('" + asUrl + asRutPag + "','PopUp1','left=" + asLeft + ",top=" + asTop + ",width=" + asWith + ",height=" + asHeight + ",resizable=" + asResizable + ",scrollbars=" + asScrollbars + ",toolbar=" + asToolBar + ",status=" + asStatus + "'," + asCreateNewEntry + "); ";

            if (abRepCon)
            {
                lsScp += "window.open('" + asUrl + asRutPagCon + "','PopUp2','left=" + asLeft + ",top=" + asTop + ",width=" + asWith + ",height=" + asHeight + ",resizable=" + asResizable + ",scrollbars=" + asScrollbars + ",toolbar=" + asToolBar + ",status=" + asStatus + "'," + asCreateNewEntry + "); ";
            }

            lsScp += "</script>";

            awbPrin.ClientScript.RegisterClientScriptBlock(System.Type.GetType("System.String"), "PopUp", lsScp);
        }