public string loadSupplier(string branchType) { string result = ""; int i = 1; var m = db.sp_web_loadSupplier(branchType); foreach (var item in m.ToList()) { result += "<tr class='detail-rows' onclick='showModalUpdate(" + item.Id.ToString() + ");' data-toggle='modal' data-target='#addSupplier' id='" + item.Id.ToString() + "' title='Click để xem chi tiết'>"; result += "<td class='center'>" + i.ToString() + "</td>"; result += "<td>" + item.BranchTypeName + "</td>"; result += "<td>" + item.SupplierCode + "</td>"; result += "<td>" + item.SupplierName + "</td>"; result += "<td>" + item.Address + "</td>"; result += "<td>" + item.Phone + "</td>"; result += "<td>" + item.ContactName + "</td>"; result += "<td>" + item.Info + "</td>"; result += "<td>" + item.CreateBy + "</td>"; result += "<td>" + item.CreateAt + "</td>"; result += "</tr>"; i++; } return result; }