1
This commit is contained in:
@@ -17,6 +17,11 @@ namespace FineUIPro.Web.CLGL
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
drpWarehouse.DataTextField = "Text";
|
||||
drpWarehouse.DataValueField = "Value";
|
||||
drpWarehouse.DataSource = BLL.DropListService.HJGL_WarehouseCode();
|
||||
drpWarehouse.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpWarehouse);
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
}
|
||||
@@ -29,6 +34,11 @@ namespace FineUIPro.Web.CLGL
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.Tw_MaterialStockOutput table = new Model.Tw_MaterialStockOutput();
|
||||
table.PipeLineMatCode = txtMatCode.Text.Trim();
|
||||
if (drpWarehouse.SelectedValue!= Const._Null)
|
||||
{
|
||||
table.WarehouseCode = drpWarehouse.SelectedValue;
|
||||
}
|
||||
table.ProjectId = this.CurrUser.LoginProjectId;
|
||||
var tb = BLL.TwMaterialstockService.GetListData(table, Grid1);
|
||||
Grid1.RecordCount = TwMaterialstockService.Count;
|
||||
@@ -218,6 +228,11 @@ namespace FineUIPro.Web.CLGL
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user