コード例 #1
0
        private void btnGerarPdf_Click(object sender, EventArgs e)
        {
            frmRelatorioOperacao frm = new frmRelatorioOperacao();

            frm.formato    = "pdf";
            frm.status     = cbStatus.Text;
            frm.cliente    = txtCliente.Text;
            frm.operacao   = txtServico.Text;
            frm.dataInicio = dtInicio.Value.ToShortDateString();
            frm.dataFim    = dtFim.Value.ToShortDateString();

            frm.ShowDialog();
            frm.Close();
            frm.Dispose();
        }
コード例 #2
0
        //Filtrar
        private void button1_Click(object sender, EventArgs e)
        {
            frmRelatorioOperacao frm = new frmRelatorioOperacao();

            frm.status     = cbStatus.Text;
            frm.cliente    = txtCliente.Text;
            frm.operacao   = txtServico.Text;
            frm.dataInicio = dtInicio.Value.ToShortDateString();
            frm.dataFim    = dtFim.Value.ToShortDateString();
            frm.ns         = txtNs.Text;
            frm.produto    = txtItem.Text;

            frm.ShowDialog();
            frm.Close();
            frm.Dispose();
        }