28 lines
768 B
C#
28 lines
768 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
/// <summary>
|
|
/// GlobalVariables 的摘要描述
|
|
/// </summary>
|
|
public static class GlobalVariables
|
|
{
|
|
// FNumberLock 已移除,因為改用資料庫直接取號,不再需要 Application 狀態鎖定
|
|
|
|
/// <summary>
|
|
/// 是否啟用 search_keywords 搜尋功能
|
|
/// </summary>
|
|
public static bool UseSearchKeywords
|
|
{
|
|
get
|
|
{
|
|
string configValue = ConfigurationManager.AppSettings["UseSearchKeywords"];
|
|
if (string.IsNullOrEmpty(configValue))
|
|
return false;
|
|
|
|
return configValue.Equals("true", StringComparison.OrdinalIgnoreCase);
|
|
}
|
|
}
|
|
} |