yibo 7 years ago
parent
commit
7a97e29e06
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      B3ButcherManageToSale.Web/Pages/B3ButcherManageToSale/Reports/OutputToSaleOutDiff_/OutputToSaleOutDiff.cs

+ 11
- 0
B3ButcherManageToSale.Web/Pages/B3ButcherManageToSale/Reports/OutputToSaleOutDiff_/OutputToSaleOutDiff.cs View File

@ -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
{


Loading…
Cancel
Save