示例#1
0
        protected override void OnDisposing()
        {
            if (Handle != IntPtr.Zero)
            {
                if (ecf != null)
                {
                    if (this.Ativo)
                    {
                        Desativar();
                    }

                    if (ecf.Ativo)
                    {
                        ecf.Desativar();
                    }

                    var oecf = ecf;
                    ecf = null;
                    if (oecf.RFD != null)
                    {
                        oecf.RFD = null;
                    }
                }

                CallDestroy(ACBrRFDInterop.RFD_Destroy);
            }
        }
示例#2
0
 internal Rodape(ACBrECF acbrECF)
     : base(acbrECF)
 {
     this.NotaLegalDF      = new RodapeNotaLegalDF(this);
     this.Restaurante      = new Restaurante(this);
     this.Imposto          = new Imposto(this);
     this.PostoCombustivel = new RodapeAbastecimentos(this);
 }
示例#3
0
        public MainForm()
        {
            InitializeComponent();

            this.acbrECF = new ACBrECF();

            Popular();
        }
示例#4
0
 public DadosReducaoZClass(ACBrECF parent)
     : base(parent)
 {
     CarregaComprovantesNaoFiscais();
     CarregaICMS();
     CarregaRelatoriosGerenciais();
     CarregaISSQN();
     CarregaMeiosDePagamento();
 }
示例#5
0
        public void SetMemoBobinaPropertyName(ACBrECF ecf, string propertyName)
        {
            ECFInfo info;

            if (!this.infos.TryGetValue(ecf.Handle, out info))
            {
                info     = new ECFInfo();
                info.ECF = ecf;
                infos.Add(ecf.Handle, info);
            }

            info.PropertyName = propertyName;
        }
示例#6
0
        public string GetMemoBobinaPropertyName(ACBrECF ecf)
        {
            ECFInfo info;

            if (this.infos.TryGetValue(ecf.Handle, out info))
            {
                return(info.PropertyName);
            }
            else
            {
                return(null);
            }
        }
示例#7
0
        public void SetMemoBobinaControl(ACBrECF ecf, IBindableComponent control)
        {
            ECFInfo info;

            if (!this.infos.TryGetValue(ecf.Handle, out info))
            {
                info     = new ECFInfo();
                info.ECF = ecf;
                infos.Add(ecf.Handle, info);
            }

            info.Control = control;
        }
示例#8
0
        public IBindableComponent GetMemoBobinaControl(ACBrECF ecf)
        {
            ECFInfo info;

            if (this.infos.TryGetValue(ecf.Handle, out info))
            {
                return(info.Control);
            }
            else
            {
                return(null);
            }
        }
示例#9
0
 internal RodapeAbastecimento(ACBrECF parent, IntPtr composedHandle)
     : base(parent, composedHandle)
 {
 }
示例#10
0
 internal ConfigBarras(ACBrECF acbrECF)
     : base(acbrECF)
 {
 }
示例#11
0
 internal Consumidor(ACBrECF acbrECF)
     : base(acbrECF)
 {
 }