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

        var m = db.sp_web_loadProductImage(branchType);

        foreach (var item in m.ToList())
        {
            result += "<tr class='detail-rows' branchtype='" + branchType.Trim() + "' imageZoom=\"" + Convert.ToString(item.ImageZoom).Replace("/", "@") + "\" image=\"" + Convert.ToString(item.Image).Replace("/", "@") + "\" id='" + item.ColorId.ToString() + "#" + item.ProductTypeCode.ToString() + "' title='Click để xem chi tiết'>";
            result += "<td class='center childrows'></td>";
            result += "<td>" + item.CodeId + "</td>";
            result += "<td>" + item.ProductTypeCode + "</td>";
            result += "<td>" + item.ProductTypeName + "</td>";
            result += "<td>" + item.ProductCode + "</td>";
            result += "<td>" + item.ProductName + "</td>";
            result += "<td id='imageCount" + item.Id.ToString() + "'>" + item.ImageCount.ToString() + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }