2023-10-27
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user