Esempio n. 1
0
    public string loadBrand(string branchType, string branch, string status)
    {
        string result = ""; int i = 1;

        var m = db.sp_Feedback_load(branchType.Trim(), branch.Trim(), status.Trim());

        foreach (var item in m.ToList())
        {
            result += "<tr  data-toggle='modal' data-target='#addColor' id='" + item.OrderId.ToString() + "' class='detail-rows feed" + item.Id.ToString() + "' onclick='updateColor_modal(\"" + item.Id.ToString() + "\",\"" + item.OrderId.ToString() + "\",\"" + item.Content + "\");'  title='Click để xem chi tiết'>";
            result += "<td class='center'>" + i.ToString() + "</td>";
            result += "<td>" + item.BranchName + "</td>";
            result += "<td>" + item.StockCode + "</td>";
            result += "<td>" + item.MemberName + " - " + item.Phone + " - " + item.Address + "</td>";
            result += "<td>" + item.Content + "</td>";
            result += "<td>" + item.OrderAt + "</td>";
            result += "<td>" + item.CreateAt + "</td>";
            result += "<td>" + item.CreateBy + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }