public string TrataRetornoManifestacao(string sTipoRegistro) { try { if (this.sXMLretorno != "") { objRet = SerializeClassToXml.DeserializeClasseString <belRetEventoCancelamento>(this.sXMLretorno); if (objRet.cStat == "128") { if (objRet.retEvento.infEvento.cStat == "135") { daoUtil.SetStatusManifestacao(this.xChaveNFe, sTipoRegistro); this.stManifesto = sTipoRegistro; } } return(string.Format("NFe: {0} - Status: {1} - Motivo: {2}{3}", this.xNumero, objRet.cStat, objRet.retEvento != null? objRet.retEvento.infEvento.xMotivo: objRet.xMotivo, Environment.NewLine)); } else { return("Nenhum evento registrado."); } } catch (Exception ex) { throw ex; } }
public string TrataRetornoManifestacao(string sTipoRegistro) { try { if (this.sXMLretorno != "") { objRet = SerializeClassToXml.DeserializeClasseString<belRetEventoCancelamento>(this.sXMLretorno); if (objRet.cStat == "128") if (objRet.retEvento.infEvento.cStat == "135") { daoUtil.SetStatusManifestacao(this.xChaveNFe, sTipoRegistro); this.stManifesto = sTipoRegistro; } return string.Format("NFe: {0} - Status: {1} - Motivo: {2}{3}", this.xNumero, objRet.cStat, objRet.retEvento != null? objRet.retEvento.infEvento.xMotivo: objRet.xMotivo, Environment.NewLine); } else { return "Nenhum evento registrado."; } } catch (Exception ex) { throw ex; } }