예제 #1
0
    public string loadOrder(string branchType)
    {
        string result = ""; int i = 1;

        var m = db.sp_web_loadMenu(branchType);

        foreach (var item in m.ToList())
        {
            result += "<tr class='detail-rows' onclick='showModalUpdate(" + item.Id.ToString() + ");' data-toggle='modal' data-target='#addMenu' id='mnu" + item.Id.ToString() + "' title='Click để xem chi tiết'>";
            result += "<td class='center childrows'></td>";
            result += "<td>" + item.Code + "</td>";
            if (item.Parent == "")
            {
                result += "<td><b>" + item.Name + "</b></td>";
            }
            else
            {
                result += "<td>" + item.Name + "</td>";
            }
            result += "<td>" + item.Parent + "</td>";
            result += "<td>" + item.Position + "</td>";
            result += "<td>" + item.Link + "</td>";
            result += "<td>" + item.Status + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }