This commit is contained in:
2024-11-27 17:37:58 +08:00
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
{
@@ -63,7 +63,7 @@
<Items>
<f:Grid ID="Grid_MinPrice" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
runat="server" DataKeyNames="ID" AllowCellEditing="true" ForceFit="true" SortField="SortIndex" AllowPaging="true" PageSize="300" EnableBigDataRowTip="false" EnableBigData="true" IsDatabasePaging="false"
EnableColumnLines="true" DataIDField="ID">
EnableColumnLines="true" DataIDField="ID" >
<Columns>
<f:RowNumberField />
@@ -85,7 +85,7 @@
<Items>
<f:Grid ID="Grid_ConEvaluation" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" Title="" EnableCollapse="false"
runat="server" DataKeyNames="ID" AllowCellEditing="true" ForceFit="true" SortField="SortIndex" AllowPaging="true" PageSize="300" EnableBigDataRowTip="false" EnableBigData="true" IsDatabasePaging="false"
EnableColumnLines="true" DataIDField="ID">
EnableColumnLines="true" DataIDField="ID" Height="400">
<Columns>
<f:RowNumberField />