Added:
trunk/uniBaterFrente/
trunk/uniBaterFrente/ClassDiagram1.cd
trunk/uniBaterFrente/ECFSWEDA.cs
trunk/uniBaterFrente/Form1.Designer.cs
trunk/uniBaterFrente/Form1.cs
trunk/uniBaterFrente/Form1.resx
trunk/uniBaterFrente/MySql.cs
trunk/uniBaterFrente/Program.cs
trunk/uniBaterFrente/Properties/
trunk/uniBaterFrente/Properties/AssemblyInfo.cs
trunk/uniBaterFrente/Properties/DataSources/
trunk/uniBaterFrente/Properties/Resources.Designer.cs
trunk/uniBaterFrente/Properties/Resources.resx
trunk/uniBaterFrente/Properties/Settings.Designer.cs
trunk/uniBaterFrente/Properties/Settings.settings
trunk/uniBaterFrente/bin/
trunk/uniBaterFrente/bin/Debug/
trunk/uniBaterFrente/bin/Debug/MySql.Data.dll (contents, props changed)
trunk/uniBaterFrente/bin/Debug/SWC.INI
trunk/uniBaterFrente/bin/Debug/img/
trunk/uniBaterFrente/bin/Debug/img/Thumbs.db (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/bg.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/blockClientes.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnAbreCupom.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnAbreCupom2.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnAbreCupoma.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnAbreCupomap.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnAdd.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnAddH.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnCupomFiscal.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnCupomFiscalHover.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnFechaCupom.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnFechaCupomh.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnIserir.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnIserirH.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnNotaFiscal.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnNotaFiscalHover.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnOrcamento.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/btnOrcamentoHover.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/byteiapp.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/byteiapp1.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/equal.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/esqTxt.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/multiplica.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/topo.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/img/total.png (contents, props changed)
trunk/uniBaterFrente/bin/Debug/uniBaterFrenteLoja.exe (contents, props changed)
trunk/uniBaterFrente/bin/Debug/uniBaterFrenteLoja.pdb (contents, props changed)
trunk/uniBaterFrente/bin/Debug/uniBaterFrenteLoja.vshost.exe (contents, props changed)
trunk/uniBaterFrente/combo.cs
trunk/uniBaterFrente/conexao.cs
trunk/uniBaterFrente/img/
trunk/uniBaterFrente/img/Thumbs.db (contents, props changed)
trunk/uniBaterFrente/img/bg.png (contents, props changed)
trunk/uniBaterFrente/img/btnAbreCupom.png (contents, props changed)
trunk/uniBaterFrente/img/btnAbreCupom2.png (contents, props changed)
trunk/uniBaterFrente/img/topo.png (contents, props changed)
trunk/uniBaterFrente/lion.txt
trunk/uniBaterFrente/login.Designer.cs (contents, props changed)
trunk/uniBaterFrente/login.cs
trunk/uniBaterFrente/login.resx
trunk/uniBaterFrente/obj/
trunk/uniBaterFrente/obj/Debug/
trunk/uniBaterFrente/obj/Debug/Refactor/
trunk/uniBaterFrente/obj/Debug/ResolveAssemblyReference.cache (contents, props changed)
trunk/uniBaterFrente/obj/Debug/TempPE/
trunk/uniBaterFrente/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll (contents, props changed)
trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.Form1.resources (contents, props changed)
trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.Properties.Resources.resources (contents, props changed)
trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.csproj.GenerateResource.Cache (contents, props changed)
trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.exe (contents, props changed)
trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.login.resources (contents, props changed)
trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.pdb (contents, props changed)
trunk/uniBaterFrente/obj/uniBaterFrenteLoja.csproj.FileList.txt
trunk/uniBaterFrente/uniBaterFrenteLoja.csproj
trunk/uniBaterFrente/uniBaterFrenteLoja.sln
trunk/uniBaterFrente/uniBaterFrenteLoja.suo (contents, props changed)
Removed:
trunk/Samples/
trunk/teste/
Log:
Added: trunk/uniBaterFrente/ClassDiagram1.cd
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/ClassDiagram1.cd Wed Apr 9 14:18:22 2008
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<ClassDiagram MajorVersion="1" MinorVersion="1">
+ <Font Name="Tahoma" Size="8.25" />
+ <Class Name="uniBaterFrenteLoja.Form1">
+ <Position X="0.5" Y="0.5" Width="2.75" />
+ <TypeIdentifier>
+ <FileName>Form1.cs</FileName>
+ <HashCode>/0AIo1EDJGABA1IACAiERQBKAxVEQDwQsQT0jChAADE=</HashCode>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="uniBaterFrenteLoja.conexao">
+ <Position X="3.5" Y="0.5" Width="1.75" />
+ <TypeIdentifier>
+ <FileName>conexao.cs</FileName>
+ <HashCode>AAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAA=</HashCode>
+ </TypeIdentifier>
+ </Class>
+ <Class Name="uniBaterFrenteLoja.combo">
+ <Position X="3.5" Y="2" Width="1.75" />
+ <TypeIdentifier>
+ <FileName>combo.cs</FileName>
+ <HashCode>ABAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAEAAAA=</HashCode>
+ </TypeIdentifier>
+ </Class>
+</ClassDiagram>
\ No newline at end of file
Added: trunk/uniBaterFrente/ECFSWEDA.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/ECFSWEDA.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,705 @@
+using System;
+using System.Runtime.InteropServices;
+using System.Windows.Forms;
+using System.Drawing;
+using System.ComponentModel;
+using System.Data;
+using System.Reflection.Emit;
+using System.Collections;
+using System.Text;
+
+
+
+ namespace SWEDA
+{
+
+ public class ECFSWEDA
+ {
+
+
+ #region Fun��es de Inicializa��o
+ //**********************************************************//
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AlteraSimboloMoeda(string SimbMoeda);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaAliquota(string Aliq, int ICMS_ISS);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NomeiaTotalizadorNaoSujeitoIcms(int Indice, string Totaliz);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaHorarioVerao();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaArredondamento();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaTruncamento();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ApagaTabelaNomesRelatoriosGerenciais();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ApagaTabelaAliquotas();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ApagaTabelaNomesFormasdePagamento();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ApagaTabelaNomesNaoFiscais();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaOperador(string oper);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RetornaIndiceComprovanteNaoFiscal(string indice);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_Registry_PathMFD(StringBuilder Caminho);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_Registry_Path(StringBuilder caminho);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RetornaPath(StringBuilder RetorCaminho);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_Registry_Default();
+
+ #endregion
+
+
+ #region Fun��es do Cupom Fiscal
+ //******************************************************************/
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreCupom(string CGC_CPF);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VendeItem(string Codigo, string Descricao, string Aliquota,
+ string TipoQuantidade, string Quantidade, int CasasDecimais,
+ string ValorUnitario, string TipoDesconto, string Desconto);
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VendeItemDepartamento(string Codigo, string Descricao,
+ string Aliquota, string ValorUnitario, string Quantidade, string Acrescimo,
+ string Desconto, string IndiceDepartamento, string UnidadeMedida);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_CancelaItemAnterior();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_CancelaItemGenerico(string NumeroItem);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_CancelaCupom();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FechaCupomResumido(string FormaPagamento, string Mensagem);
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EfetuaFormaPagamentoMFD(string FormaPag, string ValorFPag, string Parcelas, string NomeFPag);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FechaCupom(string FormaPagamento, string AcrescimoDesconto,
+ string TipoAcrescimoDesconto, string ValorAcrescimoDesconto, string ValorPago, string Mensagem);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_IniciaFechamentoCupom(string AcrescimoDesconto,
+ string TipoAcrescimoDesconto, string ValorAcrescimoDesconto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EfetuaFormaPagamento(string FormaPagamento, string ValorFormaPagamento);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EfetuaFormaPagamentoDescricaoForma(string FormaPagamento,
+ string ValorFormaPagamento, string Descricao);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_TerminaFechamentoCupom(string Mensagem);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_Sangria(string Valor);
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EstornoFormasPagamento(string FormaOrigem, string FormaDestino, string Valor);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AumentaDescricaoItem(string Descricao);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_UsaUnidadeMedida(string UnidadeMedida);
+
+ [DllImport("CONVECF.DLL")]
+ public static extern int ECF_RetornaCOO(StringBuilder Ret);
+
+ [DllImport("CONVECF.DLL")]
+ public static extern int ECF_ZAUTO();
+
+ [DllImport("CONVECF.DLL")]
+ public static extern int ECF_FechamentoDoDia();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FechaPortaSerial();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbrePortaSerial();
+
+
+
+ #endregion
+
+
+ #region Retornos
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RetornoImpressora(ref int ACK, ref int ST1, ref int ST2);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RetornoImpressora(ref int ACK, ref int ST1, ref int ST2, ref int ST3);
+
+
+ #endregion
+
+
+ #region Fun��es Leitura ECF
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_CapturaDocumentos(string TipoDownload, string ArquivoDestino, string COOInicial, string COOFinal, string Mostra);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_DownloadMF(string Arquivo);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_DownloadMFD(string Arquivo, string TipoDownload, string ParametroInicial, string ParametroFinal, string UsuarioECF);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaZPendente(StringBuilder zPendente);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_Suprimento(string Valor, string FormaPag);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ReducaoZ(string Data, string Hora);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_LeituraX();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ImprimeConfiguracoesImpressora();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaImpressoraLigada();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaModeloEcf();
+
+ [DllImport("CONVECF.DLL")]
+ public static extern int ECF_LeituraMemoriaFiscalData(string ZDataInicial, string ZDataFinal);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_LeituraMemoriaFiscalReducao(string ZCRZInicial, string ZCRZFinal);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaFormaPagamentoMFD(string FormaPagto, string OperacaoTef);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NomeiaRelatorioGerencialMFD(string Indice, string Descricao);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_CupomAdicionalMFD();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_LeituraMemoriaFiscalSerialDataMFD(string DataIni, string DataFim, string Flag);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_LeituraMemoriaFiscalSerialData(string ZDataInicial, string ZDataFinal);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NumeroSerie(StringBuilder NumeroSerie);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NumeroSerieMFD(StringBuilder NumeroSerie);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VersaoFirmware(StringBuilder VersaoFirmware);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VersaoFirmwareMFD(StringBuilder VersaoFirmware);
+
+ #endregion
+
+ // Relatorio Sintegra
+
+ #region Relatorio Sintegra
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RegistrosTipo60();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RelatorioTipo60Mestre();
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RelatorioTipo60Analitico();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RelatorioTipo60AnaliticoMFD();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RelatorioSintegraMFD(string Arquivo, string MesInic, string AnoInic,string Razao, string Endereco, string Numero,string Complemento,
+ string Bairro, string Cidade, string CEP, string Telefone,string Fax, string Contato);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_DataHoraReducao(StringBuilder Data, StringBuilder Hora);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VersaoDll(StringBuilder Versao);
+
+ #endregion
+
+
+ #region Fun��es Gaveta
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AcionaGaveta();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaEstadoGavetaStr(string EstadoGav);
+
+ #endregion
+
+
+ #region Retornos e Status do ECF
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ContadorCupomFiscalMFD(StringBuilder CuponsEmitidos);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NumeroCuponsCancelados(StringBuilder NumeroCancelamentos);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NumeroOperacoesNaoFiscais(StringBuilder NumeroOperacoes);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_NumeroIntervencoes(StringBuilder NumeroIntervencoes);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ContadoresTotalizadoresNaoFiscais(StringBuilder Contadores);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_GrandeTotal(StringBuilder GrandeTotal);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_MinutosLigada(StringBuilder Minutos);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_DataMovimento(StringBuilder Data);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_DataMovimentoUltimaReducaoMFD(StringBuilder DataMovimentoUltimaRZ);
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaEstadoGaveta(out int EstadoGav);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_MapaResumoMFD();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_MapaResumo();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RetornaTipoEcf(string Tipo);
+
+ //Status
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_StatusRelatorioGerencial(StringBuilder Status);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_StatusEstendidoMFD(System.Int32 iStatus);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_StatusCupomFiscal(StringBuilder Status);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_StatusComprovanteNaoFiscalNaoVinculado(StringBuilder Status);
+
+ #endregion
+
+
+ #region Fun��es TEF
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_IniciaModoTEF();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreComprovanteNaoFiscalVinculado(string FormaPag,string Valor, string NumeroCupom);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreComprovanteNaoFiscalVinculadoMFD(string FormaPag,string Valor,
+ string NumeroCupom,string CNPJ,string Nome,string Endereco);
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_UsaComprovanteNaoFiscalVinculadoTEF(string Texto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_UsaComprovanteNaoFiscalVinculado(string Texto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FechaComprovanteNaoFiscalVinculado();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FinalizaModoTEF();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_SegundaViaNaoFiscalVinculadoMFD();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ReimpressaoNaoFiscalVinculadoMFD();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EstornoNaoFiscalVinculadoMFD(string CGC, string Nome, string Endereco);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_TEF_ImprimirRespostaCartao(string path, string MeioPag,string Travar,string valor);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_TEF_ImprimirResposta(string path, string MeioPag, string Travar);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_TEF_FechaRelatorio();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_TEF_EsperarArquivo(string path, string Tempo, string Travar);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RelatorioGerencialTEF(string Texto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_UsaRelatorioGerencialMFDTEF(string Texto);
+
+ #endregion
+
+
+ #region Fun��es das Opera��es N�o Fiscais e outras
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RecebimentoNaoFiscal(string IndiceTot, string Valor, string MeioPagamento);
+
+ // Leiaute banco
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramarLeiauteCheque(string NumBanco, string LeiauteBanco);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaMoedaSingular(string MoedaSingular);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ProgramaMoedaPlural(string MoedaPlural);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaStatusChequeStr(string VerificaStatusCheque);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RetornaPortaVelocidade(StringBuilder Porta, StringBuilder Velocidade);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_VerificaStatusCheque(out int StatusCheque);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ImprimeCheque(string Banco, string Valor, string Nominal,
+ string Cidade, string Data, string Mensagem);
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_ImprimeCopiaCheque();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_IncluiCidadeFavorecido(string Cidade, string Nominal);
+
+ // Fun��es de Comprovante n�o Fiscal
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreRecebimentoNaoFiscalMFD(string CGC, string Nome, string Endereco);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EfetuaRecebimentoNaoFiscalMFD(string IndiceTotal, string ValorReceb);
+
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FechaRecebimentoNaoFiscalMFD(string Mensagem);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreRecebimentoNaoFiscal( string indice, string tipoacredesc, string tipovalor ,string acredesci, string receb ,string texto );
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EfetuaFormaPagamentoNaoFiscal(string FormaPagam, string ValorFormaPagam);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_TotalizaRecebimentoMFD();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreRelatorioGerencial();
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_AbreRelatorioGerencialMDF(String Relatorio);
+ // ECF_AbreRelatorioGerencialMFD
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_EnviarTextoCNF(String Texto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_RelatorioGerencial(String Texto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_UsaRelatorioGerencialMFD(String Texto);
+
+ [DllImport("Convecf.dll")]
+ public static extern int ECF_FechaRelatorioGerencial();
+
+
+
+
+#endregion
+
+ [DllImport("CONVECF.DLL")]
+ public static extern int ECF_RetornoImpressoraMFD(ref int ACK, ref int ST1, ref int ST2, ref int ST3);
+
+
+
+
+ #region ANALISA RETORNO DA DLL
+
+
+ public static void Analisa_Retorno_Dll(int Retorno)
+ {
+ // alguns retorno
+ switch (Retorno)
+ {
+
+ case 0:
+ MessageBox.Show("Erro de comunica��o", " ECF.NET SWEDA",MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case 1:
+ MessageBox.Show("Comando enviado com sucesso ", "ECF.NET SWEDA",MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -2:
+ MessageBox.Show("Par�metro inv�lido. ", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -6:
+ MessageBox.Show("O m�s selecionado ainda n�o est� terminado.", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -8:
+ MessageBox.Show("Erro ao criar ou gravar no arquivo RETORNO.TXT.", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -11:
+ MessageBox.Show("Existe um documento aberto ", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -24:
+ MessageBox.Show("Forma de pagamento n�o programada", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -27:
+ MessageBox.Show("Status do ECF diferente de 6,0,0,0 (ACK,ST1,ST2 e ST3)", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+ case -30:
+ MessageBox.Show("Fun��o n�o compat�vel com a impressora.", " ECF.NET SWEDA", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ break;
+
+ }
+
+ }
+ #endregion
+
+
+
+ /**************************************************************************************/
+ /* ST1
+ 7 (128) Fim de papel.
+ 6 (64) Pouco papel.
+ 5 (32) Erro de rel�gio.
+ 4 (16) Impressora em erro.
+ 3 (8) Irrelevante.
+ 2 (4) Comando inexistente.
+ 1 (2) Cupom Fiscal aberto.
+ 0 (1) N�mero de par�metros do comando errado.
+ */
+ /***********************************************************************************/
+ /* ST2
+ 7 (128) Tipo de par�metro de comando inv�lido.
+ 6 (64) Mem�ria Fiscal cheia.
+ 5 (32) Erro de mem�ria.
+ 4 (16) Al�quota n�o programada.
+ 3 (8) Tabela de al�quotas cheia.
+ 2 (4) Cancelamento n�o permitido.
+ 1 (2) CNPJ/IE do propriet�rio n�o programado.
+ 0 (1) Comando n�o executado.
+ */
+
+
+
+ #region Analisa Retorno ECF
+
+ public static void Analisa_Retorno_ECF()
+ {
+ //Retorno igual 6,0,0 Comando Ok.
+
+ int ACK = 0, ST1 = 0, ST2 = 0; //ST3=0;
+ ECF_RetornoImpressora(ref ACK, ref ST1, ref ST2);
+
+ // ECF_RetornoImpressora(ref ACK, ref ST1, ref ST2, ref ST3);
+ if (ACK != 6)
+
+ {
+ MessageBox.Show("Problemas ao Enviar Comando", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+
+ }
+
+ if (ST1 >= 128)
+ {
+ MessageBox.Show("Fim de Papel Trocar Bubina", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 128;
+ }
+
+ else if (ST1 >= 64)
+ {
+ // O Papel esta Terminando - Verificar Papel
+
+ MessageBox.Show("O Papel esta Terminando - Verificar Papel", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 64;
+ }
+ else if (ST1 >= 32)
+ {
+ MessageBox.Show("Erro no Relogio interno do ECF", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 32;
+ }
+
+ else if (ST1 >= 16)
+ {
+ MessageBox.Show("IMPRESSORA EM ERROR -DELIGUE E LIGUE O ECF", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 16;
+ }
+ else if (ST1 >= 8)
+ {
+ MessageBox.Show("ERRO NO ENVIO DO COMANDO - FAVOR REPETIR A OPERA��O", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 8;
+
+ }
+ else if (ST1 >= 4)
+ {
+ MessageBox.Show("COMANDO INEXISTENTE -", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 4;
+
+ }
+
+ else if (ST1 >= 2)
+ {
+ MessageBox.Show("CUPOM FISCAL ABERTO - CANCELE OU TERMINE A VENDA", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 2;
+ }
+
+ else if (ST1 >= 1)
+ {
+ MessageBox.Show("PARAMETRO INVALIDO", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST1 -= 1;
+
+ }
+
+
+ /***********************************************************************************/
+ /* ST2*/
+
+ if (ST2 >= 128)
+ {
+ MessageBox.Show("TIPO DE CMD INVALIDO - ABRIR CHAMADO", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 128;
+
+ }
+ else if (ST2 >= 64)
+ {
+ MessageBox.Show("MEMORIA FISCAL CHEIA CHAMAR ASSIT�NCIA TECNICA", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 64;
+ }
+ else if (ST2 >= 32)
+ {
+
+ MessageBox.Show("ERRO DE CMOS DO ECF CHAMAR ASSINTECIA TECNICA", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 32;
+
+ }
+ else if (ST2 >= 16)
+ {
+ MessageBox.Show("ALIQUOTA N�O PROGRAMADA", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 16;
+
+ }
+ else if (ST2 >= 8)
+ {
+ MessageBox.Show("CAPACIDADE DE ALIQUOTA LOTADA ", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 8;
+ }
+ else if (ST2 >= 4)
+ {
+ MessageBox.Show("CANCELAMENTO N�O PERMITIDO PELO ECF", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 4;
+ }
+
+ else if (ST2 >= 2)
+ {
+ MessageBox.Show("CGC/IE N�O PROGRAMADOS CHAMAR ASSITENCIA TECNICA", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+ ST2 -= 2;
+
+ }
+ else if (ST2 >= 1)
+ {
+
+ MessageBox.Show("COMANDO N�O EXECULTADO - VERIFIQUE STATUS DA IMPRESSORA", "ECF.NET SWEDA",
+ MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+
+ ST2 -= 1;
+ }
+
+ }
+
+ public static void Analisa()
+ {
+
+ int ACK = 0, ST1 = 0, ST2 = 0, ST3=0;
+ ECF_RetornoImpressoraMFD(ref ACK, ref ST1, ref ST2, ref ST3);
+
+ MessageBox.Show("Retorno do ST3 : " +ST3.ToString(),"ECF.NET SWEDA");
+
+ }
+ #endregion
+
+
+
+
+
+
+
+
+
+
+
+ }
+
+ }
+
+
Added: trunk/uniBaterFrente/Form1.Designer.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Form1.Designer.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,1096 @@
+namespace uniBaterFrenteLoja
+{
+ partial class Form1
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
+ this.menuStrip1 = new System.Windows.Forms.MenuStrip();
+ this.aRQUIVOToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.sAIRToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.statusStrip1 = new System.Windows.Forms.StatusStrip();
+ this.toolStripStatusLabel3 = new System.Windows.Forms.ToolStripStatusLabel();
+ this.stOperador = new System.Windows.Forms.ToolStripStatusLabel();
+ this.stLoja = new System.Windows.Forms.ToolStripStatusLabel();
+ this.bsHorario = new System.Windows.Forms.ToolStripStatusLabel();
+ this.numQtd = new System.Windows.Forms.NumericUpDown();
+ this.txtValor = new System.Windows.Forms.TextBox();
+ this.txtTotal = new System.Windows.Forms.TextBox();
+ this.rtbCupom = new System.Windows.Forms.RichTextBox();
+ this.txtCpfCnpj = new System.Windows.Forms.TextBox();
+ this.txtCodigoCliente = new System.Windows.Forms.TextBox();
+ this.label8 = new System.Windows.Forms.Label();
+ this.label7 = new System.Windows.Forms.Label();
+ this.timerHora = new System.Windows.Forms.Timer(this.components);
+ this.txtNomeCliente = new System.Windows.Forms.TextBox();
+ this.label12 = new System.Windows.Forms.Label();
+ this.txtCodProduto = new System.Windows.Forms.TextBox();
+ this.label13 = new System.Windows.Forms.Label();
+ this.txtCodBarras = new System.Windows.Forms.TextBox();
+ this.label14 = new System.Windows.Forms.Label();
+ this.txtDescProduto = new System.Windows.Forms.TextBox();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.txtSubTotal = new System.Windows.Forms.TextBox();
+ this.label5 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
+ this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ this.txtAliquota = new System.Windows.Forms.TextBox();
+ this.label9 = new System.Windows.Forms.Label();
+ this.label10 = new System.Windows.Forms.Label();
+ this.label11 = new System.Windows.Forms.Label();
+ this.label16 = new System.Windows.Forms.Label();
+ this.cbFormaPagamento = new System.Windows.Forms.ComboBox();
+ this.label17 = new System.Windows.Forms.Label();
+ this.cbTipoCliente = new System.Windows.Forms.ComboBox();
+ this.label18 = new System.Windows.Forms.Label();
+ this.cbBloquear = new System.Windows.Forms.ComboBox();
+ this.label19 = new System.Windows.Forms.Label();
+ this.cbTipoBateria = new System.Windows.Forms.ComboBox();
+ this.dgvBateriasCompra = new System.Windows.Forms.DataGridView();
+ this.numQtdCompra = new System.Windows.Forms.NumericUpDown();
+ this.label20 = new System.Windows.Forms.Label();
+ this.label21 = new System.Windows.Forms.Label();
+ this.label3 = new System.Windows.Forms.Label();
+ this.txtValorPago = new System.Windows.Forms.TextBox();
+ this.textBox12 = new System.Windows.Forms.TextBox();
+ this.label6 = new System.Windows.Forms.Label();
+ this.pictureBox8 = new System.Windows.Forms.PictureBox();
+ this.pictureBox7 = new System.Windows.Forms.PictureBox();
+ this.pictureBox6 = new System.Windows.Forms.PictureBox();
+ this.pictureBox5 = new System.Windows.Forms.PictureBox();
+ this.pictureBox4 = new System.Windows.Forms.PictureBox();
+ this.pictureBox3 = new System.Windows.Forms.PictureBox();
+ this.pictureBox16 = new System.Windows.Forms.PictureBox();
+ this.pictureBox13 = new System.Windows.Forms.PictureBox();
+ this.pictureBox1 = new System.Windows.Forms.PictureBox();
+ this.pictureBox2 = new System.Windows.Forms.PictureBox();
+ this.txtValorCompra = new System.Windows.Forms.TextBox();
+ this.txtTelefone = new System.Windows.Forms.MaskedTextBox();
+ this.lblStatusBusca = new System.Windows.Forms.Label();
+ this.label22 = new System.Windows.Forms.Label();
+ this.txtSubTotalCompra = new System.Windows.Forms.TextBox();
+ this.menuStrip1.SuspendLayout();
+ this.statusStrip1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.numQtd)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvBateriasCompra)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numQtdCompra)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox16)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
+ this.SuspendLayout();
+ //
+ // menuStrip1
+ //
+ this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.aRQUIVOToolStripMenuItem});
+ this.menuStrip1.Location = new System.Drawing.Point(0, 0);
+ this.menuStrip1.Name = "menuStrip1";
+ this.menuStrip1.Padding = new System.Windows.Forms.Padding(8, 2, 0, 2);
+ this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
+ this.menuStrip1.Size = new System.Drawing.Size(990, 24);
+ this.menuStrip1.TabIndex = 0;
+ this.menuStrip1.Text = "menuStrip1";
+ //
+ // aRQUIVOToolStripMenuItem
+ //
+ this.aRQUIVOToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.sAIRToolStripMenuItem});
+ this.aRQUIVOToolStripMenuItem.Name = "aRQUIVOToolStripMenuItem";
+ this.aRQUIVOToolStripMenuItem.Size = new System.Drawing.Size(56, 20);
+ this.aRQUIVOToolStripMenuItem.Text = "Arquivo";
+ //
+ // sAIRToolStripMenuItem
+ //
+ this.sAIRToolStripMenuItem.Name = "sAIRToolStripMenuItem";
+ this.sAIRToolStripMenuItem.Size = new System.Drawing.Size(103, 22);
+ this.sAIRToolStripMenuItem.Text = "&Sair";
+ //
+ // statusStrip1
+ //
+ this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripStatusLabel3,
+ this.stOperador,
+ this.stLoja,
+ this.bsHorario});
+ this.statusStrip1.Location = new System.Drawing.Point(0, 692);
+ this.statusStrip1.Name = "statusStrip1";
+ this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0);
+ this.statusStrip1.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.statusStrip1.Size = new System.Drawing.Size(990, 22);
+ this.statusStrip1.TabIndex = 1;
+ this.statusStrip1.TabStop = true;
+ this.statusStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.statusStrip1_ItemClicked);
+ //
+ // toolStripStatusLabel3
+ //
+ this.toolStripStatusLabel3.BackColor = System.Drawing.Color.Transparent;
+ this.toolStripStatusLabel3.BorderStyle = System.Windows.Forms.Border3DStyle.RaisedOuter;
+ this.toolStripStatusLabel3.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
+ this.toolStripStatusLabel3.ForeColor = System.Drawing.Color.Black;
+ this.toolStripStatusLabel3.Margin = new System.Windows.Forms.Padding(0);
+ this.toolStripStatusLabel3.Name = "toolStripStatusLabel3";
+ this.toolStripStatusLabel3.Size = new System.Drawing.Size(57, 22);
+ this.toolStripStatusLabel3.Text = "COO: 000";
+ //
+ // stOperador
+ //
+ this.stOperador.BackColor = System.Drawing.Color.Transparent;
+ this.stOperador.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
+ this.stOperador.ForeColor = System.Drawing.Color.Red;
+ this.stOperador.Margin = new System.Windows.Forms.Padding(20, 0, 0, 0);
+ this.stOperador.MergeAction = System.Windows.Forms.MergeAction.Insert;
+ this.stOperador.Name = "stOperador";
+ this.stOperador.Size = new System.Drawing.Size(71, 22);
+ this.stOperador.Text = "OPERADOR:";
+ //
+ // stLoja
+ //
+ this.stLoja.ActiveLinkColor = System.Drawing.Color.Red;
+ this.stLoja.BackColor = System.Drawing.Color.Transparent;
+ this.stLoja.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
+ this.stLoja.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.stLoja.Margin = new System.Windows.Forms.Padding(20, 0, 0, 0);
+ this.stLoja.Name = "stLoja";
+ this.stLoja.Size = new System.Drawing.Size(38, 22);
+ this.stLoja.Text = "LOJA:";
+ //
+ // bsHorario
+ //
+ this.bsHorario.BackColor = System.Drawing.Color.Transparent;
+ this.bsHorario.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
+ this.bsHorario.ForeColor = System.Drawing.Color.Black;
+ this.bsHorario.Margin = new System.Windows.Forms.Padding(20, 0, 0, 0);
+ this.bsHorario.Name = "bsHorario";
+ this.bsHorario.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.bsHorario.Size = new System.Drawing.Size(82, 22);
+ this.bsHorario.Text = "DATA E HORA";
+ this.bsHorario.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.bsHorario.Click += new System.EventHandler(this.toolStripStatusLabel1_Click);
+ //
+ // numQtd
+ //
+ this.numQtd.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numQtd.Location = new System.Drawing.Point(15, 365);
+ this.numQtd.Maximum = new decimal(new int[] {
+ 100000,
+ 0,
+ 0,
+ 0});
+ this.numQtd.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.numQtd.Name = "numQtd";
+ this.numQtd.Size = new System.Drawing.Size(78, 23);
+ this.numQtd.TabIndex = 11;
+ this.numQtd.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.numQtd.ValueChanged += new System.EventHandler(this.numQtd_ValueChanged);
+ this.numQtd.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numQtd_KeyUp);
+ //
+ // txtValor
+ //
+ this.txtValor.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtValor.ForeColor = System.Drawing.Color.Black;
+ this.txtValor.Location = new System.Drawing.Point(148, 365);
+ this.txtValor.Margin = new System.Windows.Forms.Padding(4);
+ this.txtValor.Name = "txtValor";
+ this.txtValor.Size = new System.Drawing.Size(122, 30);
+ this.txtValor.TabIndex = 12;
+ this.txtValor.Text = "0,00";
+ this.txtValor.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+ this.txtValor.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtValor_KeyUp);
+ this.txtValor.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtValor_KeyPress);
+ //
+ // txtTotal
+ //
+ this.txtTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtTotal.BackColor = System.Drawing.Color.White;
+ this.txtTotal.Font = new System.Drawing.Font("Arial", 30F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtTotal.ForeColor = System.Drawing.Color.Red;
+ this.txtTotal.Location = new System.Drawing.Point(622, 552);
+ this.txtTotal.Margin = new System.Windows.Forms.Padding(4);
+ this.txtTotal.Name = "txtTotal";
+ this.txtTotal.ReadOnly = true;
+ this.txtTotal.ShortcutsEnabled = false;
+ this.txtTotal.Size = new System.Drawing.Size(360, 53);
+ this.txtTotal.TabIndex = 20;
+ this.txtTotal.Text = "0,00";
+ //
+ // rtbCupom
+ //
+ this.rtbCupom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.rtbCupom.BackColor = System.Drawing.Color.White;
+ this.rtbCupom.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.rtbCupom.CausesValidation = false;
+ this.rtbCupom.DetectUrls = false;
+ this.rtbCupom.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.rtbCupom.Location = new System.Drawing.Point(622, 122);
+ this.rtbCupom.Margin = new System.Windows.Forms.Padding(4);
+ this.rtbCupom.Name = "rtbCupom";
+ this.rtbCupom.ReadOnly = true;
+ this.rtbCupom.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
+ this.rtbCupom.Size = new System.Drawing.Size(360, 398);
+ this.rtbCupom.TabIndex = 19;
+ this.rtbCupom.Text = "";
+ this.rtbCupom.WordWrap = false;
+ //
+ // txtCpfCnpj
+ //
+ this.txtCpfCnpj.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtCpfCnpj.BackColor = System.Drawing.Color.White;
+ this.txtCpfCnpj.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.txtCpfCnpj.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCpfCnpj.ForeColor = System.Drawing.Color.Black;
+ this.txtCpfCnpj.Location = new System.Drawing.Point(191, 130);
+ this.txtCpfCnpj.Name = "txtCpfCnpj";
+ this.txtCpfCnpj.Size = new System.Drawing.Size(424, 21);
+ this.txtCpfCnpj.TabIndex = 2;
+ this.txtCpfCnpj.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtCpfCnpj_KeyUp);
+ //
+ // txtCodigoCliente
+ //
+ this.txtCodigoCliente.BackColor = System.Drawing.Color.White;
+ this.txtCodigoCliente.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.txtCodigoCliente.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCodigoCliente.ForeColor = System.Drawing.Color.Black;
+ this.txtCodigoCliente.Location = new System.Drawing.Point(15, 130);
+ this.txtCodigoCliente.Name = "txtCodigoCliente";
+ this.txtCodigoCliente.Size = new System.Drawing.Size(165, 21);
+ this.txtCodigoCliente.TabIndex = 1;
+ this.toolTip1.SetToolTip(this.txtCodigoCliente, "C�dido do Cliente");
+ this.txtCodigoCliente.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtCodigoCliente_KeyPress);
+ //
+ // label8
+ //
+ this.label8.AutoSize = true;
+ this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label8.ForeColor = System.Drawing.Color.White;
+ this.label8.Location = new System.Drawing.Point(191, 114);
+ this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(71, 13);
+ this.label8.TabIndex = 1;
+ this.label8.Text = "CPF/CNPJ:";
+ //
+ // label7
+ //
+ this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label7.AutoSize = true;
+ this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label7.ForeColor = System.Drawing.Color.White;
+ this.label7.Location = new System.Drawing.Point(421, 159);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(75, 13);
+ this.label7.TabIndex = 2;
+ this.label7.Text = "TELEFONE:";
+ //
+ // timerHora
+ //
+ this.timerHora.Enabled = true;
+ //
+ // txtNomeCliente
+ //
+ this.txtNomeCliente.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtNomeCliente.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtNomeCliente.Location = new System.Drawing.Point(15, 175);
+ this.txtNomeCliente.Name = "txtNomeCliente";
+ this.txtNomeCliente.Size = new System.Drawing.Size(394, 21);
+ this.txtNomeCliente.TabIndex = 3;
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.BackColor = System.Drawing.Color.Red;
+ this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label12.ForeColor = System.Drawing.Color.White;
+ this.label12.Location = new System.Drawing.Point(15, 258);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(37, 13);
+ this.label12.TabIndex = 49;
+ this.label12.Text = "C�D:";
+ //
+ // txtCodProduto
+ //
+ this.txtCodProduto.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.txtCodProduto.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCodProduto.Location = new System.Drawing.Point(15, 274);
+ this.txtCodProduto.Name = "txtCodProduto";
+ this.txtCodProduto.Size = new System.Drawing.Size(165, 23);
+ this.txtCodProduto.TabIndex = 7;
+ this.txtCodProduto.KeyUp += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyUp);
+ this.txtCodProduto.TextChanged += new System.EventHandler(this.txtCodigoCliente_TextChanged);
+ //
+ // label13
+ //
+ this.label13.AutoSize = true;
+ this.label13.BackColor = System.Drawing.Color.Red;
+ this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label13.ForeColor = System.Drawing.Color.White;
+ this.label13.Location = new System.Drawing.Point(191, 258);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(95, 13);
+ this.label13.TabIndex = 49;
+ this.label13.Text = "C�D. BARRAS:";
+ //
+ // txtCodBarras
+ //
+ this.txtCodBarras.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtCodBarras.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.txtCodBarras.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtCodBarras.Location = new System.Drawing.Point(191, 274);
+ this.txtCodBarras.Name = "txtCodBarras";
+ this.txtCodBarras.Size = new System.Drawing.Size(305, 23);
+ this.txtCodBarras.TabIndex = 8;
+ this.txtCodBarras.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtCodBarras_KeyUp);
+ this.txtCodBarras.TextChanged += new System.EventHandler(this.txtCodigoCliente_TextChanged);
+ //
+ // label14
+ //
+ this.label14.AutoSize = true;
+ this.label14.BackColor = System.Drawing.Color.Red;
+ this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label14.ForeColor = System.Drawing.Color.White;
+ this.label14.Location = new System.Drawing.Point(15, 302);
+ this.label14.Name = "label14";
+ this.label14.Size = new System.Drawing.Size(82, 13);
+ this.label14.TabIndex = 49;
+ this.label14.Text = "DESCRI��O:";
+ //
+ // txtDescProduto
+ //
+ this.txtDescProduto.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtDescProduto.BackColor = System.Drawing.Color.White;
+ this.txtDescProduto.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtDescProduto.Location = new System.Drawing.Point(15, 319);
+ this.txtDescProduto.Name = "txtDescProduto";
+ this.txtDescProduto.ReadOnly = true;
+ this.txtDescProduto.Size = new System.Drawing.Size(600, 23);
+ this.txtDescProduto.TabIndex = 10;
+ this.txtDescProduto.TextChanged += new System.EventHandler(this.txtCodigoCliente_TextChanged);
+ //
+ // label15
+ //
+ this.label15.AutoSize = true;
+ this.label15.BackColor = System.Drawing.Color.Red;
+ this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label15.ForeColor = System.Drawing.Color.White;
+ this.label15.Location = new System.Drawing.Point(15, 348);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(45, 13);
+ this.label15.TabIndex = 49;
+ this.label15.Text = "QTDE:";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.BackColor = System.Drawing.Color.Red;
+ this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.ForeColor = System.Drawing.Color.White;
+ this.label1.Location = new System.Drawing.Point(148, 348);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(72, 13);
+ this.label1.TabIndex = 49;
+ this.label1.Text = "VALOR R$:";
+ //
+ // label2
+ //
+ this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Red;
+ this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label2.ForeColor = System.Drawing.Color.White;
+ this.label2.Location = new System.Drawing.Point(327, 348);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(96, 13);
+ this.label2.TabIndex = 49;
+ this.label2.Text = "SUBTOTAL R$:";
+ //
+ // txtSubTotal
+ //
+ this.txtSubTotal.BackColor = System.Drawing.Color.White;
+ this.txtSubTotal.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtSubTotal.ForeColor = System.Drawing.Color.Red;
+ this.txtSubTotal.Location = new System.Drawing.Point(327, 365);
+ this.txtSubTotal.Margin = new System.Windows.Forms.Padding(4);
+ this.txtSubTotal.Name = "txtSubTotal";
+ this.txtSubTotal.ReadOnly = true;
+ this.txtSubTotal.Size = new System.Drawing.Size(169, 30);
+ this.txtSubTotal.TabIndex = 13;
+ this.txtSubTotal.Text = "0,00";
+ this.txtSubTotal.Leave += new System.EventHandler(this.textBox4_Leave);
+ this.txtSubTotal.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox4_KeyPress);
+ this.txtSubTotal.TextChanged += new System.EventHandler(this.textBox4_TextChanged);
+ //
+ // label5
+ //
+ this.label5.AutoSize = true;
+ this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label5.ForeColor = System.Drawing.Color.White;
+ this.label5.Location = new System.Drawing.Point(15, 159);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(47, 13);
+ this.label5.TabIndex = 2;
+ this.label5.Text = "NOME:";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label4.ForeColor = System.Drawing.Color.White;
+ this.label4.Location = new System.Drawing.Point(15, 114);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(37, 13);
+ this.label4.TabIndex = 49;
+ this.label4.Text = "C�D:";
+ //
+ // toolTip1
+ //
+ this.toolTip1.AutomaticDelay = 0;
+ this.toolTip1.AutoPopDelay = 0;
+ this.toolTip1.InitialDelay = 1;
+ this.toolTip1.IsBalloon = true;
+ this.toolTip1.OwnerDraw = true;
+ this.toolTip1.ReshowDelay = 1;
+ this.toolTip1.ShowAlways = true;
+ this.toolTip1.StripAmpersands = true;
+ //
+ // txtAliquota
+ //
+ this.txtAliquota.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtAliquota.BackColor = System.Drawing.Color.White;
+ this.txtAliquota.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtAliquota.Location = new System.Drawing.Point(510, 274);
+ this.txtAliquota.Name = "txtAliquota";
+ this.txtAliquota.ReadOnly = true;
+ this.txtAliquota.Size = new System.Drawing.Size(105, 23);
+ this.txtAliquota.TabIndex = 9;
+ this.txtAliquota.TextChanged += new System.EventHandler(this.txtCodigoCliente_TextChanged);
+ //
+ // label9
+ //
+ this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label9.AutoSize = true;
+ this.label9.BackColor = System.Drawing.Color.Red;
+ this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label9.ForeColor = System.Drawing.Color.White;
+ this.label9.Location = new System.Drawing.Point(510, 258);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(73, 13);
+ this.label9.TabIndex = 49;
+ this.label9.Text = "AL�QUOTA:";
+ //
+ // label10
+ //
+ this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.label10.AutoSize = true;
+ this.label10.BackColor = System.Drawing.Color.Red;
+ this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label10.ForeColor = System.Drawing.Color.White;
+ this.label10.Location = new System.Drawing.Point(621, 534);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(71, 13);
+ this.label10.TabIndex = 49;
+ this.label10.Text = "TOTAL R$:";
+ //
+ // label11
+ //
+ this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label11.AutoSize = true;
+ this.label11.BackColor = System.Drawing.Color.Red;
+ this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label11.ForeColor = System.Drawing.Color.White;
+ this.label11.Location = new System.Drawing.Point(622, 105);
+ this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(48, 13);
+ this.label11.TabIndex = 1;
+ this.label11.Text = "ITENS:";
+ //
+ // label16
+ //
+ this.label16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.label16.AutoSize = true;
+ this.label16.BackColor = System.Drawing.Color.Red;
+ this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label16.ForeColor = System.Drawing.Color.White;
+ this.label16.Location = new System.Drawing.Point(12, 621);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(156, 13);
+ this.label16.TabIndex = 49;
+ this.label16.Text = "FORMA DE PAGAMENTO:";
+ //
+ // cbFormaPagamento
+ //
+ this.cbFormaPagamento.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.cbFormaPagamento.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cbFormaPagamento.FormattingEnabled = true;
+ this.cbFormaPagamento.Location = new System.Drawing.Point(12, 639);
+ this.cbFormaPagamento.Name = "cbFormaPagamento";
+ this.cbFormaPagamento.Size = new System.Drawing.Size(187, 28);
+ this.cbFormaPagamento.TabIndex = 17;
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label17.ForeColor = System.Drawing.Color.White;
+ this.label17.Location = new System.Drawing.Point(15, 204);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(117, 13);
+ this.label17.TabIndex = 2;
+ this.label17.Text = "TIPO DE CLIENTE:";
+ //
+ // cbTipoCliente
+ //
+ this.cbTipoCliente.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cbTipoCliente.FormattingEnabled = true;
+ this.cbTipoCliente.Location = new System.Drawing.Point(15, 220);
+ this.cbTipoCliente.Name = "cbTipoCliente";
+ this.cbTipoCliente.Size = new System.Drawing.Size(213, 23);
+ this.cbTipoCliente.TabIndex = 5;
+ this.cbTipoCliente.SelectedIndexChanged += new System.EventHandler(this.cbTipoCliente_SelectedIndexChanged);
+ //
+ // label18
+ //
+ this.label18.AutoSize = true;
+ this.label18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label18.ForeColor = System.Drawing.Color.White;
+ this.label18.Location = new System.Drawing.Point(241, 204);
+ this.label18.Name = "label18";
+ this.label18.Size = new System.Drawing.Size(60, 13);
+ this.label18.TabIndex = 2;
+ this.label18.Text = "STATUS:";
+ //
+ // cbBloquear
+ //
+ this.cbBloquear.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cbBloquear.FormattingEnabled = true;
+ this.cbBloquear.Location = new System.Drawing.Point(241, 220);
+ this.cbBloquear.Name = "cbBloquear";
+ this.cbBloquear.Size = new System.Drawing.Size(168, 23);
+ this.cbBloquear.TabIndex = 6;
+ //
+ // label19
+ //
+ this.label19.AutoSize = true;
+ this.label19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label19.ForeColor = System.Drawing.Color.White;
+ this.label19.Location = new System.Drawing.Point(12, 409);
+ this.label19.Name = "label19";
+ this.label19.Size = new System.Drawing.Size(118, 13);
+ this.label19.TabIndex = 49;
+ this.label19.Text = "TIPO DE BATERIA:";
+ //
+ // cbTipoBateria
+ //
+ this.cbTipoBateria.FormattingEnabled = true;
+ this.cbTipoBateria.Location = new System.Drawing.Point(12, 426);
+ this.cbTipoBateria.Name = "cbTipoBateria";
+ this.cbTipoBateria.Size = new System.Drawing.Size(208, 24);
+ this.cbTipoBateria.TabIndex = 14;
+ //
+ // dgvBateriasCompra
+ //
+ this.dgvBateriasCompra.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.dgvBateriasCompra.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
+ this.dgvBateriasCompra.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.dgvBateriasCompra.Location = new System.Drawing.Point(12, 461);
+ this.dgvBateriasCompra.Name = "dgvBateriasCompra";
+ this.dgvBateriasCompra.Size = new System.Drawing.Size(600, 144);
+ this.dgvBateriasCompra.TabIndex = 207;
+ //
+ // numQtdCompra
+ //
+ this.numQtdCompra.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.numQtdCompra.Location = new System.Drawing.Point(226, 426);
+ this.numQtdCompra.Maximum = new decimal(new int[] {
+ 100000,
+ 0,
+ 0,
+ 0});
+ this.numQtdCompra.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.numQtdCompra.Name = "numQtdCompra";
+ this.numQtdCompra.Size = new System.Drawing.Size(45, 23);
+ this.numQtdCompra.TabIndex = 15;
+ this.numQtdCompra.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // label20
+ //
+ this.label20.AutoSize = true;
+ this.label20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label20.ForeColor = System.Drawing.Color.White;
+ this.label20.Location = new System.Drawing.Point(226, 409);
+ this.label20.Name = "label20";
+ this.label20.Size = new System.Drawing.Size(45, 13);
+ this.label20.TabIndex = 49;
+ this.label20.Text = "QTDE:";
+ //
+ // label21
+ //
+ this.label21.AutoSize = true;
+ this.label21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label21.ForeColor = System.Drawing.Color.White;
+ this.label21.Location = new System.Drawing.Point(279, 409);
+ this.label21.Name = "label21";
+ this.label21.Size = new System.Drawing.Size(72, 13);
+ this.label21.TabIndex = 49;
+ this.label21.Text = "VALOR R$:";
+ //
+ // label3
+ //
+ this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.label3.AutoSize = true;
+ this.label3.BackColor = System.Drawing.Color.Red;
+ this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.ForeColor = System.Drawing.Color.White;
+ this.label3.Location = new System.Drawing.Point(230, 621);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(110, 13);
+ this.label3.TabIndex = 49;
+ this.label3.Text = "VALOR PAGO R$:";
+ //
+ // txtValorPago
+ //
+ this.txtValorPago.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.txtValorPago.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtValorPago.Location = new System.Drawing.Point(229, 639);
+ this.txtValorPago.Name = "txtValorPago";
+ this.txtValorPago.Size = new System.Drawing.Size(172, 30);
+ this.txtValorPago.TabIndex = 18;
+ this.txtValorPago.Text = "0,00";
+ this.txtValorPago.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox10_KeyPress);
+ //
+ // textBox12
+ //
+ this.textBox12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox12.BackColor = System.Drawing.Color.White;
+ this.textBox12.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.textBox12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.textBox12.Location = new System.Drawing.Point(622, 631);
+ this.textBox12.Margin = new System.Windows.Forms.Padding(4);
+ this.textBox12.Name = "textBox12";
+ this.textBox12.ReadOnly = true;
+ this.textBox12.ShortcutsEnabled = false;
+ this.textBox12.Size = new System.Drawing.Size(360, 38);
+ this.textBox12.TabIndex = 21;
+ this.textBox12.Text = "0,00";
+ //
+ // label6
+ //
+ this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.label6.AutoSize = true;
+ this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label6.ForeColor = System.Drawing.Color.White;
+ this.label6.Location = new System.Drawing.Point(621, 613);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(74, 13);
+ this.label6.TabIndex = 49;
+ this.label6.Text = "TROCO R$:";
+ //
+ // pictureBox8
+ //
+ this.pictureBox8.Image = global::uniBaterFrenteLoja.Properties.Resources.btnAdd;
+ this.pictureBox8.Location = new System.Drawing.Point(519, 426);
+ this.pictureBox8.Name = "pictureBox8";
+ this.pictureBox8.Size = new System.Drawing.Size(92, 28);
+ this.pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox8.TabIndex = 214;
+ this.pictureBox8.TabStop = false;
+ this.pictureBox8.Click += new System.EventHandler(this.pictureBox8_Click);
+ //
+ // pictureBox7
+ //
+ this.pictureBox7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.pictureBox7.Image = global::uniBaterFrenteLoja.Properties.Resources.btnFechaCupom;
+ this.pictureBox7.Location = new System.Drawing.Point(422, 639);
+ this.pictureBox7.Name = "pictureBox7";
+ this.pictureBox7.Size = new System.Drawing.Size(123, 28);
+ this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox7.TabIndex = 212;
+ this.pictureBox7.TabStop = false;
+ //
+ // pictureBox6
+ //
+ this.pictureBox6.Image = global::uniBaterFrenteLoja.Properties.Resources.btnIserir;
+ this.pictureBox6.Location = new System.Drawing.Point(506, 365);
+ this.pictureBox6.Name = "pictureBox6";
+ this.pictureBox6.Size = new System.Drawing.Size(107, 28);
+ this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox6.TabIndex = 211;
+ this.pictureBox6.TabStop = false;
+ //
+ // pictureBox5
+ //
+ this.pictureBox5.Cursor = System.Windows.Forms.Cursors.Hand;
+ this.pictureBox5.Image = global::uniBaterFrenteLoja.Properties.Resources.btnAbreCupomap;
+ this.pictureBox5.Location = new System.Drawing.Point(421, 220);
+ this.pictureBox5.Name = "pictureBox5";
+ this.pictureBox5.Size = new System.Drawing.Size(115, 28);
+ this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox5.TabIndex = 210;
+ this.pictureBox5.TabStop = false;
+ this.pictureBox5.Click += new System.EventHandler(this.pictureBox5_Click_1);
+ //
+ // pictureBox4
+ //
+ this.pictureBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox4.Image = global::uniBaterFrenteLoja.Properties.Resources.btnOrcamento;
+ this.pictureBox4.Location = new System.Drawing.Point(858, 27);
+ this.pictureBox4.Name = "pictureBox4";
+ this.pictureBox4.Size = new System.Drawing.Size(59, 60);
+ this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox4.TabIndex = 208;
+ this.pictureBox4.TabStop = false;
+ //
+ // pictureBox3
+ //
+ this.pictureBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox3.Image = global::uniBaterFrenteLoja.Properties.Resources.btnNotaFiscal;
+ this.pictureBox3.Location = new System.Drawing.Point(923, 27);
+ this.pictureBox3.Name = "pictureBox3";
+ this.pictureBox3.Size = new System.Drawing.Size(59, 60);
+ this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox3.TabIndex = 208;
+ this.pictureBox3.TabStop = false;
+ //
+ // pictureBox16
+ //
+ this.pictureBox16.Image = global::uniBaterFrenteLoja.Properties.Resources.equal;
+ this.pictureBox16.Location = new System.Drawing.Point(285, 365);
+ this.pictureBox16.Name = "pictureBox16";
+ this.pictureBox16.Size = new System.Drawing.Size(27, 26);
+ this.pictureBox16.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox16.TabIndex = 56;
+ this.pictureBox16.TabStop = false;
+ //
+ // pictureBox13
+ //
+ this.pictureBox13.Image = global::uniBaterFrenteLoja.Properties.Resources.multiplica;
+ this.pictureBox13.Location = new System.Drawing.Point(107, 365);
+ this.pictureBox13.Name = "pictureBox13";
+ this.pictureBox13.Size = new System.Drawing.Size(27, 26);
+ this.pictureBox13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
+ this.pictureBox13.TabIndex = 55;
+ this.pictureBox13.TabStop = false;
+ //
+ // pictureBox1
+ //
+ this.pictureBox1.Image = global::uniBaterFrenteLoja.Properties.Resources.topo;
+ this.pictureBox1.InitialImage = global::uniBaterFrenteLoja.Properties.Resources.topo;
+ this.pictureBox1.Location = new System.Drawing.Point(12, 24);
+ this.pictureBox1.Name = "pictureBox1";
+ this.pictureBox1.Size = new System.Drawing.Size(209, 63);
+ this.pictureBox1.TabIndex = 4;
+ this.pictureBox1.TabStop = false;
+ //
+ // pictureBox2
+ //
+ this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox2.BackgroundImage = global::uniBaterFrenteLoja.Properties.Resources.bg;
+ this.pictureBox2.Location = new System.Drawing.Point(0, 24);
+ this.pictureBox2.Name = "pictureBox2";
+ this.pictureBox2.Size = new System.Drawing.Size(994, 70);
+ this.pictureBox2.TabIndex = 5;
+ this.pictureBox2.TabStop = false;
+ //
+ // txtValorCompra
+ //
+ this.txtValorCompra.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtValorCompra.ForeColor = System.Drawing.Color.Black;
+ this.txtValorCompra.Location = new System.Drawing.Point(277, 427);
+ this.txtValorCompra.Margin = new System.Windows.Forms.Padding(4);
+ this.txtValorCompra.Name = "txtValorCompra";
+ this.txtValorCompra.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.txtValorCompra.Size = new System.Drawing.Size(102, 23);
+ this.txtValorCompra.TabIndex = 16;
+ this.txtValorCompra.Text = "0,00";
+ this.txtValorCompra.Click += new System.EventHandler(this.txtValorCompra_Click);
+ this.txtValorCompra.Leave += new System.EventHandler(this.txtValorCompra_TextChanged);
+ this.txtValorCompra.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtValorCompra_KeyPress);
+ //
+ // txtTelefone
+ //
+ this.txtTelefone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtTelefone.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtTelefone.Location = new System.Drawing.Point(420, 176);
+ this.txtTelefone.Mask = "(99) 0000-0000";
+ this.txtTelefone.Name = "txtTelefone";
+ this.txtTelefone.Size = new System.Drawing.Size(195, 21);
+ this.txtTelefone.TabIndex = 4;
+ this.txtTelefone.Enter += new System.EventHandler(this.maskedTextBox1_Enter);
+ this.txtTelefone.Click += new System.EventHandler(this.txtTelefone_Click);
+ //
+ // lblStatusBusca
+ //
+ this.lblStatusBusca.AutoSize = true;
+ this.lblStatusBusca.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lblStatusBusca.ForeColor = System.Drawing.Color.Red;
+ this.lblStatusBusca.Location = new System.Drawing.Point(12, 95);
+ this.lblStatusBusca.Name = "lblStatusBusca";
+ this.lblStatusBusca.Size = new System.Drawing.Size(0, 17);
+ this.lblStatusBusca.TabIndex = 215;
+ //
+ // label22
+ //
+ this.label22.AutoSize = true;
+ this.label22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(118)))), ((int)(((byte)(188)))));
+ this.label22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label22.ForeColor = System.Drawing.Color.White;
+ this.label22.Location = new System.Drawing.Point(389, 409);
+ this.label22.Name = "label22";
+ this.label22.Size = new System.Drawing.Size(96, 13);
+ this.label22.TabIndex = 49;
+ this.label22.Text = "SUBTOTAL R$:";
+ //
+ // txtSubTotalCompra
+ //
+ this.txtSubTotalCompra.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.txtSubTotalCompra.ForeColor = System.Drawing.Color.Black;
+ this.txtSubTotalCompra.Location = new System.Drawing.Point(385, 427);
+ this.txtSubTotalCompra.Margin = new System.Windows.Forms.Padding(4);
+ this.txtSubTotalCompra.Name = "txtSubTotalCompra";
+ this.txtSubTotalCompra.RightToLeft = System.Windows.Forms.RightToLeft.No;
+ this.txtSubTotalCompra.Size = new System.Drawing.Size(128, 23);
+ this.txtSubTotalCompra.TabIndex = 16;
+ this.txtSubTotalCompra.Text = "0,00";
+ this.txtSubTotalCompra.Click += new System.EventHandler(this.txtValorCompra_Click);
+ this.txtSubTotalCompra.Leave += new System.EventHandler(this.txtValorCompra_TextChanged);
+ this.txtSubTotalCompra.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtValorCompra_KeyPress);
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.SystemColors.ButtonFace;
+ this.ClientSize = new System.Drawing.Size(990, 714);
+ this.Controls.Add(this.lblStatusBusca);
+ this.Controls.Add(this.txtTelefone);
+ this.Controls.Add(this.txtAliquota);
+ this.Controls.Add(this.pictureBox8);
+ this.Controls.Add(this.txtValorPago);
+ this.Controls.Add(this.pictureBox7);
+ this.Controls.Add(this.pictureBox6);
+ this.Controls.Add(this.pictureBox5);
+ this.Controls.Add(this.pictureBox4);
+ this.Controls.Add(this.pictureBox3);
+ this.Controls.Add(this.dgvBateriasCompra);
+ this.Controls.Add(this.cbBloquear);
+ this.Controls.Add(this.cbTipoCliente);
+ this.Controls.Add(this.cbTipoBateria);
+ this.Controls.Add(this.cbFormaPagamento);
+ this.Controls.Add(this.label11);
+ this.Controls.Add(this.label8);
+ this.Controls.Add(this.label4);
+ this.Controls.Add(this.label18);
+ this.Controls.Add(this.label17);
+ this.Controls.Add(this.label5);
+ this.Controls.Add(this.txtSubTotal);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.txtSubTotalCompra);
+ this.Controls.Add(this.label22);
+ this.Controls.Add(this.txtValorCompra);
+ this.Controls.Add(this.label21);
+ this.Controls.Add(this.txtValor);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.label12);
+ this.Controls.Add(this.label6);
+ this.Controls.Add(this.label10);
+ this.Controls.Add(this.label9);
+ this.Controls.Add(this.label13);
+ this.Controls.Add(this.label14);
+ this.Controls.Add(this.label19);
+ this.Controls.Add(this.label3);
+ this.Controls.Add(this.txtCodBarras);
+ this.Controls.Add(this.label16);
+ this.Controls.Add(this.label20);
+ this.Controls.Add(this.label15);
+ this.Controls.Add(this.txtDescProduto);
+ this.Controls.Add(this.pictureBox16);
+ this.Controls.Add(this.numQtdCompra);
+ this.Controls.Add(this.numQtd);
+ this.Controls.Add(this.pictureBox13);
+ this.Controls.Add(this.label7);
+ this.Controls.Add(this.statusStrip1);
+ this.Controls.Add(this.txtNomeCliente);
+ this.Controls.Add(this.textBox12);
+ this.Controls.Add(this.txtTotal);
+ this.Controls.Add(this.menuStrip1);
+ this.Controls.Add(this.txtCpfCnpj);
+ this.Controls.Add(this.pictureBox1);
+ this.Controls.Add(this.txtCodProduto);
+ this.Controls.Add(this.txtCodigoCliente);
+ this.Controls.Add(this.rtbCupom);
+ this.Controls.Add(this.pictureBox2);
+ this.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+ this.ImeMode = System.Windows.Forms.ImeMode.On;
+ this.MainMenuStrip = this.menuStrip1;
+ this.Margin = new System.Windows.Forms.Padding(4);
+ this.MinimumSize = new System.Drawing.Size(1000, 750);
+ this.Name = "Form1";
+ this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "UNIBATER - VENDA CUPOM";
+ this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
+ this.Load += new System.EventHandler(this.Form1_Load);
+ this.menuStrip1.ResumeLayout(false);
+ this.menuStrip1.PerformLayout();
+ this.statusStrip1.ResumeLayout(false);
+ this.statusStrip1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.numQtd)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.dgvBateriasCompra)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.numQtdCompra)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox16)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox13)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.MenuStrip menuStrip1;
+ private System.Windows.Forms.StatusStrip statusStrip1;
+ private System.Windows.Forms.TextBox txtValor;
+ private System.Windows.Forms.TextBox txtTotal;
+ private System.Windows.Forms.RichTextBox rtbCupom;
+ private System.Windows.Forms.Label label8;
+ private System.Windows.Forms.PictureBox pictureBox1;
+ private System.Windows.Forms.PictureBox pictureBox2;
+ private System.Windows.Forms.NumericUpDown numQtd;
+ private System.Windows.Forms.TextBox txtCodigoCliente;
+ private System.Windows.Forms.TextBox txtCpfCnpj;
+ private System.Windows.Forms.Label label7;
+ private System.Windows.Forms.ToolStripMenuItem aRQUIVOToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem sAIRToolStripMenuItem;
+ private System.Windows.Forms.ToolStripStatusLabel bsHorario;
+ private System.Windows.Forms.Timer timerHora;
+ private System.Windows.Forms.TextBox txtNomeCliente;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.TextBox txtCodProduto;
+ private System.Windows.Forms.Label label13;
+ private System.Windows.Forms.TextBox txtCodBarras;
+ private System.Windows.Forms.Label label14;
+ private System.Windows.Forms.TextBox txtDescProduto;
+ private System.Windows.Forms.Label label15;
+ private System.Windows.Forms.PictureBox pictureBox13;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.TextBox txtSubTotal;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.PictureBox pictureBox16;
+ private System.Windows.Forms.Label label5;
+ private System.Windows.Forms.Label label4;
+ private System.Windows.Forms.ToolTip toolTip1;
+ private System.Windows.Forms.TextBox txtAliquota;
+ private System.Windows.Forms.Label label9;
+ private System.Windows.Forms.Label label10;
+ private System.Windows.Forms.Label label11;
+ private System.Windows.Forms.Label label16;
+ private System.Windows.Forms.ComboBox cbFormaPagamento;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.ComboBox cbTipoCliente;
+ private System.Windows.Forms.Label label18;
+ private System.Windows.Forms.ComboBox cbBloquear;
+ private System.Windows.Forms.Label label19;
+ private System.Windows.Forms.ComboBox cbTipoBateria;
+ private System.Windows.Forms.DataGridView dgvBateriasCompra;
+ private System.Windows.Forms.NumericUpDown numQtdCompra;
+ private System.Windows.Forms.Label label20;
+ private System.Windows.Forms.Label label21;
+ private System.Windows.Forms.ToolStripStatusLabel stOperador;
+ private System.Windows.Forms.ToolStripStatusLabel stLoja;
+ private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel3;
+ private System.Windows.Forms.PictureBox pictureBox3;
+ private System.Windows.Forms.PictureBox pictureBox4;
+ private System.Windows.Forms.PictureBox pictureBox5;
+ private System.Windows.Forms.PictureBox pictureBox6;
+ private System.Windows.Forms.PictureBox pictureBox7;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.TextBox txtValorPago;
+ private System.Windows.Forms.TextBox textBox12;
+ private System.Windows.Forms.Label label6;
+ private System.Windows.Forms.PictureBox pictureBox8;
+ private System.Windows.Forms.TextBox txtValorCompra;
+ private System.Windows.Forms.MaskedTextBox txtTelefone;
+ private System.Windows.Forms.Label lblStatusBusca;
+ private System.Windows.Forms.Label label22;
+ private System.Windows.Forms.TextBox txtSubTotalCompra;
+
+ }
+}
+
Added: trunk/uniBaterFrente/Form1.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Form1.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,631 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using MySql.Data.MySqlClient;
+using System.Collections;
+using SWEDA;
+
+
+namespace uniBaterFrenteLoja
+{
+ public partial class Form1 : Form
+ {
+ public string conexao = "Server=colocation1.teiapp.com.br;Database=unibater;Uid=root;Pwd=bd@teia;";
+ public string lista;
+ public string clienteEncontrado = "0";
+ public string cupomAberto = "0";
+
+
+ public Form1()
+ {
+ InitializeComponent();
+ }
+
+ private void Form1_Load(object sender, EventArgs e)
+ {
+
+
+ ArrayList ar = new ArrayList();
+ ar.Add(new combo("Bloqueado","B"));
+ ar.Add(new combo("Desbloqueado", "D"));
+
+ cbBloquear.DisplayMember = "Nome";
+ cbBloquear.ValueMember = "Valor";
+ cbBloquear.DataSource = ar;
+
+ cbBloquear.SelectedIndex = 1;
+
+ ar = new ArrayList();
+ ar.Add(new combo("Atacadista", "A"));
+ ar.Add(new combo("Varejista", "V"));
+
+ cbTipoCliente.DisplayMember = "Nome";
+ cbTipoCliente.ValueMember = "Valor";
+ cbTipoCliente.DataSource = ar;
+
+ cbTipoCliente.SelectedIndex = 1;
+
+
+ conexao con = new conexao();
+
+ MySqlParameter[] parametros = new MySqlParameter[2];
+
+ parametros[0] = new MySqlParameter("?idl",login.idLoja);
+ parametros[1] = new MySqlParameter("?idf", login.idUsuario);
+
+ //DataRow dr = con.executarComando("Select ubloja.ljNome,ubfuncionario.fcNome from ubloja,ubfuncionario where ubloja.id = ?idl and ubfuncionario.id =?idf", parametros);
+
+ MySql objBanco = new MySql();
+
+ DataRow dr = objBanco.RetornaDataRow(conexao, CommandType.Text, "Select ubloja.ljNome,ubfuncionario.fcNome,ubloja.ljLista from ubloja,ubfuncionario where ubloja.id = ?idl and ubfuncionario.id =?idf", parametros);
+
+ stLoja.Text = "LOJA: " + dr[0].ToString().ToUpper();
+ stOperador.Text = "OPERADOR: " + dr[1].ToString().ToUpper();
+
+ //Atualiza hora na barra de status
+ timerHora.Tick += new EventHandler(timerHora_Tick);
+
+ con.preencheCB(cbTipoBateria, "select sukgunid,suprod from ubsucataprod;",conexao);
+ con.preencheCB(cbFormaPagamento, "select cod,nome from ubformapag;",conexao);
+
+ getListaComissao();
+
+ }
+
+ public void getListaComissao() {
+ MySql objBanco = new MySql();
+ MySqlParameter[] lojaParametros = new MySqlParameter[1];
+ lojaParametros[0] = new MySqlParameter("?lojaId", login.idLoja);
+ lista = objBanco.RetornaDataRow(conexao, CommandType.Text, "select valor from ubloja,ubListaComissao where ubloja.id = ?lojaId and ubListaComissao.id = ubloja.ljLista", lojaParametros).ItemArray[0].ToString();
+ }
+
+ void timerHora_Tick(object sender, EventArgs e)
+ {
+ bsHorario.Text = DateTime.Now.ToString("'DATA': dd/MM/yy 'HORA': HH:mm:ss");
+ }
+
+
+
+
+
+ private void txtCodigoCliente_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void toolStripStatusLabel1_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void Form1_FormClosed(object sender, FormClosedEventArgs e)
+ {
+
+ Application.Exit();
+
+ }
+
+ private void statusStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
+ {
+
+ }
+
+ private void pictureBox5_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox4_Leave(object sender, EventArgs e)
+ {
+ }
+
+ private void textBox4_TextChanged(object sender, EventArgs e)
+ {
+ }
+
+ private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
+ {
+
+ }
+
+ private void txtValorCompra_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void pictureBox8_Click(object sender, EventArgs e)
+ {
+ }
+
+ private void txtValorCompra_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ //Ao apertar BackSpace limpar textbox
+ if (e.KeyChar == (Char)Keys.Back) {
+ txtValorCompra.Text = "";
+ }
+ //Caso seja digitado um ponto coloca-se uma v�rgula
+ if (e.KeyChar == ((char)(46)))
+ {
+ e.KeyChar = (char)(44);
+ }
+
+ if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (Char)Keys.Back && e.KeyChar != ',')
+ {
+ e.Handled = true;
+ return;
+ }
+
+ //pega a posi��o da virgula, caso ela exista:
+ int posSeparator = txtValorCompra.Text.IndexOf(',');
+
+ //se a tecla digitada for virgula e ela j� existir, barra:
+ if (e.KeyChar == ',' && posSeparator > -1)
+ {
+ e.Handled = true;
+ return;
+ }
+
+ //verifica quantos digitos h� ap�s a v�rgula
+ if (txtValorCompra.Text.Contains(","))
+ {
+ string selecao = txtValorCompra.Text.Substring(txtValorCompra.SelectionStart);
+ if (selecao.Contains(","))
+ {
+ }
+ else
+ {
+ int tamanho = txtValorCompra.Text.Length;
+ posSeparator = ++posSeparator;
+ string depoisVirgula = txtValorCompra.Text.Substring(posSeparator);
+
+ if (depoisVirgula.Length > 1)
+ {
+
+ e.Handled = true;
+
+ return;
+ }
+ }
+ }
+
+
+ }
+
+ private void txtValorCompra_Click(object sender, EventArgs e)
+ {
+ txtValorCompra.SelectAll();
+ }
+
+ private void textBox4_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ }
+
+ private void txtCodigoCliente_KeyPress(object sender, KeyEventArgs e)
+ {
+ MySqlParameter[] parametros = new MySqlParameter[1];
+
+ parametros[0] = new MySqlParameter("?id", txtCodigoCliente.Text);
+
+ MySql objBanco = new MySql();
+ try
+ {
+ DataRow dr = objBanco.RetornaDataRow(conexao, CommandType.Text, "SELECT cfnome,cfdtel,cftel,cfCadastroPJ,cftipocli,cfstatus from ubclifor where id = ?id;", parametros);
+ txtNomeCliente.Text = dr[0].ToString().ToUpper();
+ txtTelefone.Text = dr[1].ToString().ToUpper() + dr[2].ToString().ToUpper();
+ txtCpfCnpj.Text = dr[3].ToString().ToUpper();
+ if (dr[4].ToString().ToUpper() == "V")
+ {
+ cbTipoCliente.SelectedIndex = 1;
+ }
+ if (dr[4].ToString().ToUpper() == "A")
+ {
+ cbTipoCliente.SelectedIndex = 0;
+ }
+
+ if (dr[5].ToString().ToUpper() == "B")
+ {
+ cbBloquear.SelectedIndex = 0;
+ }
+ if (dr[5].ToString().ToUpper() == "D")
+ {
+ cbBloquear.SelectedIndex = 1;
+ }
+ lblStatusBusca.Text = "";
+
+ clienteEncontrado = "1";
+
+ }
+ catch
+ {
+ lblStatusBusca.Text = "N�o encontrado";
+ txtNomeCliente.Text = "";
+ txtTelefone.Text = "";
+ txtCpfCnpj.Text = "";
+ }
+
+ }
+
+ private void maskedTextBox1_Enter(object sender, EventArgs e)
+ {
+ txtTelefone.SelectAll();
+
+ }
+
+ private void txtTelefone_Click(object sender, EventArgs e)
+ {
+ txtTelefone.SelectAll();
+ }
+
+ private void cbTipoCliente_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void txtCpfCnpj_KeyUp(object sender, KeyEventArgs e)
+ {
+ MySqlParameter[] parametros = new MySqlParameter[1];
+
+ parametros[0] = new MySqlParameter("?id", txtCpfCnpj.Text);
+
+ MySql objBanco = new MySql();
+ try
+ {
+ DataRow dr = objBanco.RetornaDataRow(conexao, CommandType.Text, "SELECT cfnome,cfdtel,cftel,cfCadastroPJ,cftipocli,id,cfstatus from ubclifor where cfCadastroPJ = ?id;", parametros);
+ txtNomeCliente.Text = dr[0].ToString().ToUpper();
+ txtTelefone.Text = dr[1].ToString().ToUpper() + dr[2].ToString().ToUpper();
+ txtCodigoCliente.Text = dr[5].ToString().ToUpper();
+ lblStatusBusca.Text = "";
+ if (dr[4].ToString().ToUpper() == "V")
+ {
+ cbTipoCliente.SelectedIndex = 1;
+ }
+ if (dr[4].ToString().ToUpper() == "A")
+ {
+ cbTipoCliente.SelectedIndex = 0;
+ }
+
+ if (dr[6].ToString().ToUpper() == "B")
+ {
+ cbBloquear.SelectedIndex = 0;
+ }
+ if (dr[6].ToString().ToUpper() == "D")
+ {
+ cbBloquear.SelectedIndex = 1;
+ }
+ lblStatusBusca.Text = "";
+
+ }
+ catch
+ {
+ lblStatusBusca.Text = "N�o encontrado";
+ txtNomeCliente.Text = "";
+ txtTelefone.Text = "";
+ txtCodigoCliente.Text = "";
+ }
+
+ }
+
+ private void textBox1_KeyUp(object sender, KeyEventArgs e)
+ {
+ MySqlParameter[] parametros = new MySqlParameter[1];
+
+ parametros[0] = new MySqlParameter("?id", txtCodProduto.Text);
+
+ MySql objBanco = new MySql();
+ try
+ {
+ DataRow dr = objBanco.RetornaDataRow(conexao, CommandType.Text, "SELECT etqvalor,pdDescProd,pdOriginal,pdTributo from ubestoque,ubprod where etqcod_prod = ubprod.id and ubprod.id = ?id;", parametros);
+
+
+ float valor = float.Parse(dr[0].ToString());
+ valor = valor * (float.Parse(lista) / 100);
+
+ float subTotal = valor * float.Parse(numQtd.Value.ToString());
+
+ txtValor.Text = string.Format("{0:n2}", valor);
+ txtSubTotal.Text = string.Format("{0:n2}", subTotal);
+ txtDescProduto.Text = dr["pdDescProd"].ToString();
+ txtCodBarras.Text = dr["pdOriginal"].ToString();
+ txtAliquota.Text = dr["pdTributo"].ToString();
+
+ }
+ catch
+ {
+ lblStatusBusca.Text = "N�o encontrado";
+ txtValor.Text = "";
+ txtSubTotal.Text = "";
+ txtDescProduto.Text = "";
+ txtCodBarras.Text = "";
+ txtAliquota.Text = "";
+ }
+
+ }
+
+ private void numQtd_ValueChanged(object sender, EventArgs e)
+ {
+ atualizaPreco(e);
+ }
+ public void atualizaPreco(EventArgs e)
+ {
+ float subTotal = float.Parse(numQtd.Value.ToString()) * float.Parse(txtValor.Text);
+ txtSubTotal.Text = string.Format("{0:n2}", subTotal);
+ }
+
+ private void numQtd_KeyUp(object sender, KeyEventArgs e)
+ {
+ atualizaPreco(e);
+
+ }
+
+ private void textBox10_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ //Ao apertar BackSpace limpar textbox
+ if (e.KeyChar == (Char)Keys.Back)
+ {
+ txtValorPago.Text = "";
+ }
+ //Caso seja digitado um ponto coloca-se uma v�rgula
+ if (e.KeyChar == ((char)(46)))
+ {
+ e.KeyChar = (char)(44);
+ }
+
+ if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (Char)Keys.Back && e.KeyChar != ',')
+ {
+ e.Handled = true;
+ return;
+ }
+
+ //pega a posi��o da virgula, caso ela exista:
+ int posSeparator = txtValorPago.Text.IndexOf(',');
+
+ //se a tecla digitada for virgula e ela j� existir, barra:
+ if (e.KeyChar == ',' && posSeparator > -1)
+ {
+ e.Handled = true;
+ return;
+ }
+
+ //verifica quantos digitos h� ap�s a v�rgula
+ if (txtValorPago.Text.Contains(","))
+ {
+ string selecao = txtValorPago.Text.Substring(txtValorPago.SelectionStart);
+ if (selecao.Contains(","))
+ {
+ }
+ else
+ {
+ int tamanho = txtValorPago.Text.Length;
+ posSeparator = ++posSeparator;
+ string depoisVirgula = txtValorPago.Text.Substring(posSeparator);
+
+ if (depoisVirgula.Length > 1)
+ {
+
+ e.Handled = true;
+
+ return;
+ }
+ }
+ }
+ }
+
+ private void txtCodBarras_KeyUp(object sender, KeyEventArgs e)
+ {
+ MySqlParameter[] parametros = new MySqlParameter[1];
+
+ parametros[0] = new MySqlParameter("?id", txtCodBarras.Text);
+
+ MySql objBanco = new MySql();
+ try
+ {
+ DataRow dr = objBanco.RetornaDataRow(conexao, CommandType.Text, "SELECT ubprod.id,etqvalor,pdDescProd,pdOriginal,pdTributo from ubestoque,ubprod where etqcod_prod = ubprod.id and pdOriginal = ?id;", parametros);
+
+ float valor = float.Parse(dr[0].ToString());
+ valor = valor * (float.Parse(lista) / 100);
+ float subTotal = valor * float.Parse(numQtd.Value.ToString());
+
+ txtValor.Text = string.Format("{0:n2}", valor);
+ txtSubTotal.Text = string.Format("{0:n2}", subTotal);
+ txtDescProduto.Text = dr["pdDescProd"].ToString();
+ txtCodProduto.Text = dr["id"].ToString();
+ txtAliquota.Text = dr["pdTributo"].ToString();
+
+ }
+ catch
+ {
+ lblStatusBusca.Text = "N�o encontrado";
+ txtValor.Text = "";
+ txtSubTotal.Text = "";
+ txtDescProduto.Text = "";
+ txtCodProduto.Text = "";
+ txtAliquota.Text = "";
+ }
+ }
+
+ private void pictureBox5_Click_1(object sender, EventArgs e)
+ {
+ if (clienteEncontrado == "1")
+ {
+ abreCupom();
+ }
+ else
+ {
+ if (clienteEncontrado == "0")
+ {
+ insereCliente();
+ }
+ }
+ }
+ public void abreCupom()
+ {
+
+ //Gera numero da venda
+ MySql objBanco = new MySql();
+ int result= Convert.ToInt32(objBanco.RetornaDataRow(conexao, CommandType.Text, "select count(*) from ubvenda").ItemArray[0]);
+ int codVenda = ++result;
+
+
+ //Grava dados da Venda
+ MySqlParameter[] par = new MySqlParameter[7];
+ par[0] = new MySqlParameter("?vendaCod",codVenda);
+ par[1] = new MySqlParameter("?vendaData",DateTime.Now.ToString("yyyy-dd-MM HH:mm:ss"));
+ par[2] = new MySqlParameter("?vendaLoja",Convert.ToInt32(login.idLoja));
+ par[3] = new MySqlParameter("?vendaOperador",Convert.ToInt32(login.idUsuario));
+ par[4] = new MySqlParameter("?vendaLista",lista);
+ par[5] = new MySqlParameter("?vendaCategoria", cbFormaPagamento.SelectedValue);
+ par[6] = new MySqlParameter("?vendaCodCli", txtCodigoCliente.Text);
+
+ objBanco.ExecuteNonQuery(conexao, CommandType.Text, "INSERT INTO ubvenda (vendaCodigo,vendaCoo,vendaCupom,vendaLoja,vendaCodCli,vendaData,vendaOperador,vendaCategoria,vendaLista) values(?vendaCod,'','C',?vendaLoja,?vendaCodCli,?vendaData,?vendaOperador,?vendaCategoria,?vendaLista)", par);
+ rtbCupom.Text = rtbCupom.Text + "============================================\n";
+ rtbCupom.Text = rtbCupom.Text + " DAVID MARCOS RODRIGUES BATERIAS EPP.\n";
+ rtbCupom.Text = rtbCupom.Text + " AV. DR. JO�O GUIMAR�ES, 735\n";
+ rtbCupom.Text = rtbCupom.Text + " S�O PAULO - SP\n";
+ rtbCupom.Text = rtbCupom.Text + "CNPJ:68.955.459/0005-06 IE:149.831.779.113\n";
+ rtbCupom.Text = rtbCupom.Text + "============================================\n";
+ rtbCupom.Text = rtbCupom.Text + "ITEM C�DIGO DESCRI��O \n";
+ rtbCupom.Text = rtbCupom.Text + "QTD. UNI. VL UNIT(R$) VL ITEM(R$)\n";
+ rtbCupom.Focus();
+ rtbCupom.Select(rtbCupom.Text.Length, 0);
+
+ }
+ public void insereCliente()
+ {
+ if ((txtCpfCnpj.Text != "") && (txtNomeCliente.Text != "") && (txtTelefone.Text != ""))
+ {
+ string bloqueia;
+ if (cbTipoCliente.SelectedIndex == 1)
+ {
+ bloqueia = "D";
+ }
+ else
+ {
+ bloqueia = "B";
+
+ }
+
+ string tipoCliente;
+ if (cbTipoCliente.SelectedIndex == 1)
+ {
+ tipoCliente = "V";
+ }
+ else
+ {
+ tipoCliente = "A";
+
+ }
+ string ddd = txtTelefone.Text.Substring(1,2);
+ string tel = txtTelefone.Text.Substring(5);
+ MySqlParameter[] par = new MySqlParameter[7];
+ par[0] = new MySqlParameter("?cfNome", txtNomeCliente.Text);
+ par[1] = new MySqlParameter("?cfCadastroPJ", txtCpfCnpj.Text);
+ par[2] = new MySqlParameter("?cfDTel", ddd);
+ par[3] = new MySqlParameter("?cfTel", tel);
+ par[4] = new MySqlParameter("?cftipoCli", tipoCliente);
+ par[5] = new MySqlParameter("?cfLoja", login.idLoja);
+ par[6] = new MySqlParameter("?cfStatus", bloqueia);
+ MySql objBanco = new MySql();
+ objBanco.ExecuteNonQuery(conexao, CommandType.Text, "INSERT INTO ubclifor (cfNome,cfCadastroPJ,cfDTel,cfTel,cftipoCli,cfLoja,cfStatus) VALUES(?cfNome,?cfCadastroPJ,?cfDTel,?cfTel,?cftipoCli,?cfLoja,?cfStatus);", par);
+
+ try
+ {
+ MySqlParameter[] parametros = new MySqlParameter[1];
+ parametros[0] = new MySqlParameter("?id", txtCpfCnpj.Text);
+ DataRow dr = objBanco.RetornaDataRow(conexao, CommandType.Text, "SELECT cfnome,cfdtel,cftel,cfCadastroPJ,cftipocli,id,cfstatus from ubclifor where cfCadastroPJ = ?id;", parametros);
+ txtNomeCliente.Text = dr[0].ToString().ToUpper();
+ txtTelefone.Text = dr[1].ToString().ToUpper() + dr[2].ToString().ToUpper();
+ txtCodigoCliente.Text = dr[5].ToString().ToUpper();
+ lblStatusBusca.Text = "";
+ if (dr[4].ToString().ToUpper() == "V")
+ {
+ cbTipoCliente.SelectedIndex = 1;
+ }
+ if (dr[4].ToString().ToUpper() == "A")
+ {
+ cbTipoCliente.SelectedIndex = 0;
+ }
+
+ if (dr[6].ToString().ToUpper() == "B")
+ {
+ cbBloquear.SelectedIndex = 0;
+ }
+ if (dr[6].ToString().ToUpper() == "D")
+ {
+ cbBloquear.SelectedIndex = 1;
+ }
+ lblStatusBusca.Text = "";
+
+ abreCupom();
+ }
+ catch
+ {
+ MessageBox.Show("Houve um erro tente novamente!");
+ }
+ }
+ }
+
+ private void txtValor_KeyUp(object sender, KeyEventArgs e)
+ {
+ txtSubTotal.Text = txtValor.Text;
+
+ }
+
+ private void txtValor_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ //Ao apertar BackSpace limpar textbox
+ if (e.KeyChar == (Char)Keys.Back)
+ {
+ txtValor.Text = "";
+ }
+ //Caso seja digitado um ponto coloca-se uma v�rgula
+ if (e.KeyChar == ((char)(46)))
+ {
+ e.KeyChar = (char)(44);
+ }
+
+ if (!Char.IsDigit(e.KeyChar) && e.KeyChar != (Char)Keys.Back && e.KeyChar != ',')
+ {
+ e.Handled = true;
+ return;
+ }
+
+ //pega a posi��o da virgula, caso ela exista:
+ int posSeparator = txtValor.Text.IndexOf(',');
+
+ //se a tecla digitada for virgula e ela j� existir, barra:
+ if (e.KeyChar == ',' && posSeparator > -1)
+ {
+ e.Handled = true;
+ return;
+ }
+
+ //verifica quantos digitos h� ap�s a v�rgula
+ if (txtValor.Text.Contains(","))
+ {
+ string selecao = txtValor.Text.Substring(txtValor.SelectionStart);
+ if (selecao.Contains(","))
+ {
+ }
+ else
+ {
+ int tamanho = txtValor.Text.Length;
+ posSeparator = ++posSeparator;
+ string depoisVirgula = txtValor.Text.Substring(posSeparator);
+
+ if (depoisVirgula.Length > 1)
+ {
+
+ e.Handled = true;
+
+ return;
+ }
+ }
+ }
+ }
+ }
+
+}
\ No newline at end of file
Added: trunk/uniBaterFrente/Form1.resx
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Form1.resx Wed Apr 9 14:18:22 2008
@@ -0,0 +1,209 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>126, 17</value>
+ </metadata>
+ <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>337, 17</value>
+ </metadata>
+ <metadata name="timerHora.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>236, 17</value>
+ </metadata>
+ <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA
+ AADb3Nz/39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f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L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj
+ 4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Xl
+ 5P/k5OP/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj
+ 4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj
+ 4v/j4+L/5OTj/+bk4f/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj
+ 4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj
+ 4v/l4+L/5ePi/+Xj4v/m5OL/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+</value>
+ </data>
+</root>
\ No newline at end of file
Added: trunk/uniBaterFrente/MySql.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/MySql.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,358 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using MySql;
+using MySql.Data.MySqlClient;
+using System.Data;
+
+namespace uniBaterFrenteLoja
+{
+ class MySql
+ {
+ MySqlConnection objConn;
+ MySqlCommand objCmd;
+ MySqlDataAdapter objDA;
+ DataSet objDS;
+
+ #region "M�todos P�blicos"
+ /// <summary>
+ /// Executa o M�todo ExecuteNonQuery e retorna o numero de linhas afetadas
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <param name="parametros"></param>
+ /// <returns>Numero de linhas afetadas</returns>
+ public int ExecuteNonQuery(string caminhoConexao, CommandType commandType, string commandText, MySqlParameter[] parametros)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText, parametros);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+
+ return objCmd.ExecuteNonQuery();
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Executa o M�todo ExecuteNonQuery e retorna o numero de linhas afetadas
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <returns>Numero de linhas afetadas</returns>
+ public int ExecuteNonQuery(string caminhoConexao, CommandType commandType, string commandText)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+
+ return objCmd.ExecuteNonQuery();
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Efetua uma consulta no banco de dados e retorna 1 DataSet
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <param name="parametros"></param>
+ /// <returns>DataSet com resultado da consulta</returns>
+ public DataSet RetornaDataSet(string caminhoConexao, CommandType commandType, string commandText, MySqlParameter[] parametros)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText, parametros);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+ objDA = new MySqlDataAdapter();
+ objDA.SelectCommand = objCmd;
+ objDS = new DataSet();
+ objDA.Fill(objDS);
+
+ return objDS;
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Efetua uma consulta no banco de dados e retorna 1 DataSet
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <returns>DataSet com resultado da consulta</returns>
+ public DataSet RetornaDataSet(string caminhoConexao, CommandType commandType, string commandText)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+ objDA = new MySqlDataAdapter();
+ objDA.SelectCommand = objCmd;
+ objDS = new DataSet();
+ objDA.Fill(objDS);
+
+ return objDS;
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Efetua uma consulta no banco de dados e retorna 1 DataTable
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <param name="parametros"></param>
+ /// <returns>DataTable com resultado da consulta</returns>
+ public DataTable RetornaDataTable(string caminhoConexao, CommandType commandType, string commandText, MySqlParameter[] parametros)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText, parametros);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+ objDA = new MySqlDataAdapter();
+ objDA.SelectCommand = objCmd;
+ DataTable objDT = new DataTable();
+ objDA.Fill(objDT);
+
+ return objDT;
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Efetua uma consulta no banco de dados e retorna 1 DataTable
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <returns>DataTable com resultado da consulta</returns>
+ public DataTable RetornaDataTable(string caminhoConexao, CommandType commandType, string commandText)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+ objDA = new MySqlDataAdapter();
+ objDA.SelectCommand = objCmd;
+ DataTable objDT = new DataTable();
+ objDA.Fill(objDT);
+
+ return objDT;
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Efetua uma consulta no banco de dados e retorna 1 DataRow
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <param name="parametros"></param>
+ /// <returns>DataRow com resultado da consulta</returns>
+ public DataRow RetornaDataRow(string caminhoConexao, CommandType commandType, string commandText, MySqlParameter[] parametros)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText, parametros);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+ objDA = new MySqlDataAdapter();
+ objDA.SelectCommand = objCmd;
+ DataTable objDT = new DataTable();
+ objDA.Fill(objDT);
+
+ return objDT.Rows[0];
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ /// <summary>
+ /// Efetua uma consulta no banco de dados e retorna 1 DataRow
+ /// </summary>
+ /// <param name="caminhoConexao"></param>
+ /// <param name="commandType"></param>
+ /// <param name="commandText"></param>
+ /// <returns>DataRow com resultado da consulta</returns>
+ public DataRow RetornaDataRow(string caminhoConexao, CommandType commandType, string commandText)
+ {
+ try
+ {
+ preparaConexao(caminhoConexao, commandType, commandText);
+
+ objConn.Open();
+ objCmd.Connection = objConn;
+ objDA = new MySqlDataAdapter();
+ objDA.SelectCommand = objCmd;
+ DataTable objDT = new DataTable();
+ objDA.Fill(objDT);
+
+ return objDT.Rows[0];
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+
+ finally
+ {
+ if (objConn.State == ConnectionState.Open)
+ objConn.Close();
+ }
+ }
+
+ #endregion
+
+ #region "M�todos Privados"
+ private void preparaConexao(string caminhoConexao, CommandType commandType, string commandText, MySqlParameter[] parametros)
+ {
+ try
+ {
+ objConn = new MySqlConnection(caminhoConexao);
+ objCmd = new MySqlCommand(commandText);
+ objCmd.CommandType = commandType;
+ objCmd.Parameters.AddRange(parametros);
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ finally
+ {
+ objConn.Close();
+ }
+ }
+
+ private void preparaConexao(string caminhoConexao, CommandType commandType, string commandText)
+ {
+ try
+ {
+ objConn = new MySqlConnection(caminhoConexao);
+ objCmd = new MySqlCommand(commandText);
+ objCmd.CommandType = commandType;
+ }
+ catch (MySqlException)
+ {
+ throw;
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ }
+
+
+ #endregion
+ }
+}
Added: trunk/uniBaterFrente/Program.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Program.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace uniBaterFrenteLoja
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main()
+ {
+
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new login());
+ }
+ }
+}
\ No newline at end of file
Added: trunk/uniBaterFrente/Properties/AssemblyInfo.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Properties/AssemblyInfo.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("uniBaterFrenteLoja")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("TeiaPP")]
+[assembly: AssemblyProduct("uniBaterFrenteLoja")]
+[assembly: AssemblyCopyright("Copyright © TeiaPP 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("89db61d4-a361-447e-a5d6-831b03f3b66e")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/uniBaterFrente/Properties/Resources.Designer.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Properties/Resources.Designer.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,175 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.832
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace uniBaterFrenteLoja.Properties {
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("uniBaterFrenteLoja.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ internal static System.Drawing.Bitmap bg {
+ get {
+ object obj = ResourceManager.GetObject("bg", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap blockClientes {
+ get {
+ object obj = ResourceManager.GetObject("blockClientes", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnAbreCupom {
+ get {
+ object obj = ResourceManager.GetObject("btnAbreCupom", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnAbreCupomap {
+ get {
+ object obj = ResourceManager.GetObject("btnAbreCupomap", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnAdd {
+ get {
+ object obj = ResourceManager.GetObject("btnAdd", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnCupomFiscal {
+ get {
+ object obj = ResourceManager.GetObject("btnCupomFiscal", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnFechaCupom {
+ get {
+ object obj = ResourceManager.GetObject("btnFechaCupom", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnIserir {
+ get {
+ object obj = ResourceManager.GetObject("btnIserir", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnNotaFiscal {
+ get {
+ object obj = ResourceManager.GetObject("btnNotaFiscal", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap btnOrcamento {
+ get {
+ object obj = ResourceManager.GetObject("btnOrcamento", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap byteiapp {
+ get {
+ object obj = ResourceManager.GetObject("byteiapp", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap equal {
+ get {
+ object obj = ResourceManager.GetObject("equal", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap esqTxt {
+ get {
+ object obj = ResourceManager.GetObject("esqTxt", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap multiplica {
+ get {
+ object obj = ResourceManager.GetObject("multiplica", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap topo {
+ get {
+ object obj = ResourceManager.GetObject("topo", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ internal static System.Drawing.Bitmap total {
+ get {
+ object obj = ResourceManager.GetObject("total", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+ }
+}
Added: trunk/uniBaterFrente/Properties/Resources.resx
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Properties/Resources.resx Wed Apr 9 14:18:22 2008
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="btnCupomFiscal" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnCupomFiscal.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnAbreCupomap" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnAbreCupomap.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnOrcamento" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnOrcamento.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="multiplica" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\multiplica.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="topo" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\img\topo.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="byteiapp" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\byteiapp.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="esqTxt" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\esqTxt.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnFechaCupom" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnFechaCupom.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnAbreCupom" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\img\btnAbreCupom.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnIserir" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnIserir.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="bg" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\img\bg.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="total" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\total.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="equal" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\equal.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnNotaFiscal" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnNotaFiscal.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="blockClientes" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\blockClientes.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+ <data name="btnAdd" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\bin\Debug\img\btnAdd.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
+</root>
\ No newline at end of file
Added: trunk/uniBaterFrente/Properties/Settings.Designer.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Properties/Settings.Designer.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.832
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace uniBaterFrenteLoja.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
Added: trunk/uniBaterFrente/Properties/Settings.settings
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/Properties/Settings.settings Wed Apr 9 14:18:22 2008
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
Added: trunk/uniBaterFrente/bin/Debug/MySql.Data.dll
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/SWC.INI
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/bin/Debug/SWC.INI Wed Apr 9 14:18:22 2008
@@ -0,0 +1,19 @@
+
+
+[COMUNICA��O]
+ PORTA= 1
+ VELOCIDADE= 9.600
+ LOG=
+
+[ECF]
+ ECF= 001
+ FAB= SW030800000000000124
+ MFD= MFDSW01000008307
+ NSC=
+ MODELO= IF ST200
+ ARQUIVO DE CONFIGURA��O=
+
+[SWEDA]
+ DIRETORIO=
+
+
Added: trunk/uniBaterFrente/bin/Debug/img/Thumbs.db
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/bg.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/blockClientes.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnAbreCupom.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnAbreCupom2.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnAbreCupoma.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnAbreCupomap.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnAdd.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnAddH.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnCupomFiscal.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnCupomFiscalHover.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnFechaCupom.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnFechaCupomh.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnIserir.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnIserirH.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnNotaFiscal.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnNotaFiscalHover.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnOrcamento.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/btnOrcamentoHover.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/byteiapp.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/byteiapp1.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/equal.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/esqTxt.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/multiplica.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/topo.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/img/total.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/uniBaterFrenteLoja.exe
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/uniBaterFrenteLoja.pdb
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/bin/Debug/uniBaterFrenteLoja.vshost.exe
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/combo.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/combo.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace uniBaterFrenteLoja
+{
+ class combo
+ {
+ public combo(string nome, string value)
+ {
+ Nome = nome;
+ Value = value;
+ }
+
+ private string _nome;
+
+ public string Nome
+ {
+ get { return _nome; }
+ set { _nome = value; }
+ }
+ private string _value;
+
+ public string Value
+ {
+ get { return _value; }
+ set { _value = value; }
+ }
+
+ public combo()
+ {
+
+ }
+ }
+
+}
Added: trunk/uniBaterFrente/conexao.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/conexao.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using MySql.Data.MySqlClient;
+using System.Data;
+using System.Windows.Forms;
+
+namespace uniBaterFrenteLoja
+{
+ public class conexao
+ {
+
+ public DataRow executarComando(String comando,MySqlParameter[] par,string con)
+ {
+ MySqlConnection Conexao = new MySqlConnection(con);
+
+ Conexao.Open();
+ MySqlCommand Comando = new MySqlCommand(comando, Conexao);
+
+ foreach (MySqlParameter parametroRecebido in par) {
+ Comando.Parameters.Add(parametroRecebido);
+ }
+
+ MySqlDataAdapter da = new MySqlDataAdapter(Comando);
+ DataTable Tabela = new DataTable();
+ da.Fill(Tabela);
+ Conexao.Close();
+ return Tabela.Rows[0];
+ }
+
+ public void preencheCB(ComboBox cbox, string query,string cone)
+ {
+ MySqlConnection con = new MySqlConnection(cone);
+ con.Open();
+ MySqlCommand comando = new MySqlCommand(query);
+ comando.Connection = con;
+ MySqlDataAdapter da = new MySqlDataAdapter(comando);
+ DataTable dt = new DataTable();
+ da.Fill(dt);
+
+ cbox.DisplayMember = dt.Columns[1].ToString();
+ cbox.ValueMember = dt.Columns[0].ToString();
+ cbox.DataSource = dt;
+ con.Close();
+ }
+
+
+ }
+}
Added: trunk/uniBaterFrente/img/Thumbs.db
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/img/bg.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/img/btnAbreCupom.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/img/btnAbreCupom2.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/img/topo.png
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/lion.txt
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/lion.txt Wed Apr 9 14:18:22 2008
@@ -0,0 +1 @@
+teste
\ No newline at end of file
Added: trunk/uniBaterFrente/login.Designer.cs
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/login.cs
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/login.cs Wed Apr 9 14:18:22 2008
@@ -0,0 +1,116 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using MySql.Data.MySqlClient;
+
+namespace uniBaterFrenteLoja
+{
+ public partial class login : Form
+ {
+
+ Form1 frm1 = new Form1();
+ public static int idUsuario;
+ public static int idLoja;
+
+
+ public login()
+ {
+ InitializeComponent();
+ }
+
+ private void imgCupomFiscal_MouseHover(object sender, EventArgs e)
+ {
+ imgCupomFiscal.ImageLocation = "img/btnCupomFiscalHover.png";
+
+ }
+
+ private void imgCupomFiscal_MouseLeave(object sender, EventArgs e)
+ {
+ imgCupomFiscal.ImageLocation = "img/btnCupomFiscal.png";
+
+ }
+
+ private void login_Load(object sender, EventArgs e)
+ {
+ this.Width = 231;
+ conexao objConexao = new conexao();
+
+ objConexao.preencheCB(cbLojas, "Select * from ubloja",frm1.conexao);
+ txtUsuario.Focus();
+ }
+
+
+
+ private void imgCupomFiscal_Click(object sender, EventArgs e)
+ {
+ this.Hide();
+ Form1 vendaCupom = new Form1();
+ vendaCupom.Show();
+
+ }
+
+ private void btnEntrar_Click(object sender, EventArgs e)
+ {
+ efetuarLogin();
+ }
+
+ public void efetuarLogin() {
+
+ MySqlConnection con = new MySqlConnection(frm1.conexao);
+ con.Open();
+ MySqlCommand comando = new MySqlCommand("Select id,fcNomeAcesso,fcSenha,fcLoja from ubfuncionario where fcNomeAcesso =?Nome and fcSenha =?Senha and fcLoja=?Loja");
+ comando.Connection = con;
+
+ MySqlParameter Parametros = new MySqlParameter();
+
+ comando.Parameters.AddWithValue("?Senha", txtSenha.Text);
+ comando.Parameters.AddWithValue("?Loja", cbLojas.SelectedValue);
+ comando.Parameters.AddWithValue("?Nome", txtUsuario.Text);
+
+ MySqlDataAdapter daLogin = new MySqlDataAdapter(comando);
+ DataTable dtLogin = new DataTable();
+ daLogin.Fill(dtLogin);
+ try
+ {
+ idLoja = Int32.Parse(dtLogin.Rows[0][3].ToString());
+ idUsuario = Int32.Parse(dtLogin.Rows[0][0].ToString());
+ lblStatus.Text = "LOGIN EFETUADO!";
+ lblStatus.ForeColor = System.Drawing.Color.Green;
+
+ for (int i = 231; i <= 483; i += 50)
+ {
+ this.Width = i;
+ }
+ }
+ catch
+ {
+
+ lblStatus.Text ="USU�RIO INEXISTENTE!";
+ }
+ }
+
+ private void pictureBox1_Click(object sender, EventArgs e)
+ {
+
+
+
+ }
+
+ private void txtSenha_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (e.KeyChar == (char)13) {
+ efetuarLogin();
+
+ }
+ }
+
+ private void txtUsuario_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+ }
+}
\ No newline at end of file
Added: trunk/uniBaterFrente/login.resx
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/login.resx Wed Apr 9 14:18:22 2008
@@ -0,0 +1,203 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>127, 17</value>
+ </metadata>
+ <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>
+ AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAgBAAAAAAAAAAAAAAAAAAAAAA
+ AADb3Nz/39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f
+ 3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f3//f39//39/f/9/f
+ 3//f39//29zc/+Lj4f/j4+L/4+Pi/+Pj4v/j4+L/4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L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Xl
+ 5P/k5OP/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj
+ 4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj4v/j4+L/4+Pi/+Pj
+ 4v/j4+L/5OTj/+bk4f/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj
+ 4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj4v/l4+L/5ePi/+Xj
+ 4v/l4+L/5ePi/+Xj4v/m5OL/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
+</value>
+ </data>
+</root>
\ No newline at end of file
Added: trunk/uniBaterFrente/obj/Debug/ResolveAssemblyReference.cache
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.Form1.resources
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.Properties.Resources.resources
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.csproj.GenerateResource.Cache
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.exe
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.login.resources
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/Debug/uniBaterFrenteLoja.pdb
==============================================================================
Binary file. No diff available.
Added: trunk/uniBaterFrente/obj/uniBaterFrenteLoja.csproj.FileList.txt
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/obj/uniBaterFrenteLoja.csproj.FileList.txt Wed Apr 9 14:18:22 2008
@@ -0,0 +1,9 @@
+bin\Debug\uniBaterFrenteLoja.exe
+bin\Debug\uniBaterFrenteLoja.pdb
+obj\Debug\ResolveAssemblyReference.cache
+obj\Debug\uniBaterFrenteLoja.Form1.resources
+obj\Debug\uniBaterFrenteLoja.Properties.Resources.resources
+obj\Debug\uniBaterFrenteLoja.csproj.GenerateResource.Cache
+obj\Debug\uniBaterFrenteLoja.exe
+obj\Debug\uniBaterFrenteLoja.pdb
+obj\Debug\uniBaterFrenteLoja.login.resources
Added: trunk/uniBaterFrente/uniBaterFrenteLoja.csproj
==============================================================================
--- (empty file)
+++ trunk/uniBaterFrente/uniBaterFrenteLoja.csproj Wed Apr 9 14:18:22 2008
@@ -0,0 +1,149 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{1AE49A10-9A20-442A-8C9F-28CD814F3DF5}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>uniBaterFrenteLoja</RootNamespace>
+ <AssemblyName>uniBaterFrenteLoja</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="MySql.Data, Version=5.0.8.1, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\..\..\Desktop\Nova pasta (2)\bin\MySql.Data.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="combo.cs" />
+ <Compile Include="conexao.cs" />
+ <Compile Include="ECFSWEDA.cs" />
+ <Compile Include="Form1.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Form1.Designer.cs">
+ <DependentUpon>Form1.cs</DependentUpon>
+ </Compile>
+ <Compile Include="login.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="login.Designer.cs">
+ <DependentUpon>login.cs</DependentUpon>
+ </Compile>
+ <Compile Include="MySql.cs" />
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Form1.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>Form1.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="login.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>login.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ <DesignTime>True</DesignTime>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Set
==============================================================================
Diff truncated at 200k characters