示例#1
0
 private void vImprimeGuiaEntrada()
 {
     if (this.GuiaEntrada)
     {
         mdlRelatoriosImpressao.clsRelatoriosImpressao obj = new mdlRelatoriosImpressao.clsRelatoriosImpressao(ref m_cls_dba_ConnectionDB, ref m_cls_ter_tratadorErro, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPE, mdlConstantes.Relatorio.GuiaEntrada);
         obj.bImprime(m_bMostrarDialogImpressao);
     }
 }
示例#2
0
 private void vImprimeCertificadoOrigemAnexoIII()
 {
     if (this.CertificadoOrigemAnexoIII)
     {
         mdlRelatoriosImpressao.clsRelatoriosImpressao obj = new mdlRelatoriosImpressao.clsRelatoriosImpressao(ref m_cls_dba_ConnectionDB, ref m_cls_ter_tratadorErro, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPE, mdlConstantes.Relatorio.CertificadoOrigemAnexoIII);
         obj.bImprime(m_bMostrarDialogImpressao);
     }
 }
示例#3
0
 private void m_btImprime_Click(object sender, System.EventArgs e)
 {
     CreateDataBase();
     this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
     mdlConstantes.Relatorio enumRelatorio             = (mdlConstantes.Relatorio)Enum.Parse(mdlConstantes.Relatorio.FaturaComercial.GetType(), m_cbRelatorios.Text);
     mdlRelatoriosImpressao.clsRelatoriosImpressao obj = new mdlRelatoriosImpressao.clsRelatoriosImpressao(ref m_cls_dba_ConnectionBD, ref m_cls_tre_tratadorErro, m_txtPath.Text, Int32.Parse(m_txtIdExportador.Text), m_txtIdCodigo.Text, enumRelatorio);
     m_txtRetorno.Text = obj.bImprime(m_ckShowDialog.Checked).ToString();
     this.Cursor       = System.Windows.Forms.Cursors.Default;
     obj = null;
 }
示例#4
0
 private void imprimeFaturaComercial()
 {
     try
     {
         if (this.FaturaComercial)
         {
             mdlRelatoriosImpressao.clsRelatoriosImpressao obj = new mdlRelatoriosImpressao.clsRelatoriosImpressao(ref m_cls_dba_ConnectionDB, ref m_cls_ter_tratadorErro, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPE, mdlConstantes.Relatorio.FaturaComercial);
             obj.bImprime(m_bMostrarDialogImpressao);
         }
     }
     catch (Exception err)
     {
         m_cls_ter_tratadorErro.trataErro(ref err);
     }
 }
示例#5
0
 private void imprimeBordero()
 {
     try
     {
         if (m_bExisteBordero)
         {
             mdlRelatoriosImpressao.clsRelatoriosImpressao obj = new mdlRelatoriosImpressao.clsRelatoriosImpressao(ref m_cls_dba_ConnectionDB, ref m_cls_ter_tratadorErro, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPE, mdlConstantes.Relatorio.Bordero);
             obj.bImprime(m_bMostrarDialogImpressao);
         }
         else
         {
             mdlMensagens.clsMensagens.ShowInformation("Siscobras", mdlMensagens.clsRepositorioMensagens.GetMensagem(mdlMensagens.Mensagem.mdlPEInfo_clsPEInfo_BDNaoExiste.ToString()), System.Windows.Forms.MessageBoxButtons.OK);
         }
     }
     catch (Exception err)
     {
         m_cls_ter_tratadorErro.trataErro(ref err);
     }
 }