Exemplo n.º 1
0
        protected void GuardarButton_Click(object sender, EventArgs e)
        {
            if (MaximoventaTextBox.Text == "")
            {
                Utilidades.Mensage(this.Page, "Bien", "<script>alert('Debes Llenar el Campo Maximo Venta');</script>");
            }
            else
            {
                VendedoresDetalles v = new VendedoresDetalles();
                LlenarRegistro(v);
                VendedorDetalleBLL.Insertar(v);
            }



            Utilidades.Mensage(this.Page, "Bien", "<script>alert('Guardado');</script>");
        }
Exemplo n.º 2
0
 protected void EliminarButton_Click(object sender, EventArgs e)
 {
     if (IdTextBox.Text == "")
     {
         Utilidades.Mensage(this.Page, "scripts", "<script>alert('Debes Llenar el Campo Id');</script>");
     }
     else
     {
         if (VendedorDetalleBLL.Buscar(Utilidades.TOINT(IdTextBox.Text)) == null)
         {
             Utilidades.Mensage(this.Page, "scripts", "<script>alert('No existe ');</script>");
         }
         else
         {
             VendedorDetalleBLL.Eliminar(Utilidades.TOINT(IdTextBox.Text));
             Utilidades.Mensage(this.Page, "scripts", "<script>alert('Proceso Completado');</script>");
         }
     }
 }