diff --git a/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user b/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user index fcf3204..accb770 100644 --- a/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ ShowAllFiles - Debug|Any CPU + Release|Any CPU true diff --git a/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.cs b/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.cs index 425c074..e1e658c 100644 --- a/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.cs +++ b/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.cs @@ -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 listStr = new List(); + listStr.Add(new SqlParameter("@userId", this.CurrUser.UserId)); if (!string.IsNullOrEmpty(this.txtFO_NO.Text.Trim())) { strSql += " AND FO_NO LIKE @FO_NO"; diff --git a/FCL/FineUIPro.Web/Web.config b/FCL/FineUIPro.Web/Web.config index 0e9c536..0bc7abb 100644 --- a/FCL/FineUIPro.Web/Web.config +++ b/FCL/FineUIPro.Web/Web.config @@ -54,7 +54,7 @@ - + diff --git a/FCL/WebApi/WebApi.csproj.user b/FCL/WebApi/WebApi.csproj.user index ca0d73e..643f3e5 100644 --- a/FCL/WebApi/WebApi.csproj.user +++ b/FCL/WebApi/WebApi.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU