20240925 根据当前登录用户显示质量违章列表数据
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user