예제 #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;
 }
예제 #4
0
 public async Task <IActionResult> Get()
 {
     if (colorOperations.GetAll().Count > 0)
     {
         return(StatusCode(StatusCodes.Status201Created, new
         {
             status = true,
             message = "Consulta exitosa",
             colorOperations = colorOperations.GetAll(),
         }));
     }
     else
     {
         return(StatusCode(StatusCodes.Status401Unauthorized, new
         {
             status = false,
             message = "Color Erroneo",
             colorOperations = "null"
         }));
     }
 }
예제 #5
0
 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 color",
             data = "null"
         }));
     }
 }
예제 #6
0
 private void frmColores_Load(object sender, EventArgs e)
 {
     colorBindingSource.DataSource = colorOperations.GetAll();
     gvColores.BestFitColumns();
 }
예제 #7
0
 private void frmNMProducto_Load(object sender, EventArgs e)
 {
     marcaBindingSource.DataSource     = marcaOperations.GetAll();
     categoriaBindingSource.DataSource = categoriaOperations.GetAll();
     colorBindingSource.DataSource     = colorOperations.GetAll();
 }