This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task ImprimeLogo() | |
{ | |
byte[] ESC_Init = { 27, 64 }; | |
byte[] LF = { 10 }; | |
byte[] restPrinter = { (byte)27, (byte)64 }; | |
BluetoothSocket socket = BSocketPadrao; | |
SKBitmap bmp1; | |
using (var stream = Forms.Context.Resources.OpenRawResource(Resource.Drawable.semTitulo)) | |
{ | |
bmp1 = SKBitmap.Decode(stream); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private BluetoothSocket BSocketPadrao { get; set; } | |
public void AbreConexao() | |
{ | |
//Identifica a impressora definada como padrão no configurador do aplicativo | |
System.String ImpPadrao = Application.Current.Properties["ImpPadrao"].ToString(); | |
BluetoothAdapter adaptador = BluetoothAdapter.DefaultAdapter; | |
BluetoothDevice impressora = (from bd in adaptador?.BondedDevices | |
where bd.Name.Contains(ImpPadrao) | |
select bd).FirstOrDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
carregaCondicoesEParcelasSalvas (valorTotal, codCondicaoPagamento, parcelas, modoLeitura = false) { | |
this.criaParcelasAoCarregarGrade = false | |
while (this.listaFormasPagamento === null) { | |
setTimeout(() => { | |
console.log('esperando carregar formas de pagamento') | |
}, 100) | |
} | |
this.condicacaoPagamentoSelecionada = this.listaCondicoesPagamento.filter(c => Number(c.codCondicaoPagamento) === codCondicaoPagamento)[0] | |
this.valorTotal = valorTotal | |
this.modoLeitura = modoLeitura |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<div v-for="arquivo in arquivosCliente" :key="arquivo.id" :v-if="carregouArquivos"> | |
{{arquivo.NomeArquivo}} | |
</div> | |
</div> | |
</template> | |
<script> | |
import * as conexaoCliente from "@/components/AreaCliente/js/ConexaoApiCliente.js" |
NewerOlder