예제 #1
0
        public static string Token(string intNumero)
        {
            string chave = "5115107371514600019765065000003148112893003" + Convert.ToString(Funcoes.DigitoModulo11("5115107371514600019765065000003148112893003"));
            string token;

            token  = "chNFe=" + chave;
            token += "&nVersao=100";
            token += "&tpAmb=2";
            token += "&cDest=99999999000191";
            string data = Convert.ToString(DateTime.UtcNow);

            token += "&dhEmi=323031352d30312d32305431373a30303a34392d30323a3030&vNF=1.00&vICMS=0.00&digVal=2f4a703477714e6d6e4e646d31776b64743936655a486b65354f513d&cIdToken=000001&cHashQRCode=ecc4f0e7e612456f2e3521768bd572b6f0eae240";
            return(token);
        }
예제 #2
0
        private void ButConsNfc_Click(object sender, EventArgs e)
        {
            WSmt   ConsNfe = new WSmt();
            string chave   = "5115107371514600019765065000003346199999999" + Convert.ToString(Funcoes.DigitoModulo11("5115107371514600019765065000003346199999999"));

            // MessageBox.Show(chave);
            ConsNfe.MontarXmlConsSit(chave);
            ConsNfe.WsConsNfe();
            XmlEnv.Text   = ConsNfe.XmlEnv();
            RetSefaz.Text = ConsNfe.XmlRet();
        }