public SIS002(string nrmapa, string nrnota, string dslist, string nmusuario, bool sntransf, string dstitoper) { InitializeComponent(); LblTitulo.Text = dstitoper; snTransf = sntransf; lblUsuario.Text = nmusuario; snfecha = false; Acesso = new LogosMobile.AcessoBD(); Acesso.CriaBD(ref conexao, "LogosMobileBD"); Acesso.AbreConexao(ref conexao, "LogosMobileBD"); Entrada = new BayerEntrada(); NrMapa = nrmapa; Entrada.AlimentaEntrada(ref conexao, dslist, nrmapa); lblNrMapa.Text = nrmapa; lblNrNota.Text = nrnota; edtCodigo.Focus(); string nrip = string.Empty; string lastuser = string.Empty; string snpreetiq = string.Empty; string nrtmpatv = string.Empty; Controller.GetConfig(ref nrip, ref lastuser, ref snpreetiq, ref nrtmpatv); snpreetiqueta = (snpreetiq == "Sim"); LePreEtiqueta(false); }
public SIS005(string nrmapa, string nrnota, string dslist, string nrclient, string nrfornec, bool sntransf, string nmusuario, string dstitoper) { InitializeComponent(); LblTitulo.Text = dstitoper; lblUsuario.Text = nmusuario; NrFornec = nrfornec; SnTransf = sntransf; NrClient = nrclient; snfecha = false; Acesso = new LogosMobile.AcessoBD(); Acesso.CriaBD(ref conexao, "LogosMobileBD"); Acesso.AbreConexao(ref conexao, "LogosMobileBD"); Saida = new BayerSaida(); NrMapa = nrmapa; Saida.AlimentaSaida(ref conexao, dslist, nrmapa); lblNrMapa.Text = nrmapa; lblNrNota.Text = nrnota; string nrip = string.Empty; string lastuser = string.Empty; string snpreetiq = string.Empty; string nrtmpatv = string.Empty; Controller.GetConfig(ref nrip, ref lastuser, ref snpreetiq, ref nrtmpatv); snpreetiqueta = (snpreetiq == "Sim"); LePreEtiqueta(BtnFinalizar.Visible); }