Skip to content

Instantly share code, notes, and snippets.

View Alvarocda's full-sized avatar
🎯
Focusing

Álvaro Claro Alvarocda

🎯
Focusing
  • Cuiabá, Mato Grosso, Brasil
  • 15:06 (UTC -04:00)
  • LinkedIn in/alvarocda
View GitHub Profile
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);
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();
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
<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"