示例#1
0
        public int ObtemQuantidadeTransacoesPendentes(DateTime data, string CupomFiscal)
        {
            int ret = ACBrTEFInterop.TEF_TEFCliSiTef_ObtemQuantidadeTransacoesPendentes(this.Handle, ToOADate(data), ToUTF8(CupomFiscal));

            CheckResult(ret);

            return(ret);
        }
示例#2
0
        public bool ADM(TefTipo gp = TefTipo.Nenhum)
        {
            int ret = ACBrTEFInterop.TEF_ADM(this.Handle, (int)gp);

            CheckResult(ret);

            return(ret == 1);
        }
示例#3
0
        public int DefineMensagemPermanentePinPad(string mensagem)
        {
            int ret = ACBrTEFInterop.TEF_TEFCliSiTef_DefineMensagemPermanentePinPad(this.Handle, ToUTF8(mensagem));

            CheckResult(ret);

            return(ret);
        }
示例#4
0
        public bool CNC(string rede, string nsu, DateTime dataHoraTransacao, decimal valor)
        {
            int ret = ACBrTEFInterop.TEF_CNC(this.Handle, rede, nsu, dataHoraTransacao.ToOADate(), Convert.ToDouble(valor));

            CheckResult(ret);

            return(ret == 1);
        }
示例#5
0
        public bool CRT(decimal valor, string indiceFPG_ECF, string documentoVinculado = "", int moeda = 0)
        {
            int ret = ACBrTEFInterop.TEF_CRT(this.Handle, Convert.ToDouble(valor), ToUTF8(indiceFPG_ECF), ToUTF8(documentoVinculado), moeda);

            CheckResult(ret);

            return(ret == 1);
        }
示例#6
0
        public string LeInformacao(int Identificacao, int Sequencia)
        {
            const int     bufferLen = 256;
            StringBuilder buffer    = new StringBuilder(bufferLen);
            int           ret       = ACBrTEFInterop.TEF_Resp_LeInformacao(this.Handle, this.ComposedHandle, buffer, bufferLen, Identificacao, Sequencia);

            CheckResult(ret);

            return(buffer.ToString());
        }
示例#7
0
        public Resp this[int index]
        {
            get
            {
                if (index >= Count)
                {
                    throw new IndexOutOfRangeException();
                }

                IntPtr composedHandle;
                int    ret = ACBrTEFInterop.TEF_RespostasPendentes_GetItem(this.Handle, this.ComposedHandle, index, out composedHandle);
                CheckResult(ret);

                return(new Resp(this.Parent, composedHandle));
            }
        }
示例#8
0
        public bool CHQ(decimal valor, string indiceFPG_ECF, string documentoVinculado = "", string CMC7 = "",
                        char tipoPessoa = 'F', string documentoPessoa = "", DateTime DataCheque = default(DateTime), string banco = "",
                        string agencia  = "", string agenciaDC        = "", string conta = "", string contaDC = "", string cheque = "",
                        string chequeDC = "", string compensacao      = "")
        {
            if (DataCheque == default(DateTime))
            {
                DataCheque = DateTime.Now;
            }

            int ret = ACBrTEFInterop.TEF_CHQ(this.Handle, Convert.ToDouble(valor), ToUTF8(indiceFPG_ECF), ToUTF8(documentoVinculado), ToUTF8(CMC7),
                                             tipoPessoa, ToUTF8(documentoPessoa), DataCheque.ToOADate(), ToUTF8(banco), ToUTF8(agencia),
                                             ToUTF8(agenciaDC), ToUTF8(conta), ToUTF8(contaDC), ToUTF8(cheque), ToUTF8(chequeDC), ToUTF8(compensacao));

            CheckResult(ret);

            return(ret == 1);
        }
示例#9
0
        public void FinalizarCupom(bool bloqueia = true)
        {
            int ret = ACBrTEFInterop.TEF_FinalizarCupom(this.Handle, bloqueia);

            CheckResult(ret);
        }
示例#10
0
        public void ImprimirTransacoesPendentes()
        {
            int ret = ACBrTEFInterop.TEF_ImprimirTransacoesPendentes(this.Handle);

            CheckResult(ret);
        }
示例#11
0
        public void ConfirmarTransacoesPendentes()
        {
            int ret = ACBrTEFInterop.TEF_ConfirmarTransacoesPendentes(this.Handle);

            CheckResult(ret);
        }
示例#12
0
        public void NCN(string rede, string nsu, string finalizacao, decimal valor = 0M, string documentoVinculado = "")
        {
            int ret = ACBrTEFInterop.TEF_NCN(this.Handle, rede, nsu, finalizacao, Convert.ToDouble(valor), documentoVinculado);

            CheckResult(ret);
        }
示例#13
0
        public void CNF(string rede, string nsu, string finalizacao, string documentoVinculado = "")
        {
            int ret = ACBrTEFInterop.TEF_CNF(this.Handle, rede, nsu, finalizacao, documentoVinculado);

            CheckResult(ret);
        }
示例#14
0
        public void ATV(TefTipo gp = TefTipo.Nenhum)
        {
            int ret = ACBrTEFInterop.TEF_ATV(this.Handle, (int)gp);

            CheckResult(ret);
        }
示例#15
0
        public void AtivarGP(TefTipo gp)
        {
            int ret = ACBrTEFInterop.TEF_AtivarGP(this.Handle, (int)gp);

            CheckResult(ret);
        }
示例#16
0
        public void DesInicializar(TefTipo gp)
        {
            int ret = ACBrTEFInterop.TEF_DesInicializar(this.Handle, (int)gp);

            CheckResult(ret);
        }