Esempio n. 1
0
    public string loadCombo(string branchType, string branchId)
    {
        string result = ""; int i = 1;

        var m = db.sp_web_loadCombo(branchType, branchId);

        foreach (var item in m.ToList())
        {
            result += "<tr class='detail-rows' id='" + item.Id.ToString() + "' title='Click để xem chi tiết'>";
            result += "<td class='center childrows'></td>";
            result += "<td>" + item.BranchTypeName + "</td>";
            result += "<td>" + item.BranchName + "</td>";
            result += "<td>" + item.ComboCode + "</td>";
            result += "<td>" + item.ComboName + "</td>";
            result += "<td>" + item.Description + "</td>";
            result += "<td class='right'>" + string.Format("{0:0,0}", item.TotalPrice) + "</td>";
            result += "<td>" + item.StartDate + "</td>";
            result += "<td>" + item.EndDate + "</td>";
            result += "<td>" + item.Status + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }