Example #1
0
 private void btnPesuisarProduto_Click(object sender, EventArgs e)
 {
     try
     {
         OpenMdiForm.LoadNewKeepAnother(this, new frmPesquisarProduto(EnumMovimentacao.Pesquisa));
     }
     catch (CustomException erro)
     {
         DialogMessage.MessageFullComButtonOkIconeDeInformacao(erro.Message, "Aviso");
     }
     catch (Exception erro)
     {
         DialogMessage.MessageComButtonOkIconeErro(erro.Message, "Erro");
     }
 }
Example #2
0
 private void btnSangria_Click(object sender, EventArgs e)
 {
     try
     {
         OpenMdiForm.LoadNewKeepAnother(this, new frmSangria());
     }
     catch (CustomException error)
     {
         DialogMessage.MessageFullComButtonOkIconeDeInformacao(message: error.Message, title: "Aviso");
     }
     catch (Exception error)
     {
         SaveErroInTxt.RecordInTxt(error, this.GetType().Name);
         DialogMessage.MessageFullComButtonOkIconeDeInformacao(message: error.Message, title: "Aviso");
     }
 }
Example #3
0
 private void btnPesuisarProduto_Click(object sender, EventArgs e)
 {
     try
     {
         OpenMdiForm.LoadNewKeepAnother(this, new frmPesquisarProduto(EnumMovimentacao.Neutro));
     }
     catch (CustomException error)
     {
         DialogMessage.MessageFullComButtonOkIconeDeInformacao(error.Message, "Aviso");
     }
     catch (Exception error)
     {
         SaveErroInTxt.RecordInTxt(error, this.GetType().Name);
         DialogMessage.MessageComButtonOkIconeErro(error.Message, "Erro");
     }
 }
Example #4
0
 private void btnGerenciarComanda_Click(object sender, EventArgs e)
 {
     try
     {
         OpenMdiForm.LoadNewKeepAnother(this, new frmGerenciarComanda(EnumComanda.Seleção));
     }
     catch (CustomException error)
     {
         DialogMessage.MessageFullComButtonOkIconeDeInformacao(error.Message, "Aviso");
     }
     catch (Exception error)
     {
         SaveErroInTxt.RecordInTxt(error, this.GetType().Name);
         DialogMessage.MessageComButtonOkIconeErro(error.Message, "Erro");
     }
 }
Example #5
0
 private void dgvAvisosEstoque_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex >= 0)
         {
             var codigo = dgvAvisosEstoque.CurrentRow.Cells["Código"].Value.ToString();
             if (codigo != null)
             {
                 var formAlertEstoque = new frmGerenciarEstoque();
                 GerenciarGerenciamentoDeEstoque.FecharForm(formAlertEstoque);
                 Estoque.CodigoEstoque = codigo;
                 OpenMdiForm.LoadNewKeepAnother(ContainerContext.Context, formAlertEstoque);
             }
         }
     }
     catch (Exception erro)
     {
         SaveErroInTxt.RecordInTxt(erro, this.GetType().Name);
         throw;
     }
 }
Example #6
0
        private void frmMenu_Load(object sender, EventArgs e)
        {
            try
            {
                this.KeyPreview          = true;
                ContainerContext.Context = this;
                OpenMdiForm.LoadNewKeepAnother(this, new frmAlertaEstoque());
                VerificaQuantidadesDeDatas();
                AtribuirItensNoRodape(_usuario);
                lblUsuarioLogado.Text = _usuario.NomeCompleto;
                InstanciarTipoCadastroRepositorio();
                InstanciarTipoPagamentoRepositorio();
                _tipoCadastroRepositorio.Cadastrar();
                _tipoPagamentoRepositorio.Cadastrar();
                CarregarTextoDePermissao();
                if (InserirDatasUnicas() > 0)
                {
                    Properties.Settings.Default.CaixaAberto =
                        new CaixaRepositorio().GetValor().Valor > 0 ?
                        true : false;
                }

                if (_keyGenRepositorio.GetDiasTrail() == 0)
                {
                    new frmKeyGen().Show();
                    this.Hide();
                }
            }
            catch (CustomException erro)
            {
                DialogMessage.MessageFullComButtonOkIconeDeInformacao(erro.Message, "Aviso");
            }
            catch (Exception erro)
            {
                SaveErroInTxt.RecordInTxt(erro, this.GetType().Name);
                DialogMessage.MessageComButtonOkIconeErro(erro.Message, "Erro");
            }
        }
Example #7
0
 private void btnRelatorioCompra_Click(object sender, EventArgs e)
 {
     OpenMdiForm.LoadNewKeepAnother(this, new frmCompras());
 }
Example #8
0
 private void btnMovimentacaoProduto_Click(object sender, EventArgs e)
 {
     OpenMdiForm.LoadNewKeepAnother(this, new frmPesquisarProduto(EnumMovimentacao.Movimentacao));
 }
Example #9
0
 private void btnMovimentacaoCaixa_Click_1(object sender, EventArgs e)
 {
     OpenMdiForm.LoadNewKeepAnother(this, new frmMovimentacaoCaixa());
 }
Example #10
0
 private void btnCaixa_Click(object sender, EventArgs e)
 {
     OpenMdiForm.LoadNewKeepAnother(this, new frmCaixa());
 }
Example #11
0
 private void btnGerenciarEstoque_Click(object sender, EventArgs e)
 {
     OpenMdiForm.LoadNewKeepAnother(this, new frmGerenciarEstoque());
 }