Exemplo n.º 1
0
        public static RootNC GetDocumentoElectronicoNC(int DocEntry)
        {
            RootNC root = new RootNC
            {
                cabecera = GetCabecera(DocEntry),
                detalle  = GetListDetalle(DocEntry),
                leyendas = GetLeyenda(DocEntry),
                tributos = GetTributo(DocEntry)
            };

            return(root);
        }
Exemplo n.º 2
0
        public void GuardaJson(RootNC root)
        {
            string json = JsonConvert.SerializeObject(root, Formatting.Indented);

            System.IO.File.WriteAllText(RutaData, json);
        }