20231024
This commit is contained in:
@@ -91,7 +91,22 @@ namespace FineUIPro.Web.HSSE.QualityAudit
|
||||
strSql += " AND Person.CardNo LIKE @CardNo";
|
||||
listStr.Add(new SqlParameter("@CardNo", "%" + this.txtCardNo.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtPersonName.Text.Trim()))
|
||||
if (drpIsUsedName.SelectedValue == "待审核")
|
||||
{
|
||||
strSql += " AND Person.IsUsed = @IsUsed";
|
||||
listStr.Add(new SqlParameter("@IsUsed", "2"));
|
||||
}
|
||||
else if (drpIsUsedName.SelectedValue == "在岗")
|
||||
{
|
||||
strSql += " AND Person.IsUsed = @IsUsed";
|
||||
listStr.Add(new SqlParameter("@IsUsed", "1"));
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql += " AND Person.IsUsed = @IsUsed";
|
||||
listStr.Add(new SqlParameter("@IsUsed", "0"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtPersonName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Person.PersonName LIKE @PersonName";
|
||||
listStr.Add(new SqlParameter("@PersonName", "%" + this.txtPersonName.Text.Trim() + "%"));
|
||||
|
||||
Reference in New Issue
Block a user