public RepeaterSelect(Page objPage, Anthem.Repeater reperterFolder, Anthem.Label tableSourceCount, Anthem.ImageButton gridFirstPage, Anthem.ImageButton gridBefore, Anthem.ImageButton gridNext, Anthem.ImageButton gridEnd, Anthem.DropDownList gridJump, Anthem.DropDownList dDlgridSourceCount)
 {
     _objPage = objPage;
     //_btnSimpleSearch = btnSimpleSearch;
     _repeaterFolder     = reperterFolder;
     _tableSourceCount   = tableSourceCount;
     _gridFirstPage      = gridFirstPage;
     _gridBefore         = gridBefore;
     _gridNext           = gridNext;
     _gridEnd            = gridEnd;
     _gridJump           = gridJump;
     _ddlgridSourceCount = dDlgridSourceCount;
 }
Пример #2
0
        public static void CargarCombo <T>(ref Anthem.DropDownList Combo, List <T> Lista, string Valor, string Texto, string TextoInicial, string valorInicial)
        {
            Combo.DataSource     = Lista;
            Combo.DataTextField  = Texto;
            Combo.DataValueField = Valor;

            Combo.DataBind();
            if (TextoInicial != "")
            {
                if (valorInicial == "")
                {
                    valorInicial = Guid.Empty.ToString();
                }
                Combo.Items.Insert(0, new ListItem(TextoInicial, valorInicial));
                Combo.SelectedIndex = 0;
            }
        }
        private void CargarDecisiones(int IdEvento, ref Anthem.DropDownList Combo)
        {
            try
            {
                var ObjResultado = new Resultado <VariablesWf>();
                var negEnvioMail = new NegEnvioMailWf();
                var oVariable    = new VariablesWf();
                oVariable.Tipo    = "Decisiones";
                oVariable.IdPadre = IdEvento;

                ObjResultado = negEnvioMail.BuscarVariables(oVariable);


                if (ObjResultado.ResultadoGeneral)
                {
                    if (ObjResultado.Lista.Count != 0)
                    {
                        Controles.CargarCombo <VariablesWf>(ref Combo, ObjResultado.Lista, Constantes.StringId, Constantes.StringDescripcion, "-- Decisiones --", "-1");
                    }
                    else
                    {
                        Controles.MostrarMensajeAlerta("No hay Eventos Configurados");
                    }
                }
            }
            catch (Exception Ex)
            {
                if (Constantes.ModoDebug == true)
                {
                    Controles.MostrarMensajeError(Ex.Message);
                }
                else
                {
                    Controles.MostrarMensajeError(ArchivoRecursos.ObtenerValorNodo(Constantes.MensajesUsuario.ErrorCargarCombo.ToString() + "Tablas Estado"));
                }
            }
        }