20230428 意见收集
This commit is contained in:
@@ -472,5 +472,33 @@ namespace BLL
|
||||
return list;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断文件类型是否支持的预览
|
||||
/// </summary>
|
||||
/// <param name="FiletExtension"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsSupportFileType(string FiletExtension)
|
||||
{
|
||||
bool result = false;
|
||||
List<String> list = new List<string>();
|
||||
list.Add(".doc");
|
||||
list.Add(".docx");
|
||||
list.Add(".pdf");
|
||||
list.Add(".txt");
|
||||
list.Add(".xlsx");
|
||||
list.Add(".xls");
|
||||
foreach (var item in list)
|
||||
{
|
||||
if (item == FiletExtension)
|
||||
{
|
||||
result = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ namespace BLL
|
||||
var getUser = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
|
||||
if (getUser != null)
|
||||
{
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId||menuType==BLL.Const.Menu_Opinion)
|
||||
{
|
||||
isHave = true;
|
||||
}
|
||||
|
||||
@@ -735,6 +735,10 @@ namespace BLL
|
||||
/// 现场考勤
|
||||
/// </summary>
|
||||
public const string Menu_PDigData = "Menu_PDigData";
|
||||
/// <summary>
|
||||
/// 意见收集
|
||||
/// </summary>
|
||||
public const string Menu_Opinion = "Menu_Opinion";
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
@@ -2838,6 +2842,11 @@ namespace BLL
|
||||
/// 关键事项
|
||||
/// </summary>
|
||||
public const string GJSXMenuId = "0BEA2126-7A48-40EB-8E21-99148E91A22B";
|
||||
|
||||
/// <summary>
|
||||
/// 意见收集
|
||||
/// </summary>
|
||||
public const string OpinionCollectionMenuId = "D801290C-1FD9-4467-AFF9-7D788C6344B1";
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user