/// <summary> /// Get OriginalString /// </summary> /// <param name="xmlString"></param> /// <returns></returns> public virtual string GetStampingOriginalString(String xmlString) { XMLGet xml = new XMLGet(xmlString); string sealName = SealXPath; var sealNode = xml.SelectSingleNode(sealName).OuterXml; return(new XsltUtil().Transform(sealNode, xsltTFDPath)); }
public virtual string GetQRCodeWithTemplate(XMLGet xml) { string cbbSrc = string.Empty; try { var selloTrunc = xml.SelectSingleNode("cfdi:Comprobante/@Sello").Value; selloTrunc = selloTrunc.Substring(selloTrunc.Length - 8); cbbSrc = URLSAT + "&id=" + xml.SelectSingleNode("cfdi:Comprobante/cfdi:Complemento/tfd:TimbreFiscalDigital/@UUID").Value + "&re=" + xml.SelectSingleNode("cfdi:Comprobante/cfdi:Emisor/@Rfc").Value + "&rr=" + xml.SelectSingleNode("cfdi:Comprobante/cfdi:Receptor/@Rfc").Value + "&tt=" + xml.SelectSingleNode("cfdi:Comprobante/@Total").Value + "&fe=" + selloTrunc; return(cbbSrc); } catch (Exception) { return(cbbSrc); } }