材料管理修改
This commit is contained in:
@@ -16,6 +16,10 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataBind();
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
@@ -28,7 +32,7 @@ namespace FineUIPro.Web.CLGL
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var tb = BLL.TwArrivalStatisticsService.GetStatistics(this.CurrUser.LoginProjectId, txtMaterialCode.Text.Trim());
|
||||
var tb = BLL.TwArrivalStatisticsService.GetStatistics(this.CurrUser.LoginProjectId, txtMaterialCode.Text.Trim(), drpWarehouse.SelectedValue);
|
||||
|
||||
lbRate.Text="总体匹配率:"+ Math.Round( tb.Sum(x=>x.MatchRate)*100/tb.Count() ,4) + "%";
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
|
||||
Reference in New Issue
Block a user