//end #region 后台数据读取 public String UserManagement(string sclx, int Size) { BLLuser blluser = new BLLuser(); IList <User> users = blluser.GetUserlist(Size); string retstr = ""; retstr += " <div class='card'>"; retstr += " <div class='header'>"; retstr += " <h4 class='title'>User Table</h4>"; retstr += " <p class='category'>Here is a subtitle for this table</p>"; retstr += " </div> "; retstr += " <div class='content table-responsive table-full-width'>"; retstr += " <table class='table table-striped' >"; retstr += " <thead>"; PropertyInfo[] pros = typeof(User).GetProperties(); foreach (PropertyInfo pro in pros) { string a = pro.Name; retstr += " <th>" + pro.Name + "</th>"; } retstr += " </thead>"; retstr += " <tbody>"; foreach (User menu in users) { retstr += " <tr id='" + menu.Account + "' onclick='selected(" + menu.Account + ")'>"; retstr += " <td>" + menu.UserName + "</td>"; // retstr += " <td>"+menu.UserNumber+"</td>"; retstr += " <td>" + menu.Account + "</td>"; retstr += " <td>" + menu.PassWord + "</td>"; retstr += " <td>" + menu.PhoneNumber + "</td>"; retstr += " <td>" + menu.UserImg + "</td>"; } retstr += " </tbody>"; retstr += " </table>"; retstr += " </div>"; retstr += " </div>"; return(retstr); }