Ejemplo n.º 1
0
        public static SelectList GetPaymentType()
        {
            List <CUSTOM> classButtonList = new List <CUSTOM>();

            string[] classButtons = new string[] { "Transfer", "Cash" };
            for (int i = 0; i < classButtons.Count(); i++)
            {
                CUSTOM classButton = new CUSTOM();
                classButton.TEXT  = classButtons[i];
                classButton.VALUE = classButtons[i];
                classButtonList.Add(classButton);
            }
            SelectList selectList = new SelectList(classButtonList, "VALUE", "TEXT");

            return(selectList);
        }
Ejemplo n.º 2
0
        public static SelectList GetClassButtonList()
        {
            List <CUSTOM> classButtonList = new List <CUSTOM>();

            string[] classButtons = new string[] { "default", "primary", "success", "warning", "danger" };
            for (int i = 0; i < classButtons.Count(); i++)
            {
                CUSTOM classButton = new CUSTOM();
                classButton.TEXT  = classButtons[i];
                classButton.VALUE = classButtons[i];
                classButtonList.Add(classButton);
            }
            SelectList selectList = new SelectList(classButtonList, "VALUE", "TEXT");

            return(selectList);
        }
Ejemplo n.º 3
0
        public static SelectList GetTypeSosmedList()
        {
            List <CUSTOM> typeSosmedList = new List <CUSTOM>();

            string[] typeSosmeds = new string[] { "Social", "Embed" };
            for (int i = 0; i < typeSosmeds.Count(); i++)
            {
                CUSTOM typeSosmed = new CUSTOM();
                typeSosmed.TEXT  = typeSosmeds[i];
                typeSosmed.VALUE = typeSosmeds[i];
                typeSosmedList.Add(typeSosmed);
            }
            SelectList selectList = new SelectList(typeSosmedList, "VALUE", "TEXT");

            return(selectList);
        }
Ejemplo n.º 4
0
        public static SelectList GetClassActiveList()
        {
            List <CUSTOM> classActiveList = new List <CUSTOM>();

            string[] classActives = new string[] { "active", "inactive" };
            for (int i = 0; i < classActives.Count(); i++)
            {
                CUSTOM classActive = new CUSTOM();
                classActive.TEXT  = classActives[i];
                classActive.VALUE = classActives[i];
                classActiveList.Add(classActive);
            }
            SelectList selectList = new SelectList(classActiveList, "VALUE", "TEXT");

            return(selectList);
        }
Ejemplo n.º 5
0
        public static SelectList GetGenderList()
        {
            List <CUSTOM> genderList = new List <CUSTOM>();

            string[] genders = new string[] { "L", "P" };
            for (int i = 0; i < genders.Count(); i++)
            {
                CUSTOM gender = new CUSTOM();
                gender.TEXT  = genders[i];
                gender.VALUE = genders[i];
                genderList.Add(gender);
            }
            SelectList selectList = new SelectList(genderList, "VALUE", "TEXT");

            return(selectList);
        }