예제 #1
0
        private void btnConsultarRecibo_Click(object sender, EventArgs e)
        {
            if (edtNumRec.Text != "")
            {
                mmXml.Text = spdNFe.ConsultarRecibo(edtNumRec.Text);

                edtNumProt.Text = LerTagXML(mmXml.Text, "<nProt", 20);
            }
        }
예제 #2
0
 private void BtnConsultarRecibo_Click(object sender, EventArgs e)
 {
     try
     {
         txtXML.Text             = spdNFe.ConsultarRecibo(txtNumeroRecibo.Text);
         txtNumeroProtocolo.Text = GetTagValueXml(txtXML.Text, "nProt");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }