private void frmProductos_Load(object sender, EventArgs e)
 {
     productoBindingSource.DataSource  = productoOperations.GetAll();
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     colorBindingSource.DataSource     = colorOperations.GetAll();
     marcaBindingSource.DataSource     = marcaOperations.GetAll();
     gvProductos.BestFitColumns();
 }
Beispiel #2
0
 private void btnActualizar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     productoBindingSource.DataSource  = productoOperations.GetAll();
     marcaBindingSource.DataSource     = marcaOperations.GetAll();
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     colorBindingSource.DataSource     = colorOperations.GetAll();
     gvProductos.BestFitColumns();
 }
 private void frmNProducto_Load(object sender, EventArgs e)
 {
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     colorBindingSource.DataSource     = colorOperations.GetAll();
     marcaBindingSource.DataSource     = marcaOperations.GetAll();
     Misc.actualiza = true;
 }
 public async Task <IActionResult> Get()
 {
     if (data.GetAll().Count() > 0)
     {
         return(StatusCode(StatusCodes.Status201Created, new
         {
             status = true,
             message = "Consulta exitosa",
             data = data.GetAll(),
         }));
     }
     else
     {
         return(StatusCode(StatusCodes.Status401Unauthorized, new
         {
             status = false,
             message = "Error al consultar categoría",
             data = "null"
         }));
     }
 }
Beispiel #5
0
 public async Task <IActionResult> Get()
 {
     if (categoriaOperations.GetAll().Count > 0)
     {
         return(StatusCode(StatusCodes.Status201Created, new
         {
             status = true,
             message = "Consulta exitosa",
             categoriaOperations = categoriaOperations.GetAll(),
         }));
     }
     else
     {
         return(StatusCode(StatusCodes.Status401Unauthorized, new
         {
             status = false,
             message = "Categoria Erronea",
             categoriaOperations = "null"
         }));
     }
 }
 private void frmCategorias_Load(object sender, EventArgs e)
 {
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     gvCategorias.BestFitColumns();
 }
Beispiel #7
0
 private void frmNMProducto_Load(object sender, EventArgs e)
 {
     marcaBindingSource.DataSource     = marcaOperations.GetAll();
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     colorBindingSource.DataSource     = colorOperations.GetAll();
 }