Esempio n. 1
0
        protected void btnContasRecebidas_Click(object sender, EventArgs e)
        {
            string nomeRel;

            RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
            nomeRel = rel.FaturaRecebida(int.Parse(cmbListaObras.SelectedValue.ToString()), int.Parse(cmbAno.Text), int.Parse(cmbMesInicial.Text), int.Parse(cmbMesFinal.Text));
            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>");
        }
Esempio n. 2
0
        protected void btnRelPermissaoGrupo_Click(object sender, EventArgs e)
        {
            string nomeRel;

            RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
            nomeRel = rel.RelatorioUsuariosAcessos();
            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>");
        }
Esempio n. 3
0
        protected void btnResumoPreventiva_Click(object sender, EventArgs e)
        {
            //myDoc = ImprimirAgendaPreventiva.ImprimeAgenda(table, cmbObra.SelectedItem.ToString(), txtDataInicial.Text.ToString(), txtDataFinal.Text.ToString());

            RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
            string nomeRel = rel.ManutencaoPreventiva(int.Parse(cmbObra.SelectedItem.Value.ToString()), DateTime.Parse(txtDataInicial.Text), DateTime.Parse(txtDataFinal.Text));

            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>");
        }
Esempio n. 4
0
        protected void btnImprimir_Click(object sender, EventArgs e)
        {
            string   nomeRel = "";
            DateTime data    = (DateTime)Session["data"];

            RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
            nomeRel = rel.CalendarioPreventivaANO(int.Parse(cmbObra.SelectedValue.ToString()), data.ToShortDateString(), Session["coTipoAtividade"].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>");
        }
Esempio n. 5
0
        protected void btnImprimir_Click(object sender, EventArgs e)
        {
            string nomeRel = "";

            if (rblNumPreventPeriodo.Checked == true)
            {
                string numPreventiva = txtNumPreventiva.Text;

                RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
                nomeRel = rel.ManutencaoPreventivaNumPreventiva(txtNumPreventiva.Text, txtDataInicial.Text, txtDataFinal.Text);
            }
            if (rblObraPeriodo.Checked == true)
            {
                string numPreventiva = txtNumPreventiva.Text;

                RelatoriosReportServer.clRelatorios rel = new RelatoriosReportServer.clRelatorios();
                nomeRel = rel.ManutencaoPreventivaNumPreventivaObra(int.Parse(cmbObra.SelectedValue.ToString()), TxtdtInicialObra.Text, txtDtFinalObra.Text, cmbObra.SelectedItem.Text);
            }


            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>");
        }