Exemplo n.º 1
0
 private void m_btComercial_Click(object sender, System.EventArgs e)
 {
     CreateDataBase();
     mdlCriacaoDocumentos.clsCriacao teste = new mdlCriacaoDocumentos.Faturas.clsCriacaoProcesso(ref m_cls_tre_tratadorErro, ref m_cls_dba_ConnectionBD, m_txtPath.Text, Int32.Parse(m_tbIdExportador.Text), ref m_ilBandeiras);
     teste.cadastraDocumento();
     m_txtRetorno.Text = teste.CODIGORETORNO.ToString();
 }
Exemplo n.º 2
0
 private void m_btPe_Click(object sender, System.EventArgs e)
 {
     this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
     this.Refresh();
     mdlCriacaoDocumentos.clsCriacao cls_PeCad = new mdlCriacaoDocumentos.Faturas.clsCriacaoProcesso(ref m_cls_ter_tratadorErro, ref m_cls_dba_ConnectionDB, m_strEnderecoExecutavel, m_nIdExportador, ref m_ilBandeiras);
     cls_PeCad.CadastrarPEDiretoBaseadoCotacaoSemMostrarInterface(m_strIdCodigo);
     this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
     this.Refresh();
     cls_PeCad.cadastraDocumento();
     this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
     this.Refresh();
     if (cls_PeCad.m_bModificado)
     {
         this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
         this.Refresh();
         OnCallCarregaPE(cls_PeCad.CODIGORETORNO);
     }
     cls_PeCad   = null;
     this.Cursor = System.Windows.Forms.Cursors.Default;
 }