20230918资质列表 加现场人员状态查询

This commit is contained in:
2023-09-18 09:27:45 +08:00
parent 5bb940a5cc
commit 9dc9075142
12 changed files with 360 additions and 300 deletions
@@ -44,6 +44,8 @@ namespace FineUIPro.Web.HSSE.QualityAudit
{
this.ProjectId = Request.Params["projectId"];
}
DropListService.InitConstDropDownList(this.drpPersonStates, DropListService.Group_ProjectPersonStates, true);
this.drpPersonStates.SelectedValue = Const.ProjectPersonStates_1;
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{
@@ -94,6 +96,11 @@ namespace FineUIPro.Web.HSSE.QualityAudit
strSql += " AND WorkPost.WorkPostName LIKE @WorkPostName";
listStr.Add(new SqlParameter("@WorkPostName", "%" + this.txtWorkPostName.Text.Trim() + "%"));
}
if (this.drpPersonStates.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpPersonStates.SelectedValue))
{
strSql += " AND Person.States =@States ";
listStr.Add(new SqlParameter("@States", this.drpPersonStates.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);