Example #1
0
 public FormGridFuncionarios(FormCadFuncionarios frm1)
 {
     InitializeComponent();
     bd  = new BancoDados();
     frm = frm1;
     txtNome.Focus();
 }
Example #2
0
 //------------------------------------------------------------------------
 public FormGridUsuarios(FormCadUsuarios frm1)
 {
     InitializeComponent();
     bd  = new BancoDados();
     frm = frm1;
     tbPesquisa.Focus();
 }
Example #3
0
 //Construtor
 //-------------------------------------------------------------------------
 public FormCadCodBarras()
 {
     InitializeComponent();
     bd              = new BancoDados();
     cbxEmb.Text     = "UN";
     txtUnidade.Text = "1";
 }
Example #4
0
 //Construtor
 public FormGridFuncao(FormCadFuncao frm1)
 {
     InitializeComponent();
     bd  = new BancoDados();
     frm = frm1;
     tbPesquisa.Focus();
 }
Example #5
0
 //Construtor
 public FormGridFinalizadora(FormCadFinalizadoras frm1)
 {
     InitializeComponent();
     bd  = new BancoDados();
     frm = frm1;
     tbPesquisa.Focus();
 }
Example #6
0
 //Construtor
 //---------------------------------------------------------------------
 public FormGridCaixas(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent   = parent;
     bd               = new BancoDados();
     cbxSituacao.Text = "FECHADO";
     dtFim.Value      = DateTime.Now;
     dtInicio.Value   = DateTime.Now;
     txtIDCaixa.Focus();
 }
Example #7
0
        private void executarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult res = MessageBox.Show("Confirma a execução do backup do Banco de Dados?", "Backup", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (res == DialogResult.Yes)
            {
                BancoDados bd = new BancoDados();
                Thread     t  = new Thread(bd.Backup_Process);
                t.Start();
                timer1.Enabled = true;
                //timer1.Start();
            }
        }
Example #8
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     ibkp += 1;
     if (ibkp == 3)
     {
         BancoDados bd    = new BancoDados();
         string     velho = "C:\\LojadaLala\\Backup\\lojadalala.sql";
         string     novo  = "C:\\LojadaLala\\Backup\\" + bd.Backup_Nome() + ".sql";
         File.Move(velho, novo);
         ibkp = 0;
         //timer1.Enabled = false;
         timer1.Dispose();
     }
 }
Example #9
0
 //Construtor
 public FormGridFornecedores(object frm1, string tipoobj)
 {
     InitializeComponent();
     bd = new BancoDados();
     if (tipoobj == "produtos")
     {
         frmprod = (FormCadProdutos)frm1;
     }
     else if (tipoobj == "fornecedores")
     {
         frm = (FormCadFornecedores)frm1;
     }
     txtPesquisa.Select();
 }
Example #10
0
 //Construtor
 //---------------------------------------------------------------------
 public FormGridVenda(object frm1)
 {
     InitializeComponent();
     bd = new BancoDados();
     if (frm1 is FormVendas)
     {
         frmven = (FormVendas)frm1;
     }
     else if (frm1 is FormPrincipal)
     {
         this.MdiParent = (FormPrincipal)frm1;
         parent         = (FormPrincipal)frm1;
     }
     cbxSituacao.Text = "ABERTA";
     dtFim.Value      = DateTime.Now;
     dtInicio.Value   = DateTime.Now;
     txtNumeroVenda.Focus();
 }
Example #11
0
        //private FormCadOs os;

        //Construtor
        public FormGridProdutos(object frm1, string tipoobj)
        {
            InitializeComponent();
            bd = new BancoDados();
            if (tipoobj == "produtos")
            {
                prod = (FormCadProdutos)frm1;
            }
            else if (tipoobj == "ajuste")
            {
                ajuste = (FormAjuEstoque)frm1;
            }
            else if (tipoobj == "venda")
            {
                frmven = (FormVendas)frm1;
            }
            else if (tipoobj == "venda2")
            {
                frmven2 = (FormVendaSimples)frm1;
            }
            txtPesquisa.Focus();
        }
Example #12
0
 //Construtor
 //------------------------------------------------------------------------------
 public FormGridClientes(object frm1, string tipoobj)
 {
     InitializeComponent();
     bd = new BancoDados();
     pf = new PessoaFisica();
     if (tipoobj == "clientes")
     {
         frm = (FormCadClientes)frm1;
     }
     else if (tipoobj == "venda")
     {
         frmven = (FormVendas)frm1;
     }
     else if (tipoobj == "consulta_venda")
     {
         gridVenda = (FormGridVenda)frm1;
     }
     else if (tipoobj == "venda2")
     {
         frmven2 = (FormVendaSimples)frm1;
     }
     txtPesquisaNome.Focus();
 }
Example #13
0
 //Construtor Padrão
 public PessoaJuridica()
 {
     bd   = new BancoDados();
     cmd  = new MySqlCommand();
     cmd2 = new MySqlCommand();
 }
Example #14
0
 public FormLogin()
 {
     InitializeComponent();
     bd = new BancoDados();
 }
Example #15
0
 //Construtor
 //--------------------------------------------------------------------------
 public Pagamento()
 {
     bd = new BancoDados();
 }
Example #16
0
 //Construtor
 //------------------------------------------------------------------
 public FormCaixaLancamento(FormCaixa cx)
 {
     InitializeComponent();
     frmCaixa = cx;
     bd       = new BancoDados();
 }
Example #17
0
 //Construtor
 //--------------------------------------------------------
 public Venda()
 {
     bd = new BancoDados();
 }
Example #18
0
 //Construtor
 //------------------------------------------------------
 public Produtos()
 {
     bd   = new BancoDados();
     cmd  = new MySqlCommand();
     cmd2 = new MySqlCommand();
 }
Example #19
0
 //Construtor
 //--------------------------------------------------------------------
 public ItemVenda()
 {
     bd = new BancoDados();
 }
Example #20
0
 //Construtor
 //-----------------------------------------------------------------
 public Caixa()
 {
     bd = new BancoDados();
 }
Example #21
0
 //Construtor
 public Cliente()
 {
     bd = new BancoDados();
 }
Example #22
0
 //Construtor
 public Servicos()
 {
     bd = new BancoDados();
 }
Example #23
0
        private void abrirLocalDeBackupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BancoDados bd = new BancoDados();

            Process.Start("C:\\LojadaLala\\Backup");
        }
Example #24
0
 //Construtor
 public OrdemServico()
 {
     bd = new BancoDados();
 }
Example #25
0
 //Construtor
 public Fornecedor()
 {
     bd   = new BancoDados();
     cmd  = new MySqlCommand();
     cmd2 = new MySqlCommand();
 }
Example #26
0
 //Construtor
 //--------------------------------------------------------------
 public FormGridItensVenda()
 {
     InitializeComponent();
     bd   = new BancoDados();
     item = new ItemVenda();
 }
Example #27
0
 //Construtor
 //--------------------------------------------------------------------
 public FormDebitosCliente()
 {
     InitializeComponent();
     bd        = new BancoDados();
     dataAtual = DateTime.Now;
 }
Example #28
0
 //Construtor
 //--------------------------------------------------------
 public Parcela()
 {
     bd = new BancoDados();
 }
Example #29
0
 //Construtor
 //--------------------------------------------------------------------
 public FormFechamentoCaixa(FormPrincipal parent)
 {
     InitializeComponent();
     bd             = new BancoDados();
     this.MdiParent = parent;
 }
Example #30
0
 //Construtor
 public Funcionario()
 {
     bd  = new BancoDados();
     cmd = new MySqlCommand();
 }