Exemplo n.º 1
0
    public string loadProduct(string branchType, string productType)
    {
        string result = ""; int i = 1;

        var m = db.sp_web_loadProduct(branchType, productType);

        foreach (var item in m.ToList())
        {
            result += "<tr class='detail-rows' onclick='showModalUpdate(" + item.Id.ToString() + ");' data-toggle='modal' data-target='#addProduct' id='" + item.Id.ToString() + "' title='Click để xem chi tiết'>";
            result += "<td class='center childrows'></td>";
            result += "<td>" + item.BranchTypeName + "</td>";
            result += "<td>" + item.CodeId + "</td>";
            result += "<td>" + item.ProductCode + "</td>";
            result += "<td>" + item.ProductName + "</td>";
            result += "<td>" + item.ProductTypeName + "</td>";
            result += "<td>" + item.ProductTypeCode + "</td>";
            result += "<td>" + item.Color + "</td>";
            result += "<td>" + item.Size + "</td>";

            result += "<td>" + item.UnitName + "</td>";
            result += "<td>" + item.CapacityName + "</td>";
            result += "<td>" + item.CountryName + "</td>";
            result += "<td>" + item.Composition + "</td>";
            result += "<td>" + item.Material + "</td>";
            result += "<td>" + item.BrandName + "</td>";
            result += "<td>" + item.SupplierName + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }