private void FrmVentaJoya_Load(object sender, EventArgs e) { fun = new Clases.cFunciones(); string Col = "CodRegistro;CodJoya;Codigo;Nombre;Cantidad;Precio;Comision;SubTotal"; tbVenta = fun.CrearTabla(Col); DateTime Fecha = DateTime.Now; txtFecha.Text = Fecha.ToShortDateString(); fun.EstiloBotones(btnGrabar); fun.EstiloBotones(btnCancelar); if (Principal.CodVenta != null) { BuscarVenta(Convert.ToInt32(Principal.CodVenta)); } }
private void Inicializar() { fun = new Clases.cFunciones(); fun.LlenarCombo(cmbProvincia, "Provincia", "Nombre", "CodProvincia"); fun.LlenarCombo(cmbTipo, "Tipo", "Nombre", "CodTipo"); string Col = "CodPresupuesto;CodJoya;Nombre;Tipo;Cantidad;Precio;SubTotal"; tbDetalle = fun.CrearTabla(Col); fun.EstiloBotones(btnGrabar); txtFecha.Text = DateTime.Now.ToShortDateString(); if (Principal.CodigoPrincipalAbm != null) { if (Principal.CodigoPrincipalAbm != null) { Int32 CodPresupuesto = Convert.ToInt32(Principal.CodigoPrincipalAbm); BuscarPresupuesto(CodPresupuesto); } } AgregaCodigoBarra = false; AgregaCodigoBarra2 = false; }
private void FrmLogin_Load(object sender, EventArgs e) { cFunciones fun = new cFunciones(); fun.EstiloBotones(btnBuscarApe); }