//Construtor //---------------------------------------------------------------------------- public FormCadUsuarios(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; tbCodigo.Focus(); cbxPerfil.Text = "USUARIO"; }
//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(); }
public FormCadClientes(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; frmp = parent; cbxSituacao.Text = "ATIVO"; usuario = parent.lblUsuario.Text; tbCodigoCliente.Select(); }
//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(); }
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(); }
//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(); }
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(); } }
//Construtor //-------------------------------------------------------------------------- public FormCadServicos(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; tbCodigo.Focus(); }
//Construtor //-------------------------------------------------------------------- public FormFechamentoCaixa(FormPrincipal parent) { InitializeComponent(); bd = new BancoDados(); this.MdiParent = parent; }
public AboutCrediario(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; }
public FormAberturaCaixa(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; }
//Construtor //----------------------------------------------------------------------- public FormCadFornecedores(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; tbCodigo.Focus(); }
//Construtor public FormAjuEstoque(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; cbxAjuste.Text = "POSITIVO"; }
//Construtor public FormCadFuncionarios(FormPrincipal parent) { InitializeComponent(); this.MdiParent = parent; tbCodigoFuncionario.Focus(); }