Exemplo n.º 1
0
        public Nota(INFeContexto nFeContexto)
        {
            this.nFeContexto = nFeContexto;

            ide = new IDE();
            emit = new EMIT();
            dest = new DEST();
            detList = new List<DET>();
            total = new TOTAL();
            transp = new TRANSP();
            cobr = new COBR();

            xmlString = new StringBuilder();

            if (this.nFeContexto.Producao)
                ide.tpAmb = "1";
            else
                ide.tpAmb = "2";
        }
Exemplo n.º 2
0
        public Nota(INFeContexto nFeContexto)
        {
            this.nFeContexto = nFeContexto;

            ide     = new IDE();
            emit    = new EMIT();
            dest    = new DEST();
            detList = new List <DET>();
            total   = new TOTAL();
            transp  = new TRANSP();
            cobr    = new COBR();

            xmlString = new StringBuilder();

            if (this.nFeContexto.Producao)
            {
                ide.tpAmb = "1";
            }
            else
            {
                ide.tpAmb = "2";
            }
        }