到货分析总体匹配率算法修改
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user