搜尋身份證號, 電話功能選項
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
@@ -9,4 +10,19 @@ using System.Web;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user