呼叫功能搜索用户姓名

This commit is contained in:
潘鸿锋 2024-11-08 11:00:58 +08:00
parent 4bf9e4b80d
commit a1c714e427
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ namespace FineUIPro.Web.ProjectData
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
if (!string.IsNullOrEmpty(txtUserName.Text))
{
strSql+= " and Users.UserName like '%"+ txtUserName.Text + "%' ";
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);