示例#1
0
        protected void btnRelatorioOS_Click1(object sender, EventArgs e)
        {
            RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
            string nomeRel = rel.EquipamentoOS(ViewState["IdEquipamentoObra"].ToString());

            this.Response.Write("<SCRIPT language=javascript>window.open('../" + nomeRel + "', '_blank', 'width=850, height=600, menubar=no, resizable=yes, scrollbars=yes, top=35, left=105');</SCRIPT>");
        }
示例#2
0
        protected void grdPesquisa_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            string p;

            switch (e.CommandName.ToLower().Trim())
            {
            case "lnk":
                ViewState.Add("IdEquipamentoObra", e.CommandArgument.ToString());
                DataTable dt = tblOS.RetornaOSEquipamentoObra(Global.GetConnection(), e.CommandArgument.ToString());

                grvOS.DataSource = dt;
                grvOS.DataBind();
                ModalPopupExtender3.Show();

                break;

            case "historico":
                RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
                string nomeRel = rel.EquipamentoOS(e.CommandArgument.ToString());
                this.Response.Write("<SCRIPT language=javascript>window.open('../" + nomeRel + "', '_blank', 'width=850, height=600, menubar=no, resizable=yes, scrollbars=yes, top=35, left=105');</SCRIPT>");

                break;
            }
        }