2023-10-27

This commit is contained in:
2023-10-27 09:00:21 +08:00
parent 81d0edb9e7
commit bf856b7ab7
12 changed files with 155 additions and 30 deletions
@@ -21,6 +21,7 @@ namespace FineUIPro.Web.HJGL.WPQ
if (!IsPostBack)
{
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
// 绑定表格
BindGrid();
}
@@ -39,6 +40,12 @@ namespace FineUIPro.Web.HJGL.WPQ
strSql += " AND WPQCode LIKE @WPQCode";
listStr.Add(new SqlParameter("@WPQCode", "%" + this.txtWeldingProcedureCode.Text.Trim() + "%"));
}
if (drpUnit.SelectedValue!=Const._Null)
{
strSql += " AND UnitId =@UnitId";
listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);