protected void UiVistaPendienteDetalle_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
        {
            switch (e.Parameters.Split('|')[0])
            {
            case "UiBotonExpandirVistaDetallePendiente":
                UiVistaEncabezadoPendiente.ExpandAll();
                break;

            case "UiBotonContraerVistaDetallePendiente":
                UiVistaEncabezadoPendiente.CollapseAll();
                break;

            case "ObtenerDetalleLiquidacionPendiente":
                UsuarioDeseaVisualizarDetalleDocumentoPorSku?.Invoke(sender, new LiquidacionArgumento {
                    Liquidacion = new Liquidacion {
                        LIQUIDATION_ID = Convert.ToInt32(UiListaLiquidacionPendiente.Value)
                    }, ResumenLiquidacion = new ResumenLiquidacion {
                        DOCUMENT_TYPE = e.Parameters.Split('|')[1], CODE_SKU = e.Parameters.Split('|')[2]
                    }
                });
                break;

            case "Limpiar":
                DetalleDocumentoLiquidacion = new List <DetalleDocumentoLiquidacion>();
                break;
            }
        }
        protected void UiVistaEncabezadoPendiente_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
        {
            switch (e.Parameters.Split('|')[0])
            {
            case "UiBotonExpandirVistaGeneralPendiente":
                UiVistaEncabezadoPendiente.ExpandAll();
                break;

            case "UiBotonContraerVistaGeneralPendiente":
                UiVistaEncabezadoPendiente.CollapseAll();
                break;

            case "ObtenerEncabezadoPendiente":
                if ((UiListaRutaPendiente.Value != null || UiListaRutaPendiente.Text != "") && (UiListaLiquidacionPendiente.Value != null || UiListaLiquidacionPendiente.Text != ""))
                {
                    UsuarioDeseaVisualizarLiquidacionResumen?.Invoke(sender, new LiquidacionArgumento {
                        Liquidacion = new Liquidacion {
                            LIQUIDATION_ID = int.Parse(UiListaLiquidacionPendiente.Value.ToString())
                        }
                    });
                }
                UiVistaEncabezadoPendiente.JSProperties.Add("cpTerminoSeleccionLiquidacion", "Enabled");
                break;

            case "AceptarLiquidacion":
                if (UiListaLiquidacionPendiente.Value != null || UiListaLiquidacionPendiente.Text != "")
                {
                    var estado = UiCheckCuadra.Checked ? "CUADRO" : "NO CUADRO";
                    UsuarioDeseActualizarEstadoLiquidacion?.Invoke(sender, new LiquidacionArgumento {
                        Liquidacion = new Liquidacion {
                            LIQUIDATION_ID = Convert.ToInt32(UiListaLiquidacionPendiente.Value), LIQUIDATION_COMMENT = UiMemoComentarioLiquidacionPendiente.Text, LOGIN = Session["LOGIN"].ToString(), LIQUIDATION_STATUS = estado
                        }
                    });
                }
                break;

            case "Limpiar":
                LiquidacionResumen = new List <ResumenLiquidacion>();
                break;

            case "Refrescar":
                UiVistaEncabezadoPendiente.DataSource = LiquidacionResumen;
                UiVistaEncabezadoPendiente.DataBind();
                break;
            }
        }