Exemple #1
0
 //Construtor
 //----------------------------------------------------------------------------
 public FormCadUsuarios(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
     tbCodigo.Focus();
     cbxPerfil.Text = "USUARIO";
 }
Exemple #2
0
        //Construtor
        //-------------------------------------------------------------
        public FormVendaSimples(FormPrincipal parent)
        {
            InitializeComponent();
            this.MdiParent   = parent;
            usuarioAtual     = parent.lblUsuario.Text;
            lblVendedor.Text = parent.lblUsuario.Text;
            dtFin            = new DataTable();
            Finalizadora fin = new Finalizadora();

            dtFin = fin.PreencherCbx();
            cbxFormaPgto.DisplayMember = "descricao";
            cbxFormaPgto.ValueMember   = "id";
            cbxFormaPgto.DataSource    = dtFin;
            dt = new DataTable();
            dt.Columns.Add("iditem", typeof(int));
            dt.Columns.Add("idvenda", typeof(int));
            dt.Columns.Add("idproduto", typeof(int));
            dt.Columns.Add("descricao", typeof(string));
            dt.Columns.Add("preco", typeof(decimal));
            dt.Columns.Add("qtde", typeof(int));
            dt.Columns.Add("subtotal", typeof(decimal));
            dt.Columns.Add("desconto", typeof(decimal));
            dt.Columns.Add("total", typeof(decimal));
            dt.Columns.Add("estado", typeof(string));
            dataGridView1.DataSource = dt;
            txtCodProduto.Select();
        }
Exemple #3
0
 public FormCadClientes(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent   = parent;
     frmp             = parent;
     cbxSituacao.Text = "ATIVO";
     usuario          = parent.lblUsuario.Text;
     tbCodigoCliente.Select();
 }
Exemple #4
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();
 }
Exemple #5
0
        private void btnNovaSaida_Click(object sender, EventArgs e)
        {
            FormCaixaLancamento lanc = new FormCaixaLancamento(this);
            FormPrincipal       pri  = (FormPrincipal)this.ParentForm;

            lanc.MdiParent       = this.ParentForm;
            lanc.txtIdCaixa.Text = this.txtIdCaixa.Text;
            lanc.dtCaixa.Value   = this.dtCaixa.Value;
            lanc.usuario         = pri.lblUsuario.Text;
            int item = dataGridView2.RowCount + 1;

            lanc.Text    = "Nova Saída";
            lanc.iditem  = item;
            lanc.entrada = false;
            lanc.Show();
        }
Exemple #6
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();
 }
Exemple #7
0
 private void butAcessar_Click(object sender, EventArgs e)
 {
     usuario = new Usuario();
     usuario.ValidarUsuario(txtLogin.Text, txtSenha.Text);
     if (usuario.Nome != null)
     {
         this.Visible         = false;
         fPri                 = new FormPrincipal();
         fPri.lblUsuario.Text = usuario.Nome;
         if (usuario.Perfil != "ADMINISTRADOR")
         {
             fPri.usuáriosToolStripMenuItem.Visible = false;
         }
         fPri.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Login ou Senha inválidos, digite novamente...", "Erro de Acesso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         txtLogin.Clear();
         txtSenha.Clear();
         txtLogin.Focus();
     }
 }
Exemple #8
0
 //Construtor
 //--------------------------------------------------------------------------
 public FormCadServicos(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
     tbCodigo.Focus();
 }
Exemple #9
0
 //Construtor
 //--------------------------------------------------------------------
 public FormFechamentoCaixa(FormPrincipal parent)
 {
     InitializeComponent();
     bd             = new BancoDados();
     this.MdiParent = parent;
 }
Exemple #10
0
 public AboutCrediario(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
 }
Exemple #11
0
 public FormAberturaCaixa(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
 }
Exemple #12
0
 //Construtor
 //-----------------------------------------------------------------------
 public FormCadFornecedores(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
     tbCodigo.Focus();
 }
Exemple #13
0
 //Construtor
 public FormAjuEstoque(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
     cbxAjuste.Text = "POSITIVO";
 }
Exemple #14
0
 //Construtor
 public FormCadFuncionarios(FormPrincipal parent)
 {
     InitializeComponent();
     this.MdiParent = parent;
     tbCodigoFuncionario.Focus();
 }