From 7a97e29e0628535731dd8fb95065ba0a71b92764 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Wed, 17 Oct 2018 09:15:28 +0800 Subject: [PATCH] . --- .../OutputToSaleOutDiff_/OutputToSaleOutDiff.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/B3ButcherManageToSale.Web/Pages/B3ButcherManageToSale/Reports/OutputToSaleOutDiff_/OutputToSaleOutDiff.cs b/B3ButcherManageToSale.Web/Pages/B3ButcherManageToSale/Reports/OutputToSaleOutDiff_/OutputToSaleOutDiff.cs index a01e511..590a968 100644 --- a/B3ButcherManageToSale.Web/Pages/B3ButcherManageToSale/Reports/OutputToSaleOutDiff_/OutputToSaleOutDiff.cs +++ b/B3ButcherManageToSale.Web/Pages/B3ButcherManageToSale/Reports/OutputToSaleOutDiff_/OutputToSaleOutDiff.cs @@ -29,6 +29,17 @@ namespace BWP.Web.Pages.B3ButcherManageToSale.Reports.OutputToSaleOutDiff_ { base.InitForm(form); mDFGrid.AllowColGroup = true; + mDFGrid.AfterFillDetailRow += (htmlRow, dataRow) => + { + var row = (DFDataRow)dataRow; + + var diff = row["差异|数量"]; + if (diff != null && Convert.ToDecimal(diff) < 0) + { + for (var i = 1; i < htmlRow.Cells.Count-1; i++) + htmlRow.Cells[i].Style.Add("background-color", "#FFA07A"); + } + }; } protected override string AccessRoleName {