Пример #1
0
 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();
 }
Пример #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();
 }
Пример #3
0
 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"
         }));
     }
 }
Пример #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"
         }));
     }
 }
Пример #6
0
 private void frmCategorias_Load(object sender, EventArgs e)
 {
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     gvCategorias.BestFitColumns();
 }
Пример #7
0
 private void frmNMProducto_Load(object sender, EventArgs e)
 {
     marcaBindingSource.DataSource     = marcaOperations.GetAll();
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     colorBindingSource.DataSource     = colorOperations.GetAll();
 }