Exemple #1
0
 private void buttonOrdemServico_Click(object sender, EventArgs e)
 {
     if (new Orcamento_ContratadoTableAdapter().ExisteOrcamentoContratado((int)new OrcamentoTableAdapter().ObterSequencialOrcamento(MskTxtBoxCodigo.Text)).HasValue)
     {
         try
         {
             new Orcamento_ContratadoTableAdapter().AtualizarOrdemServiço("S", (int)new Orcamento_ContratadoTableAdapter().ObterSequencialOrcamentoContratado((int)new OrcamentoTableAdapter().ObterSequencialOrcamento(MskTxtBoxCodigo.Text)));
             Form frm = new SCOOP.GUI.Relatorio("OrdemServico", MskTxtBoxCodigo.Text);
             frm.ShowDialog();
         }
         catch (Exception ex)
         {
             MessageBox.Show("Erro ao Gerar Ordem de Serviço!", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
        private void button3_Click(object sender, EventArgs e)
        {
            Form frm = new SCOOP.GUI.Relatorio("Orcamento", MskTxtBoxCodigo.Text);

            frm.ShowDialog();
        }