Exemplo n.º 1
0
        protected void grd_RowCommand(object sender, FineUI.GridCommandEventArgs e)
        {
            if (e.CommandName == "DeleteAction")
            {
                OperationResult objOperationResult = new OperationResult();
                // Obtener los IDs de la fila seleccionada
                //int nodeId = Convert.ToInt32(grd.DataKeys[grd.SelectedRowIndex][0]);
                string organizationId = grd.DataKeys[grd.SelectedRowIndex][1].ToString();
                string locationId     = grd.DataKeys[grd.SelectedRowIndex][2].ToString();

                // Borrar
                _objNodeBL.UpdateNodeOrganizationChangeStatusAll(ref objOperationResult, NodeId, organizationId, locationId, 1, ((ClientSession)Session["objClientSession"]).GetAsList());

                //if (objOperationResult.Success != 1)
                //{
                //    Alert.ShowInTop("Error en operación:" + System.Environment.NewLine + objOperationResult.ExceptionMessage);
                //}

                BindGrid();
            }
        }