Пример #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";
        }
Пример #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";
            }
        }