20240925 根据当前登录用户显示质量违章列表数据

This commit is contained in:
2024-09-25 22:33:20 +08:00
parent d9a2eb7638
commit ce468ed018
4 changed files with 13 additions and 5 deletions
+10 -2
View File
@@ -40,9 +40,17 @@ namespace FineUIPro.Web.SES
private void BindGrid()
{
string strSql = @"SELECT * FROM dbo.View_EMC_Que_Punishment WHERE Flag='2' ";
string strSql = string.Empty;
if (this.CurrUser.UserId == BLL.Const.GlyId)
{
strSql = @"SELECT * FROM dbo.View_EMC_Que_Punishment WHERE Flag='2' ";
}
else
{
strSql = @"SELECT * FROM dbo.View_EMC_Que_Punishment WHERE Flag='2' AND (Requisitioner=@userId or AuditMan=@userId or Violation_Inspector=@userId or Main_CoordinatorId=@userId) ";
}
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@userId", this.CurrUser.UserId));
if (!string.IsNullOrEmpty(this.txtFO_NO.Text.Trim()))
{
strSql += " AND FO_NO LIKE @FO_NO";