20241012 Contractor Quality Punishment设置查看全部权限

This commit is contained in:
2024-10-12 16:22:19 +08:00
parent 7d5c5d55c5
commit b7b87e2240
5 changed files with 27 additions and 7 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ namespace FineUIPro.Web.SES
private void BindGrid()
{
string strSql = string.Empty;
if (this.CurrUser.UserId == BLL.Const.GlyId)
var user = BLL.Sys_ButtonPowerService.GetButtonPowerByUserId(this.CurrUser.UserId);
if (this.CurrUser.UserId == BLL.Const.GlyId || user != null)
{
strSql = @"SELECT * FROM dbo.View_EMC_Que_Punishment WHERE Flag='2' ";
}
+1 -1
View File
@@ -391,7 +391,7 @@ namespace FineUIPro.Web.SES
{
string rootPath = Server.MapPath("~/") + Const.ExcelUrl;
//模板文件
string TempletFileName = rootPath + "Punishment.xlsx";
string TempletFileName = rootPath + "CSafePunish.xlsx";
//导出文件
string filePath = rootPath + DateTime.Now.ToString("yyyyMMddhhmmss") + "\\";
if (!Directory.Exists(filePath))