Exemple #1
0
 public frmGerProdutos(frmIncVenda frmVenda, int idUsu, string cod_ref, string tp_Var)
 {
     InitializeComponent();
     incVendas = frmVenda;
     idusu     = idUsu;
     codref    = cod_ref; //se for "", é pelo gerenciador de produto, se for diferente, é pesquisa dentro das vendas pelo valor ref/cod
     tp_Var    = tpVar;   //Se for REF é string, se for COD é int.
 }
Exemple #2
0
 private void btnAlterarPed_Click(object sender, EventArgs e)
 {
     if (dtgPedidos.Rows.Count > 0)
     {
         novoPedido = new frmIncVenda(idusu, "ALTERAR", Convert.ToInt32(dtgPedidos.CurrentRow.Cells["IDVDA"].Value));
         novoPedido.ShowDialog();
     }
     else
     {
         MessageBox.Show("Não há pedido para ser alterado", "Fim", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemple #3
0
 private void btnNovoPedido_Click(object sender, EventArgs e)
 {
     novoPedido = new frmIncVenda(idusu, "INSERIR", 0);
     novoPedido.ShowDialog();
 }