到货分析总体匹配率算法修改

This commit is contained in:
2024-11-27 17:05:01 +08:00
parent 73a869c851
commit ba37c43d06
4 changed files with 20 additions and 10 deletions
@@ -22,7 +22,7 @@ namespace FineUIPro.Web.CLGL
drpWarehouse.DataBind();
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
// 绑定表格
this.BindGrid();
// this.BindGrid();
}
}
@@ -36,7 +36,11 @@ namespace FineUIPro.Web.CLGL
if (tb.Count() > 0)
{
lbRate.Text = "总体匹配率:" + Math.Round(tb.Sum(x => x.MatchRate) * 100 / tb.Count(), 4) + "%";
decimal needNum = 0;
decimal realNum = 0;
needNum = tb.Sum(x => x.NeedNum);
realNum = tb.Sum(x => x.RealNum > x.NeedNum ? x.NeedNum : x.RealNum);
lbRate.Text = "总体匹配率:" + Math.Round(realNum * 100 / needNum, 4) + "%";
}
else
{