public String getUserData() { ReportService rs = new ReportService(); String table = ""; foreach (flight f in flight_list) { table += "<div class=\"hr hr-18 dotted hr-double\"></div><div class=\"flight\"><h1>" + f.flight_name ; table +="<small><i class=\"ace-icon fa fa-angle-double-right\"></i>乘客列表</small></h1>" + "<div class=\"row\"><div class=\"col-xs-12\"><table id=\"simple-table\" class=\"table table-striped table-bordered table-hover\">" +"<thead><tr><th>乘客姓名</th><th>机票等级</th><th class=\"hidden-480\">座位号</th><th>PNR</th>" +"<th class=\"hidden-480\">特殊要求</th></tr></thead>"; table += "<tbody>"; List<order> orderList = rs.getOrderByFlightId(f.flight_id); foreach(order o in orderList) { table += "<tr>"; table += "<td>" + o.user.user_name + "</td>"; table += "<td>" + o.type + "</td>"; BitArray seat = new BitArray(o.seat); int seatNum = 0; for (int i= 0; seatNum < seat.Length; i++ ) { if (seat.Get(i) == true) seatNum = i; } table += "<td class=\"hidden-480\">"+ seatNum +"</td>"; table += "<td>" + o.PNR+ "</td>"; table += "<td class=\"hidden-480\">" + o.SSR + "</td></tr>"; } table += "</tbody></table></div></div></div>"; } return table; }