chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace 報到系統
|
||||
{
|
||||
public class PublicVariable : WebLib.PublicVariable
|
||||
{
|
||||
private static Random r = new Random();
|
||||
|
||||
// 常用變數
|
||||
public static string[] 換行分隔 = { "\r\n" };
|
||||
|
||||
#region SESSION 變數名稱
|
||||
public const string CompanyId = "CompanyId";
|
||||
public const string EmployeeId = "EmployeeId";
|
||||
public const string EmployeeName = "EmployeeName";
|
||||
public const string EmployeeFunction = "EmployeeFunction";
|
||||
public const string CurrentPlace = "CurrentPlace";
|
||||
public const string CurrentPlaceName = "CurrentPlaceName";
|
||||
public const string UserGroups = "UserGroups";
|
||||
public const string IsSystemManager = "IsSystemManager";
|
||||
public const string IsCustomManager = "IsCustomManager";
|
||||
public const string IsFieldStaffWorker = "IsFieldStaffWorker";
|
||||
public const string IsQueryWorker = "IsQueryWorker";
|
||||
#endregion
|
||||
|
||||
#region 系統設定變數,由 Global.asax 讀取 web.config 中的設定
|
||||
|
||||
/// <summary>
|
||||
/// 未登入時開放某些功能
|
||||
/// </summary>
|
||||
public static bool NoLoginFunction = false;
|
||||
|
||||
/// <summary>
|
||||
/// 系統管理員群組
|
||||
/// </summary>
|
||||
public static string SystemManagerGroup = "SG01";
|
||||
|
||||
/// <summary>
|
||||
/// 客戶管理員群組
|
||||
/// </summary>
|
||||
public static string CustomManagerGroup = "SG02";
|
||||
|
||||
/// <summary>
|
||||
/// 現場工作人員群組
|
||||
/// </summary>
|
||||
|
||||
public static string FieldStaffGroup = "SG03";
|
||||
|
||||
/// <summary>
|
||||
/// 查詢人員群組
|
||||
/// </summary>
|
||||
public static string QueryGroup = "SG04";
|
||||
|
||||
/// <summary>
|
||||
/// 總管理處ID
|
||||
/// </summary>
|
||||
public static int 總管理處ID = 2;
|
||||
|
||||
/// <summary>
|
||||
/// 人資部ID
|
||||
/// </summary>
|
||||
public static int 人資部ID = 8;
|
||||
|
||||
/// <summary>
|
||||
/// 目前使用的簡訊平台代碼(由 BWEX.CurrentMMSPlatform 載入)
|
||||
/// </summary>
|
||||
public static string CurrentMMSPlatform = "EVERY8D";
|
||||
#endregion
|
||||
|
||||
public PublicVariable()
|
||||
{
|
||||
SystemName = "Education";
|
||||
}
|
||||
|
||||
public static string SystemVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
|
||||
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
|
||||
return fvi.FileVersion;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user