20230918资质列表 加现场人员状态查询
This commit is contained in:
@@ -47,8 +47,8 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
}
|
||||
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, false);
|
||||
Funs.FineUIPleaseSelect(this.drpUnitId, "按单位查询");
|
||||
DropListService.InitConstDropDownList(this.drpIsPost, DropListService.Group_IsPost, true);
|
||||
this.drpIsPost.SelectedValue = Const._True;
|
||||
DropListService.InitConstDropDownList(this.drpPersonStates, DropListService.Group_ProjectPersonStates, true);
|
||||
this.drpPersonStates.SelectedValue = Const.ProjectPersonStates_1;
|
||||
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
|
||||
{
|
||||
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
|
||||
@@ -82,18 +82,10 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
strSql += " AND Person.UnitId = @UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
|
||||
}
|
||||
if (this.drpIsPost.SelectedValue != Const._Null && !string.IsNullOrEmpty( this.drpIsPost.SelectedValue))
|
||||
if (this.drpPersonStates.SelectedValue != Const._Null && !string.IsNullOrEmpty( this.drpPersonStates.SelectedValue))
|
||||
{
|
||||
if (this.drpIsPost.SelectedValue == Const._True)
|
||||
{
|
||||
strSql += " AND Person.States =@States ";
|
||||
listStr.Add(new SqlParameter("@States",Const.ProjectPersonStates_1));
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql += " AND Person.States !=@States ";
|
||||
listStr.Add(new SqlParameter("@States", Const.ProjectPersonStates_1));
|
||||
}
|
||||
strSql += " AND Person.States =@States ";
|
||||
listStr.Add(new SqlParameter("@States", this.drpPersonStates.SelectedValue));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtCardNo.Text.Trim()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user