Beispiel #1
0
        public string GroupSelectList()
        {
            TNC_ADMINEntities dbTNC = new TNC_ADMINEntities();

            string result = "<select>";

            foreach (var item in dbTNC.tnc_group_master.OrderBy(g => g.group_name))
            {
                result = result + "<option value = '" + item.id + "'>" + item.group_name + "</option>";
            }

            result = result + "</select>";
            return(result);
        }
Beispiel #2
0
        //-----------------------------------Select List--------------------------------------//
        public string UserSelectList()
        {
            TNC_ADMINEntities dbTNC = new TNC_ADMINEntities();

            string result = "<select>";

            foreach (var item in dbTNC.tnc_user.OrderBy(u => u.emp_fname))
            {
                result = result + "<option value = '" + item.emp_code + "'>" + item.emp_fname + " " + item.emp_lname + "</option>";
            }

            result = result + "</select>";
            return(result);
        }