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:07 (UTC -04:00)
  • LinkedIn in/alvarocda
View GitHub Profile
<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"
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
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();
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);
public class ComandosImpressora
{
public static byte FONT_24PX = (byte)0x01; //24����������
public static byte FONT_32PX = (byte)0x00;
public static byte FONT_24PX_UNDERLINE = (byte)0x81;
public static byte FONT_32PX_UNDERLINE = (byte)0x80;
public static byte FONT_48PX_HEIGHT = (byte)0x12;
public static byte FONT_48PX_HEIGHT_UNDERLINE = (byte)0x92;
public static byte FONT_48PX_WIDTH = (byte)0x21;
public static byte FONT_48PX_WIDTH_UNDERLINE = (byte)0xA1;
StackLayout stkContainer = new StackLayout
{
MinimumHeightRequest = 90,
HorizontalOptions = LayoutOptions.FillAndExpand,
Orientation = StackOrientation.Horizontal,
TabIndex = index,
StyleId = "stkContainer" + index
};
StackLayout stkIconeArquivo = new StackLayout
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
///
///
///
class ExampleScreen extends StatefulWidget {
///
$ blueman-applet --loglevel debug
blueman-applet version 2.1.2 starting
Stale PID, overwriting
blueman-applet 16.26.31 INFO PluginManager:85 load_plugin: ['KillSwitch', 'ShowConnected', 'AuthAgent', 'AppIndicator', 'NetUsage', 'SerialManager', 'DhcpClient', 'StandardItems', 'Networking', 'TransferService', 'PPPSupport', 'DBusService', 'GameControllerWakelock', 'DiscvManager', 'PowerManager', 'NMPANSupport', 'ExitItem', 'NMDUNSupport', 'StatusIcon', 'Menu', 'RecentConns']
blueman-applet 16.26.31 INFO PluginManager:156 __load_plugin: loading <class 'blueman.plugins.applet.Menu.Menu'>
blueman-applet 16.26.31 INFO PluginManager:156 __load_plugin: loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'>
blueman-applet 16.26.31 DEBUG Base:74 do_g_properties_changed: /org/bluez/hci0 {'Address': '00:1A:7D:DA:71:03', 'AddressType': 'public', 'Name': 'geia-OptiPlex-3070', 'Alias': 'geia-OptiPlex-3070', 'Class': 1835268, 'Powered': True, 'Discoverable': False, 'DiscoverableTimeout': 180, 'Pairable':
Feb 8 16:26:24 geia-OptiPlex-3070 systemd[1]: Starting Bluetooth service...
Feb 8 16:26:24 geia-OptiPlex-3070 bluetoothd[118897]: Bluetooth daemon 5.53
Feb 8 16:26:24 geia-OptiPlex-3070 pulseaudio[116220]: Bluetooth daemon appeared
Feb 8 16:26:24 geia-OptiPlex-3070 systemd[1]: Started Bluetooth service.
Feb 8 16:26:24 geia-OptiPlex-3070 bluetoothd[118897]: Starting SDP server
Feb 8 16:26:24 geia-OptiPlex-3070 dbus-daemon[807]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.218' (uid=0 pid=118897 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
Feb 8 16:26:24 geia-OptiPlex-3070 bluetoothd[118897]: Bluetooth management interface 1.14 initialized
Feb 8 16:26:24 geia-OptiPlex-3070 pulseaudio[116220]: Unknown interface org.freedesktop.DBus.Introspectable found, skipping
Feb 8 16:26:24 geia-OptiPlex-3070 pulseaudio[116220]: Unknown interface org.bluez.AgentManager1 found, skipping
Feb 8 16:26:24 geia-OptiPle
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:connect_profiles() /org/bluez/hci0/dev_20_1B_88_67_DD_3C (all), client :1.79
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:btd_device_set_temporary() temporary 0
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:connect_profiles() Resolving services for /org/bluez/hci0/dev_20_1B_88_67_DD_3C
Feb 9 14:13:07 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:add_whitelist_complete() 20:1B:88:67:DD:3C added to kernel whitelist
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: src/adapter.c:connected_callback() hci0 device 20:1B:88:67:DD:3C connected eir_len 35
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: src/device.c:device_probe_profiles() Probing profiles for device 20:1B:88:67:DD:3C
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: profiles/audio/avrcp.c:avrcp_controller_probe() path /org/bluez/hci0/dev_20_1B_88_67_DD_3C
Feb 9 14:13:09 geia-OptiPlex-3070 bluetoothd[782]: profiles/audio/control.c:contr