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

        var m = db.sp_web_loadDiscount(branchType);

        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.DiscountName + "</td>";
            result += "<td>" + item.DiscountType + "</td>";
            result += "<td>" + item.DiscountNumber + "</td>";
            result += "<td>" + item.DiscountValue + "</td>";
            result += "<td>" + item.OrderMinValue + "</td>";
            result += "<td>" + item.StartDate + "</td>";
            result += "<td>" + item.EndDate + "</td>";
            result += "<td>" + item.CreateBy + "</td>";
            result += "<td>" + item.CreateAt + "</td>";
            result += "</tr>";
            i++;
        }
        return(result);
    }