60 Commits

Author SHA1 Message Date
2d3fb23c7b 產生:初始/範例DB的流程 2025-12-12 09:24:22 +08:00
169a771566 新增: 牌位自訂名稱 2025-11-29 10:56:19 +08:00
27f916eb9c 修正多處 LINQ-to-Entities 查詢,避免 Nullable .Contains()、.ToString()、Request[] 直接使用造成翻譯失敗。
API 查詢同步改寫 .Contains()、.OrderBy()、複雜 GroupBy/Math.Round,必要時 materialize 或加 HasValue。
Participation rate / kind breakdown 改在記憶體計算,同時檢查整數陣列 .Contains() 的型別安全性。
2025-11-14 23:40:55 +08:00
4fcbfb3801 修正 Entity Framework LINQ 查詢中的 .Date 屬性使用問題 2025-11-12 21:33:52 +08:00
b04c07a5eb 權限與靜態檔控制改進:
- 修正 admin 目錄預設頁路由,避免 403.14 與不必要的延遲重導
- 停用未使用的 Sites 多站點初始化,減少應用程式啟動成本
- 修正 Response.Redirect 後未 return 的流程,避免 1.8 分鐘超時
- 將資料庫 Connection Timeout 降為 10 秒,加速失敗回應
- 將 runAllManagedModulesForAllRequests 設為 false,讓 JS/CSS 等靜態檔案直接由 IIS 回應
2025-11-12 20:45:34 +08:00
ae09a6f487 STAGE 3-4 2025-11-12 18:57:51 +08:00
744eddcd77 STAGE 3-3 2025-11-12 18:30:04 +08:00
1d78bdd3d9 STAGE 3-2 2025-11-12 18:22:53 +08:00
8b8869fbde STAGE3-1 2025-11-12 18:18:01 +08:00
d41ad3e4cc STAGE3 OK 2025-11-12 18:13:09 +08:00
ba6e641bac STAGE 2 OK 2025-11-12 17:51:42 +08:00
9969417bd8 優化 FollowerController.cs 的子查詢性能
問題:
Line 345 將家族成員 ID 載入內存(ToList)
- 如果家族有 100+ 成員,載入 100-400 bytes

優化:
移除 ToList(),改為使用 IQueryable 子查詢
- var ccList = cc.ToList(); // 移除
- 直接使用 cc 進行 Contains 查詢
- 生成 SQL: WHERE num IN (SELECT...) OR leader IN (SELECT...)

效果:
✓ 減少內存占用:100-400 bytes → 0
✓ 完全在數據庫執行
✓ SQL 優化器可以更好地優化查詢計劃

對比:
- 原始版本(載入內存):2 次查詢
- 優化版本(子查詢):1 次查詢(最佳)
2025-11-12 17:30:53 +08:00
eff3ad778b 優化 adminUserController.cs 的子查詢性能
問題:
Line 93 將所有會員的 admin_num 載入內存(ToList)
- 如果有 10,000 個會員,載入 10,000 個 int (40KB)

優化:
改為使用 IQueryable 子查詢,在數據庫層面執行
- var usedAdminNums = _db.members.Select(b => b.admin_num);  // 不 ToList()
- 生成 SQL: WHERE num NOT IN (SELECT admin_num FROM members)

效果:
✓ 減少內存占用:40KB → 0
✓ 減少查詢次數:2 次 → 1 次
✓ SQL 優化器可以更好地優化查詢計劃

對比原始代碼:
- 原始(嵌套 AsEnumerable):N+1 查詢問題,執行 51 次
- ToList 版本:載入 40KB,執行 2 次
- 當前版本:不載入內存,執行 1 次(最佳)
2025-11-12 17:27:35 +08:00
bc1f1422e9 加入 TODO 註解標記需優化的查詢
標記位置:
1. GetFollowerOrders (Line 402)
   - 建議加入分頁或日期範圍限制

2. GetActivityFollowers (Line 1048)
   - 建議在數據庫層面過濾未完成沖帳項目
   - 考慮加入 Take() 或分頁

目的:
方便日後追蹤並優化性能瓶頸
2025-11-12 17:21:53 +08:00
1698b51d19 優化 transfer_registerController.cs 中的 AsEnumerable 位置
問題:
之前將某些 AsEnumerable() 改為 ToList() 可能導致數據過載

優化:
1. GetFollowerOrders (Line 420)
   - 改回 AsEnumerable()
   - 原因:雖然有 f_num 限制,但信眾可能有大量訂單
   - AsEnumerable() 確保數據庫查詢先執行,只在需要內存計算時才轉換

2. GetActivityFollowers (Line 1057)
   - 改回 AsEnumerable()
   - 原因:activity_num 限制可能包含大量訂單(數千條)
   - AsEnumerable() 避免將所有數據載入內存

保持不變:
- Line 240:follower 查詢的 ToList() 保持不變
  原因:Where(f.num == x.f_num) 限制為單一記錄
  需要在內存中執行解密操作

技術原則:
- AsEnumerable() 應該在「數據庫查詢完成後、內存計算前」使用
- ToList() 只在「確定數據量小」或「必須立即執行」時使用
- 解密等無法在數據庫執行的操作必須在內存中進行
2025-11-12 17:20:36 +08:00
4e26dd648d 完成 Batch 3:修復 4 個 API Controller 的 AsEnumerable 問題
修復文件(共 17 處):

1. supplierController.cs (6 處)
   - 移除簡單查詢的 AsEnumerable() (2 處)
   - AsEnumerable() → AsQueryable() (GetList, GetKindList)
   - 優化分頁查詢模式(Count + ToPagedList.ToList())(2 處)
   - 修復 Split().Select().ToList() 類型問題

2. adminUserController.cs (4 處)
   - 移除簡單查詢的 AsEnumerable()
   - AsEnumerable() → AsQueryable() (GetList)
   - 優化分頁查詢模式
   - 重構複雜查詢:移除嵌套的 AsEnumerable()
     改為先 ToList() 再使用 Contains

3. orderdetailController.cs (3 處)
   - 移除 AsEnumerable(),改為在查詢末端使用 OrderBy
   - 優化分頁查詢模式
   - 修復 null-propagating operator:
     .FirstOrDefault()?.print_id → .Select(u => u.print_id).FirstOrDefault()

4. transfer_registerController.cs (6 處)
   - AsEnumerable() → ToList() (需要解密操作的情況)
   - 保留在必要時才轉換到內存操作
   - 確保數據庫查詢先執行

技術改進:
✓ 複雜嵌套查詢優化(adminUserController)
✓ 解密操作前置優化(transfer_registerController)
✓ Null-propagating operator 替換為安全的 Select
✓ 統一使用三元運算符處理分頁
✓ IEnumerable<int> → List<int> 避免類型轉換錯誤
2025-11-12 17:18:12 +08:00
e20b250944 修復 FilesSetController.cs 中的類型錯誤
問題:
1. CS1061: files_num 是 int 類型,不是 int?
   - 錯誤地使用了 HasValue 和 .Value
2. CS0019: Count 應該使用方法調用 Count()

修復:
- 第 93 行:移除 HasValue 和 .Value
  改為直接使用 ids.Contains(q.files_num)
- 第 94 行:Count 改為 Count()

根因分析:
在 Model.actItem_files 中,files_num 定義為 int 類型
而不是 Nullable<int>,因此不需要 nullable 處理。
2025-11-12 17:12:40 +08:00
e88821db4b 完成 Batch 2:修復 4 個 API Controller 的 AsEnumerable 問題
修復文件(共 21 處):

1. newsController.cs (7 處)
   - 移除簡單查詢的 AsEnumerable()
   - AsEnumerable() → AsQueryable() (GetList, GetKindList)
   - 優化分頁查詢模式(Count + ToPagedList.ToList())
   - 修復 Split().Select().ToList() 類型問題

2. FilesSetController.cs (5 處)
   - 移除簡單查詢的 AsEnumerable()
   - AsEnumerable() → AsQueryable() (GetList)
   - 優化分頁查詢模式
   - 修復 files_num nullable 字段處理
   - 修復 Split().Select().ToList() 類型問題

3. bedController.cs (5 處)
   - 移除簡單查詢的 AsEnumerable()
   - AsEnumerable() → AsQueryable() (companies, bed_order_detail)
   - 優化分頁查詢模式
   - 簡化查詢條件

4. bed_kindController.cs (4 處)
   - AsEnumerable() → AsQueryable() (bed_kind, bed_kind_detail)
   - 優化分頁查詢模式(兩處)
   - 優化 bedDt 查詢:移除 AsEnumerable(),改用 Where + ToList()
   - 修復 bed_kind_detail_id nullable 字段處理

技術改進:
✓ 所有查詢改為在數據庫執行
✓ 統一使用三元運算符處理分頁
✓ Count 在分頁前執行
✓ 正確處理 nullable 字段(HasValue + .Value)
✓ IEnumerable<int> → List<int> 避免類型轉換錯誤
2025-11-12 17:11:05 +08:00
3f63457c5a 修復 memberController.cs 中 nullable 字段的處理
問題:
1. CS1503: mem_num 是 int? 類型,不能直接用於 Contains(int)
2. CS0019: Count 應該使用方法調用 Count()

修復:
- 第 110 行:加入 HasValue 檢查和 .Value 取值
- 第 111 行:使用 Count() 方法而非 Count 屬性

技術說明:
在 LINQ to Entities 中處理 nullable 字段時,必須:
1. 使用 HasValue 檢查是否有值
2. 使用 .Value 取得實際值
3. 確保類型匹配以便正確生成 SQL 查詢

相關文件已正確處理:
✓ accountingController.cs (第 97 行)
✓ stockController.cs (第 92 行)
2025-11-12 17:04:03 +08:00
9a0d5ae700 修復 Batch 1 中 IEnumerable.Contains 的型別轉換問題
問題:
- Split().Select(int.Parse) 返回 IEnumerable<int>
- LINQ to Entities 中使用 Contains 需要具體集合類型

修復:
- 在所有 Split().Select() 後加 .ToList()
- 確保 EF 可以將 Contains 轉換為 SQL IN 子句

影響文件:
- memberController.cs (2 處)
- accountingController.cs (1 處)
- FollowerController.cs (1 處)
- stockController.cs (1 處)

技術說明:
LINQ to Entities 要求 Contains 的集合參數是具體化的集合(List/Array),
而不能是延遲執行的 IEnumerable,以便正確生成 SQL 查詢。
2025-11-12 17:01:49 +08:00
79b7dd114f 修復 Batch 1: FollowerController, memberController, accountingController, stockController
- FollowerController.cs: 8 處修復
- memberController.cs: 9 處修復
- accountingController.cs: 8 處修復
- stockController.cs: 8 處修復

總計 33 處,覆蓋會員、財務、庫存核心功能
2025-11-12 16:37:59 +08:00
cd05ad2305 phase 2 2025-11-12 16:20:51 +08:00
5ae262205c 更新查詢方式 2025-11-12 15:58:20 +08:00
6f5a2e65bd Merge branch 'main' of https://git.17888.com.tw/yiming/17168ERP
# Conflicts:
#	web/admin/guadan/create.aspx
2025-11-12 12:53:25 +08:00
22d283dbe6 增加JSON IGNORE設定 2025-11-12 12:50:13 +08:00
3b5d366863 修改URL錯誤 2025-11-07 10:26:49 +08:00
c0404b8e70 添加sql執行文件,執行該文件就可以正常使用掛單和神祖牌位模組 2025-11-06 09:25:45 +08:00
1a6731e4c6 Merge remote-tracking branch 'origin/hkj1003' 2025-11-05 13:18:03 +08:00
b776b411b4 上传资料库结构 2025-10-29 13:54:27 +08:00
e9f17a5037 神祖牌位管理模組,掛單模組前端URL添加HTTP_HOST 2025-10-29 13:48:20 +08:00
05ef2e28f3 UPDATE 2025-10-20 11:54:40 +08:00
90ef949ca4 Merge remote-tracking branch 'origin/hkj1003' 2025-10-19 22:02:28 +08:00
39c9dd29e1 Merge branch 'yiming1013' 2025-10-19 22:01:45 +08:00
a6aa35176c Merge branch 'main' of https://git.17888.com.tw/yiming/17168ERP 2025-10-19 22:00:45 +08:00
6a43883d08 查詢範例 2025-10-19 21:59:22 +08:00
7d36d6b0a6 掛單調整 2025-10-14 13:44:23 +08:00
87a2c35300 Merge branch 'main' of https://git.17888.com.tw/yiming/17168ERP into yiming1013 2025-10-13 00:06:38 +08:00
7d57e292fe update doc 2025-10-13 00:04:59 +08:00
6fc82510cc 在掛單資料頁面,增加判斷掛單是否超時 2025-10-09 16:49:32 +08:00
4a36ce9c1c 挂单资料增加挂单单号查询,增加显示挂单单号 2025-10-03 16:41:34 +08:00
63cab37c87 Merge pull request 'hkj0918' (#2) from hkj0918 into main
Reviewed-on: #2
2025-10-03 08:12:49 +00:00
cd1e5c2cd0 挂单综合状态调整 2025-10-03 16:04:49 +08:00
d7b0f29296 统计修改 2025-10-03 14:37:33 +08:00
79854a2618 Merge pull request 'hkj0918' (#1) from hkj0918 into main
Reviewed-on: #1
2025-09-30 08:38:54 +00:00
93aaffd3d8 处理新建区域的时候出现的问题 2025-09-30 16:37:05 +08:00
71490b1fac guadan 2025-09-25 15:18:34 +08:00
c6bd763485 Merge remote-tracking branch 'origin/guadan0905' 2025-09-17 23:23:01 +08:00
ad06b77fae 添加生成舒文异常处理 2025-09-17 17:40:44 +08:00
af5b1f71fb 添加生成舒文异常处理 2025-09-17 17:38:29 +08:00
104f95eaec 修改舒文,牌位预览列印 2025-09-17 17:31:34 +08:00
c38dc55dff 处理挂单测试问题 2025-09-16 17:53:38 +08:00
40da17b414 调整挂单统计,修改删除区域报错 2025-09-16 11:49:02 +08:00
f1e3f555e6 修改资料库结构 2025-09-15 16:23:38 +08:00
72db7ca928 挂单模块URL 2025-09-15 14:24:31 +08:00
ebad44be71 挂单查询 2025-09-15 14:16:12 +08:00
68f2733530 Update data/SQL/17168_db_schema.sql 2025-09-15 02:34:28 +00:00
d752a01cc7 更新SCHEMA SQL,
疏文下載改相對路徑
2025-09-15 01:22:45 +08:00
03e366c34a Merge branch 'guadan0905' 2025-09-15 00:49:38 +08:00
69b9b1bbd1 资料库数据文件上传 2025-09-12 15:45:11 +08:00
4419dfff64 把资料库产色的几个文件提交,汇出挂单功能的数据,状态数据要有才能运行 2025-09-12 13:48:04 +08:00
248 changed files with 37264 additions and 1707 deletions

3
.gitignore vendored
View File

@@ -4,4 +4,5 @@
packages
obj/
*.user
*.log
*.log
**website.publishproj

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,176 @@
USE [17168erp_t2]
GO
/****** Object: Table [dbo].[AncestralTabletArea] Script Date: 2025/10/29 下午 01:32:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AncestralTabletArea](
[AreaId] [int] IDENTITY(1,1) NOT NULL,
[AreaName] [nvarchar](10) NOT NULL,
[AreaCode] [nvarchar](20) NOT NULL,
[ParentAreaId] [int] NULL,
[AreaType] [nvarchar](10) NULL,
[Price] [int] NULL,
[SortOrder] [int] NULL,
[IsDisabled] [bit] NOT NULL,
[Description] [nvarchar](200) NULL,
PRIMARY KEY CLUSTERED
(
[AreaId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[AncestralTabletPosition] Script Date: 2025/10/29 下午 01:32:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AncestralTabletPosition](
[PositionId] [int] IDENTITY(1,1) NOT NULL,
[AreaId] [int] NOT NULL,
[PositionCode] [nvarchar](20) NOT NULL,
[PositionName] [nvarchar](50) NULL,
[Price] [int] NULL,
[StatusCode] [nvarchar](20) NULL,
[Description] [nvarchar](200) NULL,
[RowNo] [int] NULL,
[ColumnNo] [int] NULL,
PRIMARY KEY CLUSTERED
(
[PositionId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY],
CONSTRAINT [UQ_Position_Area_Code] UNIQUE NONCLUSTERED
(
[AreaId] ASC,
[PositionCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[AncestralTabletPositionRecord] Script Date: 2025/10/29 下午 01:32:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AncestralTabletPositionRecord](
[RecordId] [int] IDENTITY(1,1) NOT NULL,
[RegistrantCode] [nvarchar](20) NOT NULL,
[NPTitle] [nvarchar](30) NULL,
[NPStandDate] [date] NOT NULL,
[NPYangShang] [nvarchar](20) NULL,
[WPContent] [nvarchar](1000) NULL,
[CreatedAt] [datetime] NOT NULL,
[UpdatedAt] [datetime] NULL,
PRIMARY KEY CLUSTERED
(
[RecordId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[AncestralTabletRegistrant] Script Date: 2025/10/29 下午 01:32:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AncestralTabletRegistrant](
[RegistrantCode] [nvarchar](20) NOT NULL,
[Name] [nvarchar](50) NOT NULL,
[Phone] [nvarchar](50) NULL,
[Address] [nvarchar](60) NULL,
[RegisterDate] [date] NOT NULL,
[Price] [int] NULL,
[PositionId] [int] NULL,
[StartDate] [date] NOT NULL,
[EndDate] [date] NULL,
[IsLongTerm] [bit] NOT NULL,
[IsActive] [bit] NOT NULL,
[CreatedAt] [datetime] NOT NULL,
[UpdatedAt] [datetime] NULL,
[IsEnd] [bit] NOT NULL,
PRIMARY KEY CLUSTERED
(
[RegistrantCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[AncestralTabletStatus] Script Date: 2025/10/29 下午 01:32:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AncestralTabletStatus](
[StatusCode] [nvarchar](20) NOT NULL,
[StatusName] [nvarchar](20) NOT NULL,
[StatusType] [nvarchar](20) NOT NULL,
PRIMARY KEY CLUSTERED
(
[StatusCode] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AncestralTabletArea] ADD DEFAULT ((0)) FOR [IsDisabled]
GO
ALTER TABLE [dbo].[AncestralTabletPositionRecord] ADD DEFAULT (getdate()) FOR [CreatedAt]
GO
ALTER TABLE [dbo].[AncestralTabletRegistrant] ADD DEFAULT ((0)) FOR [IsLongTerm]
GO
ALTER TABLE [dbo].[AncestralTabletRegistrant] ADD DEFAULT ((1)) FOR [IsActive]
GO
ALTER TABLE [dbo].[AncestralTabletRegistrant] ADD DEFAULT (getdate()) FOR [CreatedAt]
GO
ALTER TABLE [dbo].[AncestralTabletRegistrant] ADD DEFAULT ((0)) FOR [IsEnd]
GO
ALTER TABLE [dbo].[AncestralTabletArea] WITH CHECK ADD CONSTRAINT [FK_AncestralTabletArea_Parent] FOREIGN KEY([ParentAreaId])
REFERENCES [dbo].[AncestralTabletArea] ([AreaId])
GO
ALTER TABLE [dbo].[AncestralTabletArea] CHECK CONSTRAINT [FK_AncestralTabletArea_Parent]
GO
ALTER TABLE [dbo].[AncestralTabletPosition] WITH CHECK ADD CONSTRAINT [FK_Position_Area] FOREIGN KEY([AreaId])
REFERENCES [dbo].[AncestralTabletArea] ([AreaId])
GO
ALTER TABLE [dbo].[AncestralTabletPosition] CHECK CONSTRAINT [FK_Position_Area]
GO
ALTER TABLE [dbo].[AncestralTabletPosition] WITH CHECK ADD CONSTRAINT [FK_Position_Status] FOREIGN KEY([StatusCode])
REFERENCES [dbo].[AncestralTabletStatus] ([StatusCode])
GO
ALTER TABLE [dbo].[AncestralTabletPosition] CHECK CONSTRAINT [FK_Position_Status]
GO
ALTER TABLE [dbo].[AncestralTabletPositionRecord] WITH CHECK ADD FOREIGN KEY([RegistrantCode])
REFERENCES [dbo].[AncestralTabletRegistrant] ([RegistrantCode])
GO
ALTER TABLE [dbo].[AncestralTabletRegistrant] WITH CHECK ADD CONSTRAINT [FK_Registrant_Position] FOREIGN KEY([PositionId])
REFERENCES [dbo].[AncestralTabletPosition] ([PositionId])
GO
ALTER TABLE [dbo].[AncestralTabletRegistrant] CHECK CONSTRAINT [FK_Registrant_Position]
GO
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'available', N'可用', N'Position')
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'maintenance', N'維護中', N'Position')
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'used', N'已使用', N'Position')
GO
-- 1. 如果不存在 OrderUuid 栏位,则新增
IF NOT EXISTS (
SELECT 1
FROM sys.columns
WHERE Name = N'OrderUuid'
AND Object_ID = Object_ID(N'dbo.GuaDanOrderGuest')
)
BEGIN
ALTER TABLE [dbo].[GuaDanOrderGuest]
ADD [OrderUuid] UNIQUEIDENTIFIER NULL;
END
GO
-- 2. 如果不存在 FK_GuaDanOrderGuest_Order 外键,则新增
IF NOT EXISTS (
SELECT 1
FROM sys.foreign_keys
WHERE Name = N'FK_GuaDanOrderGuest_Order'
AND parent_object_id = OBJECT_ID(N'dbo.GuaDanOrderGuest')
)
BEGIN
ALTER TABLE [dbo].[GuaDanOrderGuest]
ADD CONSTRAINT [FK_GuaDanOrderGuest_Order]
FOREIGN KEY ([OrderUuid]) REFERENCES [dbo].[GuaDanOrder] ([Uuid]);
END
GO

Binary file not shown.

BIN
data/initdb/db_demo.sql Normal file

Binary file not shown.

BIN
data/initdb/db_init.sql Normal file

Binary file not shown.

87
data/initdb/droptable.sql Normal file
View File

@@ -0,0 +1,87 @@
-- 刪除所有表格 (依外鍵關聯逆序)
use [17168erp_demo]
-- Batch 7
DROP TABLE [dbo].[pro_order_record];
-- Batch 6
DROP TABLE [dbo].[RegionAndRoomAndBedSchedule];
DROP TABLE [dbo].[transfer_register];
DROP TABLE [dbo].[stock_files];
DROP TABLE [dbo].[accounting_files];
DROP TABLE [dbo].[bed_order_detail];
-- Batch 5
DROP TABLE [dbo].[ShuWen];
DROP TABLE [dbo].[GuaDanOrderGuest];
DROP TABLE [dbo].[AncestralTabletPositionRecord];
DROP TABLE [dbo].[project_sub];
DROP TABLE [dbo].[stock];
DROP TABLE [dbo].[accounting];
DROP TABLE [dbo].[bed_order];
-- Batch 4
DROP TABLE [dbo].[RegionRoomBed];
DROP TABLE [dbo].[AncestralTabletRegistrant];
DROP TABLE [dbo].[news_files];
DROP TABLE [dbo].[project];
DROP TABLE [dbo].[member_check];
DROP TABLE [dbo].[pro_order_detail];
-- Batch 3
DROP TABLE [dbo].[admin_log];
DROP TABLE [dbo].[Room];
DROP TABLE [dbo].[AncestralTabletPosition];
DROP TABLE [dbo].[news];
DROP TABLE [dbo].[activity_spares];
DROP TABLE [dbo].[activity_relating];
DROP TABLE [dbo].[activity_kind_detail];
DROP TABLE [dbo].[actItem_files];
DROP TABLE [dbo].[act_bom];
DROP TABLE [dbo].[GuaDanOrder];
DROP TABLE [dbo].[followers_tablet];
DROP TABLE [dbo].[family_members];
DROP TABLE [dbo].[activity_check];
DROP TABLE [dbo].[pro_order];
DROP TABLE [dbo].[member];
-- Batch 2
DROP TABLE [dbo].[Region];
DROP TABLE [dbo].[AncestralTabletArea];
DROP TABLE [dbo].[bed_kind_detail];
DROP TABLE [dbo].[supplier];
DROP TABLE [dbo].[activity];
DROP TABLE [dbo].[followers];
DROP TABLE [dbo].[actItem];
DROP TABLE [dbo].[admin];
-- Batch 1
DROP TABLE [dbo].[supplier_kind];
DROP TABLE [dbo].[stock_kind];
DROP TABLE [dbo].[project_kind];
DROP TABLE [dbo].[news_kind];
DROP TABLE [dbo].[member_title];
DROP TABLE [dbo].[member_group];
DROP TABLE [dbo].[bed_kind];
DROP TABLE [dbo].[appellation];
DROP TABLE [dbo].[activity_kind];
DROP TABLE [dbo].[activity_category_kind];
DROP TABLE [dbo].[actItem_kind];
DROP TABLE [dbo].[accounting_kind2];
DROP TABLE [dbo].[accounting_kind];
DROP TABLE [dbo].[GuadanTimeSetting];
DROP TABLE [dbo].[stock_reason];
DROP TABLE [dbo].[RegionType];
DROP TABLE [dbo].[RegionRoomBedStatus];
DROP TABLE [dbo].[AncestralTabletStatus];
DROP TABLE [dbo].[PostNumber];
DROP TABLE [dbo].[PostCity];
DROP TABLE [dbo].[item];
DROP TABLE [dbo].[files];
DROP TABLE [dbo].[country];
DROP TABLE [dbo].[company];
DROP TABLE [dbo].[admin_group];
-- Views
DROP VIEW [dbo].[];
DROP VIEW [dbo].[];

View File

View File

View File

View File

@@ -0,0 +1,35 @@
SET IDENTITY_INSERT [dbo].[accounting_kind] ON
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (6, N'收入', 0, 1, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (7, N'支出', 0, 2, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (16, N'支出/雜費', 0, 11, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (18, N'支出/餐費', 0, 13, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (20, N'支出/迎請佛像支出', 0, 15, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (22, N'支出/文具用品費', 0, 17, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (23, N'支出/水電修繕費', 0, 18, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (27, N'收入/法會收入/功德項目', 0, 22, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (28, N'收入/法會收入/普桌', 0, 23, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (29, N'收入/法會收入/供花果', 0, 24, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (30, N'收入/法會收入/打齋', 0, 25, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (31, N'收入/法會收入/打齋/隨喜齋', 0, 26, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (32, N'收入/法會收入/打齋/羅漢齋', 0, 27, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (33, N'收入/法會收入/打齋/如意齋', 0, 28, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (34, N'收入/法會收入/打齋/吉祥齋', 0, 29, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (35, N'收入/法會收入/打齋/護法齋', 0, 30, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (36, N'收入/法會收入/打齋/海眾大齋', 0, 31, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (37, N'收入/法會收入/打齋/福壽大齋', 0, 32, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (39, N'支出/文具用品費/DM/派報費用', 0, 34, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (40, N'支出/文具用品費/DM/印刷費', 0, 35, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (41, N'收入/法會收入/功德項目/總功德主', 0, 36, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (42, N'收入/法會收入/功德項目/副總功德主', 0, 37, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (43, N'收入/法會收入/功德項目/福慧主', 0, 38, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (44, N'收入/法會收入/功德項目/利益主', 0, 39, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (45, N'收入/法會收入/功德項目/個人大牌', 0, 40, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (46, N'收入/法會收入/功德項目/個人中牌', 0, 41, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (47, N'收入/法會收入/功德項目/隨喜牌位', 0, 42, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (48, N'收入/其他收入', 0, 43, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (49, N'支出/人事費用.', 0, 44, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (50, N'支出/其他支出', 0, 45, N'', N'')
INSERT [dbo].[accounting_kind] ([num], [kind], [root], [range], [demo], [title]) VALUES (54, N'DM', 22, 1, N'', N'')
SET IDENTITY_INSERT [dbo].[accounting_kind] OFF
GO

View File

@@ -0,0 +1,9 @@
SET IDENTITY_INSERT [dbo].[accounting_kind2] ON
INSERT [dbo].[accounting_kind2] ([num], [kind], [root], [range], [demo], [title], [bank_name], [bank_code], [bank_id], [record_payment]) VALUES (5, N'台灣企銀', 0, 1, N'', N'', N'中正分行', N'財團法人示範基金會', N'1111111111', N'Y')
INSERT [dbo].[accounting_kind2] ([num], [kind], [root], [range], [demo], [title], [bank_name], [bank_code], [bank_id], [record_payment]) VALUES (12, N'彰化銀行', 0, 8, N'', N'', N'信義分行', N'示範教育協會', N'2222222222', NULL)
INSERT [dbo].[accounting_kind2] ([num], [kind], [root], [range], [demo], [title], [bank_name], [bank_code], [bank_id], [record_payment]) VALUES (15, N'華南銀行', 0, 10, N'', N'', N'民生分行', N'示範文化協會', N'3333333333', NULL)
INSERT [dbo].[accounting_kind2] ([num], [kind], [root], [range], [demo], [title], [bank_name], [bank_code], [bank_id], [record_payment]) VALUES (16, N'現金', 0, 11, N'', N'', N'', N'', N'', N'Y')
INSERT [dbo].[accounting_kind2] ([num], [kind], [root], [range], [demo], [title], [bank_name], [bank_code], [bank_id], [record_payment]) VALUES (17, N'第一銀行', 0, 12, N'', N'', N'敦化分行', N'示範慈善協會', N'4444444444', NULL)
SET IDENTITY_INSERT [dbo].[accounting_kind2] OFF
GO

View File

@@ -0,0 +1,54 @@
SET IDENTITY_INSERT [dbo].[actItem] ON
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1237, NULL, N'總懺主', N'總懺', 63, 1000000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1241, N'', N'消災-大牌位', N'X', 64, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1242, N'', N'超冤-大牌位', N'S', 68, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1243, N'', N'超薦-大牌位', N'S', 65, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1244, N'', N'消災-個人大牌', N'大X', 63, 3000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1245, N'', N'超冤-個人大牌', N'大S', 63, 3000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1246, N'', N'超薦-個人大牌', N'大S', 63, 3000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1247, N'', N'消災-個人中牌', N'中X', 63, 1000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1248, N'', N'超冤-個人中牌', N'中S', 63, 1000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1249, N'', N'超薦-個人中牌', N'中S', 63, 1000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1250, N'', N'消災-隨喜牌位', N'隨X', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1251, N'', N'超冤-隨喜牌位', N'隨S', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1252, N'', N'超薦-隨喜牌位', N'隨S', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1253, N'', N'消災-常年牌位', N'', 63, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1254, N'', N'超冤-常年牌位', N'', 63, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1255, N'', N'超薦-常年牌位', N'', 63, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1256, NULL, N'消災-急立牌位', N'', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1257, NULL, N'超薦-急立牌位', N'', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1258, NULL, N'超冤-急立牌位', N'', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1260, N'', N'副總懺主', N'副總', 63, 500000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.320' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1261, N'', N'正懺主', N'正懺', 63, 300000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.477' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1262, N'', N'副懺主', N'副懺', 63, 100000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.550' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1263, N'', N'延壽主', N'延壽', 63, 50000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.620' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1264, N'', N'如意主', N'如意', 63, 10000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.720' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1265, N'', N'普桌-領回', N'', 63, 2000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.797' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1266, N'', N'普桌-代捐慈善', N'', 63, 2000, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.877' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1267, N'', N'海眾大齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:56.960' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1268, N'', N'福壽大齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:57.040' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1269, N'', N'護法齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:57.113' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1270, N'', N'吉祥齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:57.180' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1271, N'', N'如意齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:57.243' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1272, N'', N'羅漢齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:57.313' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1273, N'', N'隨喜齋', NULL, 63, NULL, N'Y', N'', N'N', NULL, 1, N'', CAST(N'2024-10-22T11:09:57.383' AS DateTime), NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1276, N'', N'供花果', N'', 38, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1277, N'', N'供佛', N'', 38, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1278, N'', N'供僧', N'', 38, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1289, N'', N'總功德主', N'總功德主', 63, 100000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1290, N'', N'副總功德主', N'副總功德主', 63, 50000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1291, N'', N'福慧主', N'福慧主', 63, 30000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1292, N'', N'利益主', N'利益主', 63, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1297, N'', N'111', N'', 63, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1298, N'', N'大殿西方三聖佛前蓮花燈', N'', NULL, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1299, N'', N'大殿西方九品蓮花燈', N'', NULL, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1300, N'', N'大殿四大菩薩光明燈', N'', NULL, 10000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1301, N'', N'韋陀殿護法蓮花光明燈', N'', NULL, 3000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1302, N'', N'許願觀音蓮花燈', N'', NULL, 3000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1303, N'', N'智慧燈', N'', NULL, 1000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1304, N'', N'事業燈', N'', NULL, 1000, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1305, N'', N'平安隨喜燈', N'', NULL, NULL, N'Y', N'', N'N', NULL, 1, N'', NULL, NULL)
INSERT [dbo].[actItem] ([num], [partno], [subject], [print_init], [kind], [price], [status], [demo], [extend], [cycle], [category], [customize_data], [reg_time], [is_reconcile]) VALUES (1306, N'', N'1', N'', 35, NULL, N'Y', N'', N'N', NULL, 3, N'', NULL, NULL)
SET IDENTITY_INSERT [dbo].[actItem] OFF
GO

View File

@@ -0,0 +1,37 @@
SET IDENTITY_INSERT [dbo].[actItem_files] ON
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (239, 1242, 33, CAST(N'2024-10-24T13:08:38.553' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (240, 1241, 25, CAST(N'2024-10-24T14:28:11.547' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (241, 1243, 33, CAST(N'2024-10-24T14:31:00.227' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (242, 1244, 26, CAST(N'2024-10-24T14:31:06.857' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (245, 1244, 27, CAST(N'2024-10-24T14:31:18.810' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (246, 1244, 44, CAST(N'2024-10-24T14:31:24.693' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (248, 1245, 34, CAST(N'2024-10-24T14:32:44.890' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (249, 1245, 35, CAST(N'2024-10-24T14:32:48.370' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (250, 1245, 45, CAST(N'2024-10-24T14:33:07.513' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (251, 1246, 34, CAST(N'2024-10-24T14:33:11.513' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (252, 1246, 35, CAST(N'2024-10-24T14:33:14.860' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (253, 1246, 45, CAST(N'2024-10-24T14:33:21.523' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (254, 1247, 28, CAST(N'2024-10-24T14:33:28.810' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (255, 1247, 29, CAST(N'2024-10-24T14:33:31.757' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (256, 1247, 30, CAST(N'2024-10-24T14:33:41.223' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (257, 1248, 36, CAST(N'2024-10-24T14:33:49.580' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (258, 1248, 37, CAST(N'2024-12-20T15:58:07.493' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (259, 1248, 38, CAST(N'2024-10-24T14:34:19.997' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (261, 1249, 36, CAST(N'2024-10-24T14:34:32.730' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (262, 1249, 37, CAST(N'2024-10-24T14:34:35.753' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (263, 1249, 38, CAST(N'2024-10-24T14:34:47.850' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (264, 1250, 31, CAST(N'2024-10-24T14:34:56.130' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (265, 1250, 32, CAST(N'2024-10-24T14:35:02.807' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (266, 1251, 39, CAST(N'2024-10-24T14:35:11.087' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (267, 1251, 40, CAST(N'2024-10-24T14:35:14.883' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (268, 1252, 39, CAST(N'2024-10-24T14:35:19.710' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (269, 1252, 40, CAST(N'2024-10-24T14:35:32.290' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (271, 1253, 25, CAST(N'2024-10-24T14:36:07.100' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (272, 1254, 33, CAST(N'2024-10-24T14:36:12.227' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (273, 1255, 33, CAST(N'2024-10-24T14:36:18.920' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (274, 1256, 25, CAST(N'2024-10-24T14:36:22.880' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (275, 1257, 33, CAST(N'2024-10-24T14:36:26.457' AS DateTime))
INSERT [dbo].[actItem_files] ([num], [actItem_num], [files_num], [reg_time]) VALUES (276, 1258, 33, CAST(N'2024-10-24T14:36:29.467' AS DateTime))
SET IDENTITY_INSERT [dbo].[actItem_files] OFF
GO

View File

@@ -0,0 +1,18 @@
SET IDENTITY_INSERT [dbo].[actItem_kind] ON
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (35, N'法會', 0, 33, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (38, N'功德', 35, 1, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (39, N'打齋', 35, 2, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (40, N'備品', 35, 3, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (57, N'慈善', 0, 35, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (58, N'物資捐贈', 57, 1, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (59, N'愛心便當', 57, 2, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (61, N'義賣', 57, 4, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (62, N'捐款', 57, 5, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (63, N'功德主', 38, 1, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (64, N'消災牌位', 38, 2, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (65, N'超薦牌位', 38, 3, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (66, N'個人', 35, 5, N'', N'Y')
INSERT [dbo].[actItem_kind] ([num], [kind], [root], [range], [demo], [status]) VALUES (68, N'超冤牌位', 38, 4, N'', N'N')
SET IDENTITY_INSERT [dbo].[actItem_kind] OFF
GO

View File

@@ -0,0 +1,82 @@
SET IDENTITY_INSERT [dbo].[act_bom] ON
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (48, NULL, 1237, NULL, NULL, NULL, 10, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (49, 48, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (50, 48, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (51, 48, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (52, NULL, 1260, NULL, NULL, NULL, 10, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (53, NULL, 1261, NULL, NULL, NULL, 10, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (54, NULL, 1262, NULL, NULL, NULL, 10, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (55, NULL, 1263, NULL, NULL, NULL, 10, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (56, NULL, 1264, NULL, NULL, NULL, 10, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (57, 52, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (58, 52, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (59, 52, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (60, 53, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (61, 53, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (62, 53, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (63, 54, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (64, 54, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (65, 54, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (66, 55, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (67, 55, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (68, 55, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (69, 56, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (70, 56, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (71, 56, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (72, NULL, 1277, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (73, 72, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (74, NULL, 1289, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (75, 74, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (76, 74, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (77, 74, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (78, NULL, 1290, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (79, 78, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (80, 78, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (81, 78, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (82, NULL, 1291, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (83, 82, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (84, 82, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (85, 82, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (86, NULL, 1292, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (87, 86, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (88, 86, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (89, 86, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (90, NULL, 1278, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (91, NULL, 1297, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (92, NULL, 1298, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (93, 92, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (94, 92, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (95, 92, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (96, NULL, 1299, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (97, 96, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (98, 96, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (99, 96, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (100, NULL, 1300, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (101, 100, 1241, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (102, 100, 1242, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (103, 100, 1243, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (104, NULL, 1301, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (105, 104, 1244, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (106, 104, 1245, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (107, 104, 1246, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (108, NULL, 1302, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (109, 108, 1244, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (110, 108, 1245, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (111, 108, 1246, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (112, NULL, 1303, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (113, 112, 1247, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (114, 112, 1248, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (115, 112, 1249, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (116, NULL, 1304, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (117, 116, 1247, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (118, 116, 1248, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (119, 116, 1249, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (120, NULL, 1305, NULL, NULL, NULL, 0, N'')
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (121, 120, 1250, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (122, 120, 1251, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (123, 120, 1252, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (124, 48, 1276, NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[act_bom] ([num], [package_num], [item_num], [item_type], [group_name], [optional], [qty], [memo]) VALUES (125, NULL, 1306, NULL, NULL, NULL, 2, N'')
SET IDENTITY_INSERT [dbo].[act_bom] OFF
GO

View File

@@ -0,0 +1,18 @@
SET IDENTITY_INSERT [dbo].[activity] ON
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (34, NULL, N'冬令救濟-恭誦梁皇寶懺法會', NULL, N'', CAST(N'2024-12-17T00:00:00.000' AS DateTime), CAST(N'2024-12-22T00:00:00.000' AS DateTime), N'', NULL, NULL, NULL, NULL, NULL, CAST(N'2024-12-17T00:00:00.000' AS DateTime), NULL, CAST(N'2024-10-17T14:34:39.580' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (36, 31, N'例行性牌位', NULL, NULL, CAST(N'2025-01-01T00:00:00.000' AS DateTime), CAST(N'2025-12-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2113-05-29T00:00:00.000' AS DateTime), NULL, CAST(N'2024-11-08T16:23:43.207' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (37, 33, N'(梁皇法會)', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-12-31T00:00:00.000' AS DateTime), NULL, CAST(N'2024-11-19T09:55:15.223' AS DateTime), NULL, 5)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (38, 31, N'114年新春點燈祈福法會', NULL, NULL, CAST(N'2025-02-14T00:00:00.000' AS DateTime), CAST(N'2025-02-16T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-02-17T00:00:00.000' AS DateTime), NULL, CAST(N'2025-01-02T16:15:38.407' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (39, 33, N'(新春法會)', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-02-16T00:00:00.000' AS DateTime), NULL, CAST(N'2025-02-11T14:58:51.503' AS DateTime), NULL, 5)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (44, 31, N'普渡活動', NULL, NULL, CAST(N'2026-01-01T00:00:00.000' AS DateTime), CAST(N'2026-01-01T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-02-28T00:00:00.000' AS DateTime), NULL, CAST(N'2025-02-19T10:00:16.197' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (46, 33, N'(清明法會)', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-03-31T00:00:00.000' AS DateTime), NULL, CAST(N'2025-03-05T15:17:03.883' AS DateTime), NULL, 3)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (48, 31, N'114年度清明祭祖法會', NULL, NULL, CAST(N'2025-03-01T00:00:00.000' AS DateTime), CAST(N'2025-03-31T00:00:00.000' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-03-31T00:00:00.000' AS DateTime), NULL, CAST(N'2025-03-12T14:18:13.620' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (59, 38, N'114年度地藏法會', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-09-21T00:00:00.000' AS DateTime), NULL, CAST(N'2025-08-18T16:37:11.240' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (60, 38, N'114年度地藏法會(結緣)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-09-21T00:00:00.000' AS DateTime), NULL, CAST(N'2025-08-18T16:38:12.923' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (61, 38, N'普渡活動2', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-09-13T00:00:00.000' AS DateTime), NULL, CAST(N'2025-09-12T15:11:28.980' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (62, 40, N'114年度梁皇法會', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-11-24T00:00:00.000' AS DateTime), NULL, CAST(N'2025-10-28T13:40:05.680' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (63, 40, N'114年度梁皇法會(結緣)', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-11-24T00:00:00.000' AS DateTime), NULL, CAST(N'2025-10-28T13:40:30.403' AS DateTime), NULL, 4)
INSERT [dbo].[activity] ([num], [kind], [subject], [print_init], [address], [startDate_solar], [endDate_solar], [hall], [start_sexagenary], [end_sexagenary], [monk], [startDate_lunar], [endDate_lunar], [dueDate], [demo], [reg_time], [customize_data], [category_kind]) VALUES (64, 40, N'114年度捐贈梁皇法會', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CAST(N'2025-11-23T00:00:00.000' AS DateTime), NULL, CAST(N'2025-11-03T17:09:43.887' AS DateTime), NULL, 4)
SET IDENTITY_INSERT [dbo].[activity] OFF
GO

View File

@@ -0,0 +1,12 @@
SET IDENTITY_INSERT [dbo].[activity_category_kind] ON
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (3, N'道場活動', 0, 3)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (4, N'法會', 3, 1)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (5, N'基金會活動', 0, 4)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (7, N'佛禪課程', 3, 2)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (9, N'愛心供食', 5, 1)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (10, N'慈善救助', 5, 2)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (11, N'品德教育', 5, 3)
INSERT [dbo].[activity_category_kind] ([num], [kind], [root], [range]) VALUES (13, N'募緣', 3, 4)
SET IDENTITY_INSERT [dbo].[activity_category_kind] OFF
GO

View File

@@ -0,0 +1,12 @@
SET IDENTITY_INSERT [dbo].[activity_kind] ON
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (31, N'法會', 0, 1, N'', N'國曆', 1, 1)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (33, N'慈善救助', 0, 2, N'', NULL, NULL, NULL)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (36, N'品德教育', 0, 3, N'', NULL, NULL, NULL)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (37, N'沐足孝親活動', 36, 1, N'', NULL, NULL, NULL)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (38, N'中元地藏法會', 31, 2, N'', NULL, NULL, NULL)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (39, N'新春點燈法會', 31, 3, N'', NULL, NULL, NULL)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (40, N'梁皇寶懺法會', 31, 4, N'', NULL, NULL, NULL)
INSERT [dbo].[activity_kind] ([num], [kind], [root], [range], [demo], [calendar], [month], [day]) VALUES (41, N'清明祭祖法會', 31, 5, N'', NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[activity_kind] OFF
GO

View File

@@ -0,0 +1,14 @@
SET IDENTITY_INSERT [dbo].[followers] ON
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16916, N'A000009', N'王小明', N'男眾', 2, NULL, N'', N'', NULL, N'', N'台北市信義區信義路一段100號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.677' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16917, N'A000010', N'李美麗', N'男眾', 2, NULL, N'', N'', NULL, N'', N'新北市板橋區文化路一段200號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.683' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16918, N'A000012', N'張雅婷', N'女眾', 2, NULL, N'', NULL, NULL, NULL, N'台中市西屯區台灣大道三段300號', NULL, NULL, NULL, NULL, N'', NULL, NULL, N'', NULL, NULL, NULL, NULL, NULL, N'', CAST(N'2024-10-22T15:20:36.687' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16919, N'A000014', N'陳志強', N'男眾', 2, NULL, N'', N'', NULL, N'', N'高雄市前金區中正四路400號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.687' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16920, N'A000014', N'林文華', N'男眾', 2, NULL, N'', N'', NULL, N'', N'台南市東區中華東路一段500號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.690' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16921, N'A000015', N'黃淑芬', N'男眾', 2, NULL, N'', N'', NULL, N'', N'桃園市中壢區中正路600號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.690' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16922, N'A000017', N'吳建宏', N'男眾', 2, NULL, N'', NULL, NULL, NULL, N'新竹市東區光復路一段700號', NULL, NULL, NULL, NULL, N'', NULL, NULL, N'', NULL, NULL, NULL, NULL, NULL, N'', CAST(N'2024-10-22T15:20:36.690' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16923, N'A000018', N'劉美玲', N'女眾', 2, NULL, N'', N'', NULL, N'', N'基隆市仁愛區愛一路800號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.693' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16924, N'A000018', N'示範企業有限公司', N'男眾', 2, NULL, N'', N'', NULL, N'', N'彰化縣彰化市中山路二段900號', N'', NULL, N'', N'', NULL, N'', N'', N'', NULL, N'', N'', N'', N'', N'', CAST(N'2024-10-22T15:20:36.693' AS DateTime), NULL, NULL, NULL, NULL, NULL)
INSERT [dbo].[followers] ([num], [f_number], [u_name], [sex], [identity_type], [birthday], [phone], [email], [refugedate], [refuge_name], [address], [demo], [leader], [socialid1], [socialid2], [tab], [contactor], [contactor_phone], [blood], [customize_data], [introducer], [refuge_area], [id_code], [passport], [cellphone], [reg_time], [admin_log], [join_date], [country], [appellation_id], [follower_hash]) VALUES (16925, N'A000018', N'周大偉', N'男眾', 2, NULL, N'', NULL, NULL, NULL, N'苗栗縣苗栗市為公路1000號', NULL, NULL, NULL, NULL, N'', NULL, NULL, N'', NULL, NULL, NULL, NULL, NULL, N'', CAST(N'2024-10-22T15:20:36.693' AS DateTime), NULL, NULL, NULL, NULL, NULL)
SET IDENTITY_INSERT [dbo].[followers] OFF
GO

View File

@@ -0,0 +1,11 @@
SET IDENTITY_INSERT [dbo].[member] ON
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (2, NULL, N'M0001', N'藝誠測試1', N'', N'XQB46pDBaEoYym/JHH2reSm5TP8AIQ8hX==', CAST(N'2022-02-28T00:00:00.000' AS DateTime), N'O', N'雲科1', CAST(N'2022-02-28T00:00:00.000' AS DateTime), N'悟靜', NULL, N'Hello World!!!!', 5, CAST(N'2022-03-01T00:00:00.000' AS DateTime), NULL, 1, 5, NULL, N'EdLqUXo6uo5WaIwjUOM9u3ioCxmP1QAv9==', N'tukust94129@gmail.com', N'tukust94129@gmail.com', NULL, N'一個光年的距離', NULL, CAST(N'2022-03-02T16:02:05.527' AS DateTime), N'202203021738080.png')
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (63, NULL, N'0118', N'葉湘倫', N'', NULL, NULL, N'O', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'1_202211211531230.png')
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (157, NULL, N'NY001', N'林秀真', N'', N'Wn8wR0HcrF63VAEDeGB76ZpJmRtNNAkxH==', NULL, N'', N'', NULL, N'', NULL, N'', NULL, NULL, NULL, 8, 6, NULL, N'BxMdFiOb8vZbn4kCnreKyVovNz2qTQH2L==', N'', N'', N'', N'', N'台中市潭子區潭興路三段86巷9弄1號', NULL, NULL)
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (158, NULL, N'NY002', N'許榮耀', N'', N'g2BbzWnhq26B1RByKoUaq9e1YZQUWgsQa==', NULL, N'', N'', NULL, N'', NULL, N'', NULL, NULL, NULL, 6, 6, NULL, N'', N'', N'', N'229310193', N'', N'台北市文山區興隆路一段227號', NULL, NULL)
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (159, NULL, N'NY003', N'陳怡君', N'', N'23sh+GyZ7dj/T4/5G3wJhLu9PQmduAW09==', NULL, N'', N'', NULL, N'', NULL, N'', NULL, NULL, NULL, 20, 6, NULL, N'fky1iVKtopvUB35fDvSlp+1tZq2oNgH+F==', N'', N'', N'', N'', N'台中市太平區育才路367號', NULL, NULL)
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (164, NULL, N'001', N'李三光', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 8, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, N'')
INSERT [dbo].[member] ([num], [f_num], [m_number], [u_name], [sex], [id_code], [birthday], [blood], [educational], [refugedate], [refuge_name], [refuge_area], [demo], [admin_num], [takedate], [leavedate], [group_kind], [title_kind], [salary], [phone], [com_email], [email], [contact], [address1], [address2], [reg_time], [pic1]) VALUES (170, NULL, N'123654', N'張居士', N'', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 18, CAST(N'2024-09-04T00:00:00.000' AS DateTime), CAST(N'2024-09-06T00:00:00.000' AS DateTime), 4, 15, NULL, N'WLhFEhWFD9fSe1SBciPpkzA18jpOkw0n2==', NULL, NULL, NULL, NULL, N'台中市', NULL, N'')
SET IDENTITY_INSERT [dbo].[member] OFF
GO

View File

@@ -0,0 +1,17 @@
SET IDENTITY_INSERT [dbo].[member_group] ON
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (1, N'共修組', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 1, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (2, N'教育組', CAST(N'00:00:00' AS Time), CAST(N'12:00:00' AS Time), 2, 0, 2, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (4, N'文化組', CAST(N'01:43:00' AS Time), CAST(N'13:44:00' AS Time), NULL, 0, 3, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (5, N'慈善組', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), NULL, 0, 4, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (6, N'器材組', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 5, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (7, N'人事處', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 6, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (8, N'廚房組', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 7, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (9, N'茶水組', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 8, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (11, N'櫃台處', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 10, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (16, N'監察處', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 15, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (17, N'管理處', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), 1, 0, 16, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (18, N'雜事組', CAST(N'09:00:00' AS Time), CAST(N'18:00:00' AS Time), NULL, 0, 17, N'')
INSERT [dbo].[member_group] ([num], [kind], [starttime], [offtime], [resttime], [root], [range], [demo]) VALUES (20, N'接待', CAST(N'07:30:00' AS Time), CAST(N'09:59:00' AS Time), NULL, 0, 18, N'')
SET IDENTITY_INSERT [dbo].[member_group] OFF
GO

View File

@@ -0,0 +1,18 @@
SET IDENTITY_INSERT [dbo].[member_title] ON
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (1, N'住持', 0, 1, N'RR', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (3, N'當家', 0, 2, N'YOU KNOW WHO ', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (4, N'知客', 0, 3, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (5, N'書記', 0, 4, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (6, N'志工', 0, 5, N'志願者', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (7, N'工讀生', 0, 6, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (8, N'執行長', 0, 7, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (9, N'執行董事', 0, 8, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (10, N'顧問', 0, 9, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (11, N'秘書', 0, 10, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (12, N'董事', 0, 11, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (13, N'董事長', 0, 12, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (14, N'監察', 0, 13, N'', N'Y')
INSERT [dbo].[member_title] ([num], [kind], [root], [range], [demo], [status]) VALUES (15, N'員工', 0, 14, N' ', N'Y')
SET IDENTITY_INSERT [dbo].[member_title] OFF
GO

View File

View File

View File

@@ -0,0 +1,4 @@
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'available', N'可用', N'Position')
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'maintenance', N'維護中', N'Position')
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'used', N'已使用', N'Position')
GO

View File

@@ -0,0 +1,24 @@
INSERT [dbo].[PostCity] ([city]) VALUES (N'台中市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'台北市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'台東縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'台南市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'宜蘭縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'花蓮縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'金門縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'南投縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'南海諸島')
INSERT [dbo].[PostCity] ([city]) VALUES (N'屏東縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'苗栗縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'桃園市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'高雄市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'基隆市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'連江縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'雲林縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'新北市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'新竹市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'新竹縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'嘉義市')
INSERT [dbo].[PostCity] ([city]) VALUES (N'嘉義縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'彰化縣')
INSERT [dbo].[PostCity] ([city]) VALUES (N'澎湖縣')
GO

View File

@@ -0,0 +1,374 @@
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (15, N'10001', N'台北市', N'中正區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (475, N'10341', N'台北市', N'大同區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (777, N'10401', N'台北市', N'中山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (1346, N'10502', N'台北市', N'松山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (2133, N'10601', N'台北市', N'大安區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (2263, N'10801', N'台北市', N'萬華區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (2644, N'11001', N'台北市', N'信義區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (2999, N'11101', N'台北市', N'士林區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (3571, N'11201', N'台北市', N'北投區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (3592, N'11441', N'台北市', N'內湖區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (3764, N'11501', N'台北市', N'南港區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4053, N'11601', N'台北市', N'文山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4126, N'20001', N'基隆市', N'仁愛區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4193, N'20101', N'基隆市', N'信義區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4247, N'20201', N'基隆市', N'中正區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4286, N'20301', N'基隆市', N'中山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4314, N'20401', N'基隆市', N'安樂區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4320, N'20541', N'基隆市', N'暖暖區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4337, N'20641', N'基隆市', N'七堵區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4423, N'20741', N'新北市', N'萬里區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4501, N'20841', N'新北市', N'金山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4580, N'20941', N'連江縣', N'南竿鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4590, N'21041', N'連江縣', N'北竿鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4599, N'21141', N'連江縣', N'莒光鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4603, N'21241', N'連江縣', N'東引鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (4645, N'22001', N'新北市', N'板橋區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5098, N'22101', N'新北市', N'汐止區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5178, N'22201', N'新北市', N'深坑區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5277, N'22301', N'新北市', N'石碇區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5318, N'22441', N'新北市', N'瑞芳區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5424, N'22641', N'新北市', N'平溪區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5466, N'22741', N'新北市', N'雙溪區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5556, N'22841', N'新北市', N'貢寮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5601, N'23141', N'新北市', N'新店區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (5982, N'23241', N'新北市', N'坪林區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (6035, N'23341', N'新北市', N'烏來區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (6086, N'23441', N'新北市', N'永和區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (6574, N'23501', N'新北市', N'中和區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (6813, N'23641', N'新北市', N'土城區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (6930, N'23701', N'新北市', N'三峽區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (7039, N'23806', N'新北市', N'樹林區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (7155, N'23941', N'新北市', N'鶯歌區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (7441, N'24101', N'新北市', N'三重區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (8101, N'24201', N'新北市', N'新莊區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (8493, N'24301', N'新北市', N'泰山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (8668, N'24441', N'新北市', N'林口區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (8751, N'24701', N'新北市', N'蘆洲區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (8847, N'24801', N'新北市', N'五股區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9027, N'24931', N'新北市', N'八里區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9246, N'25103', N'新北市', N'淡水區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9344, N'25241', N'新北市', N'三芝區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9431, N'25341', N'新北市', N'石門區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9477, N'26041', N'宜蘭縣', N'宜蘭市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9680, N'26141', N'宜蘭縣', N'頭城鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9803, N'26241', N'宜蘭縣', N'礁溪鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9898, N'26341', N'宜蘭縣', N'壯圍鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (9941, N'26441', N'宜蘭縣', N'員山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (10083, N'26541', N'宜蘭縣', N'羅東鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (10257, N'26641', N'宜蘭縣', N'三星鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (10324, N'26741', N'宜蘭縣', N'大同鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (10412, N'26841', N'宜蘭縣', N'五結鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (10652, N'26941', N'宜蘭縣', N'冬山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (10915, N'27041', N'宜蘭縣', N'蘇澳鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (11160, N'27241', N'宜蘭縣', N'南澳鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (11182, N'30046', N'新竹市', N'北區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (11183, N'30051', N'新竹市', N'東區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (11184, N'30046', N'新竹市', N'香山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (11981, N'30210', N'新竹縣', N'竹北市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (12329, N'30301', N'新竹縣', N'湖口鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (12714, N'30401', N'新竹縣', N'新豐鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (12753, N'30541', N'新竹縣', N'新埔鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (12893, N'30641', N'新竹縣', N'關西鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13032, N'30740', N'新竹縣', N'芎林鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13095, N'30841', N'新竹縣', N'寶山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13193, N'31040', N'新竹縣', N'竹東鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13341, N'31141', N'新竹縣', N'五峰鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13365, N'31241', N'新竹縣', N'橫山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13422, N'31341', N'新竹縣', N'尖石鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13482, N'31441', N'新竹縣', N'北埔鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13522, N'31541', N'新竹縣', N'峨眉鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (13776, N'32001', N'桃園市', N'中壢區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (14734, N'32441', N'桃園市', N'平鎮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (15270, N'32541', N'桃園市', N'龍潭區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (15683, N'32601', N'桃園市', N'楊梅區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (15990, N'32741', N'桃園市', N'新屋區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (16113, N'32841', N'桃園市', N'觀音區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (16973, N'33001', N'桃園市', N'桃園區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (17121, N'33301', N'桃園市', N'龜山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (17506, N'33441', N'桃園市', N'八德區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (17895, N'33509', N'桃園市', N'大溪區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (18118, N'33641', N'桃園市', N'復興區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (18192, N'33741', N'桃園市', N'大園區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (18692, N'33801', N'桃園市', N'蘆竹區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (18807, N'35041', N'苗栗縣', N'竹南鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19139, N'35141', N'苗栗縣', N'頭份鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19408, N'35241', N'苗栗縣', N'三灣鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19476, N'35341', N'苗栗縣', N'南庄鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19535, N'35441', N'苗栗縣', N'獅潭鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19577, N'35641', N'苗栗縣', N'後龍鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19738, N'35741', N'苗栗縣', N'通霄鎮')
GO
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (19837, N'35841', N'苗栗縣', N'苑裡鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20326, N'36001', N'苗栗縣', N'苗栗市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20350, N'36141', N'苗栗縣', N'造橋鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20428, N'36241', N'苗栗縣', N'頭屋鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20493, N'36341', N'苗栗縣', N'公館鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20599, N'36441', N'苗栗縣', N'大湖鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20676, N'36541', N'苗栗縣', N'泰安鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20704, N'36641', N'苗栗縣', N'銅鑼鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20818, N'36741', N'苗栗縣', N'三義鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20863, N'36841', N'苗栗縣', N'西湖鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (20919, N'36941', N'苗栗縣', N'卓蘭鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (21035, N'40001', N'台中市', N'中區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (21118, N'40141', N'台中市', N'東區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (21414, N'40201', N'台中市', N'南區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (21714, N'40301', N'台中市', N'西區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (21940, N'40401', N'台中市', N'北區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (22970, N'40601', N'台中市', N'北屯區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (23315, N'40704', N'台中市', N'西屯區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (23786, N'40841', N'台中市', N'南屯區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (24360, N'41101', N'台中市', N'太平區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (24862, N'41200', N'台中市', N'大里區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (25057, N'41341', N'台中市', N'霧峰區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (25249, N'41400', N'台中市', N'烏日區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (25590, N'42007', N'台中市', N'豐原區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (25696, N'42141', N'台中市', N'后里區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (25813, N'42241', N'台中市', N'石岡區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (25892, N'42341', N'台中市', N'東勢區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26097, N'42441', N'台中市', N'和平區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26145, N'42641', N'台中市', N'新社區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26249, N'42701', N'台中市', N'潭子區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26517, N'42800', N'台中市', N'大雅區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26582, N'42941', N'台中市', N'神岡區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26830, N'43214', N'台中市', N'大肚區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (26887, N'43301', N'台中市', N'沙鹿區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (27274, N'43401', N'台中市', N'龍井區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (27342, N'43501', N'台中市', N'梧棲區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (27653, N'43641', N'台中市', N'清水區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (27818, N'43741', N'台中市', N'大甲區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (28139, N'43850', N'台中市', N'外埔區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (28149, N'43951', N'台中市', N'大安區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (28292, N'50001', N'彰化縣', N'彰化市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (28791, N'50241', N'彰化縣', N'芬園鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (28885, N'50301', N'彰化縣', N'花壇鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (29016, N'50441', N'彰化縣', N'秀水鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (29181, N'50541', N'彰化縣', N'鹿港鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (29536, N'50641', N'彰化縣', N'福興鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (29610, N'50741', N'彰化縣', N'線西鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (29713, N'50841', N'彰化縣', N'和美鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (29982, N'50941', N'彰化縣', N'伸港鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (30177, N'51001', N'彰化縣', N'員林鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (30352, N'51141', N'彰化縣', N'社頭鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (30523, N'51241', N'彰化縣', N'永靖鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (30657, N'51341', N'彰化縣', N'埔心鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (30918, N'51441', N'彰化縣', N'溪湖鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31198, N'51541', N'彰化縣', N'大村鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31257, N'51641', N'彰化縣', N'埔鹽鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31297, N'52041', N'彰化縣', N'田中鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31465, N'52141', N'彰化縣', N'北斗鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31601, N'52241', N'彰化縣', N'田尾鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31718, N'52341', N'彰化縣', N'埤頭鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (31854, N'52441', N'彰化縣', N'溪州鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (32057, N'52541', N'彰化縣', N'竹塘鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (32154, N'52601', N'彰化縣', N'二林鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (32476, N'52742', N'彰化縣', N'大城鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (32573, N'52851', N'彰化縣', N'芳苑鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (32794, N'53041', N'彰化縣', N'二水鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (32944, N'54001', N'南投縣', N'南投市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (33153, N'54151', N'南投縣', N'中寮鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (33182, N'54241', N'南投縣', N'草屯鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (33474, N'54441', N'南投縣', N'國姓鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (33530, N'54541', N'南投縣', N'埔里鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (33876, N'54641', N'南投縣', N'仁愛鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (33957, N'55141', N'南投縣', N'名間鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34078, N'55241', N'南投縣', N'集集鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34200, N'55341', N'南投縣', N'水里鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34280, N'55541', N'南投縣', N'魚池鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34334, N'55641', N'南投縣', N'信義鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34486, N'55741', N'南投縣', N'竹山鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34671, N'55841', N'南投縣', N'鹿谷鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34818, N'60001', N'嘉義市', N'東區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (34819, N'60001', N'嘉義市', N'西區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (35518, N'60241', N'嘉義縣', N'番路鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (35634, N'60341', N'嘉義縣', N'梅山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (35769, N'60441', N'嘉義縣', N'竹崎鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (35981, N'60541', N'嘉義縣', N'阿里山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36002, N'60641', N'嘉義縣', N'中埔鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36186, N'60741', N'嘉義縣', N'大埔鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36237, N'60841', N'嘉義縣', N'水上鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36357, N'61141', N'嘉義縣', N'鹿草鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36390, N'61241', N'嘉義縣', N'太保市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36531, N'61341', N'嘉義縣', N'朴子市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36713, N'61441', N'嘉義縣', N'東石鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36784, N'61541', N'嘉義縣', N'六腳鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36793, N'61641', N'嘉義縣', N'新港鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (36886, N'62102', N'嘉義縣', N'民雄鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37088, N'62241', N'嘉義縣', N'大林鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37227, N'62341', N'嘉義縣', N'溪口鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37282, N'62441', N'嘉義縣', N'義竹鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37312, N'62541', N'嘉義縣', N'布袋鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37448, N'63041', N'雲林縣', N'斗南鎮')
GO
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37655, N'63141', N'雲林縣', N'大埤鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37754, N'63201', N'雲林縣', N'虎尾鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37910, N'63341', N'雲林縣', N'土庫鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (37979, N'63441', N'雲林縣', N'褒忠鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38029, N'63541', N'雲林縣', N'東勢鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38086, N'63641', N'雲林縣', N'台西鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38134, N'63741', N'雲林縣', N'崙背鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38214, N'63801', N'雲林縣', N'麥寮鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38622, N'64001', N'雲林縣', N'斗六市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38719, N'64341', N'雲林縣', N'林內鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38833, N'64641', N'雲林縣', N'古坑鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38853, N'64741', N'雲林縣', N'莿桐鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (38904, N'64841', N'雲林縣', N'西螺鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39023, N'64941', N'雲林縣', N'二崙鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39105, N'65141', N'雲林縣', N'北港鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39300, N'65241', N'雲林縣', N'水林鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39360, N'65341', N'雲林縣', N'口湖鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39459, N'65441', N'雲林縣', N'四湖鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39540, N'65541', N'雲林縣', N'元長鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39774, N'70002', N'台南市', N'中西區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (39906, N'70101', N'台南市', N'東區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (40282, N'70241', N'台南市', N'南區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (40471, N'70401', N'台南市', N'北區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (40603, N'70801', N'台南市', N'安平區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (40831, N'70941', N'台南市', N'安南區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (41211, N'71001', N'台南市', N'永康區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (41924, N'71101', N'台南市', N'歸仁區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (41969, N'71241', N'台南市', N'新化區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42017, N'71341', N'台南市', N'左鎮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42032, N'71441', N'台南市', N'玉井區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42100, N'71541', N'台南市', N'楠西區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42142, N'71641', N'台南市', N'南化區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42157, N'71702', N'台南市', N'仁德區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42349, N'71841', N'台南市', N'關廟區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42548, N'71941', N'台南市', N'龍崎區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42609, N'72041', N'台南市', N'官田區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42727, N'72141', N'台南市', N'麻豆區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42853, N'72241', N'台南市', N'佳里區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42929, N'72341', N'台南市', N'西港區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (42973, N'72441', N'台南市', N'七股區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43030, N'72541', N'台南市', N'將軍區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43056, N'72641', N'台南市', N'學甲區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43140, N'72742', N'台南市', N'北門區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43214, N'73001', N'台南市', N'新營區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43373, N'73141', N'台南市', N'後壁區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43428, N'73241', N'台南市', N'白河區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43591, N'73343', N'台南市', N'東山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43670, N'73441', N'台南市', N'六甲區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43765, N'73541', N'台南市', N'下營區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (43901, N'73656', N'台南市', N'柳營區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44010, N'73741', N'台南市', N'鹽水區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44127, N'74144', N'台南市', N'善化區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44272, N'74242', N'台南市', N'大內區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44302, N'74341', N'台南市', N'山上區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44333, N'74441', N'台南市', N'新市區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44418, N'74542', N'台南市', N'安定區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44503, N'80002', N'高雄市', N'新興區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44586, N'80122', N'高雄市', N'前金區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44734, N'80201', N'高雄市', N'苓雅區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44872, N'80341', N'高雄市', N'鹽埕區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (44967, N'80402', N'高雄市', N'鼓山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (45089, N'80541', N'高雄市', N'旗津區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (45185, N'80603', N'高雄市', N'前鎮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (45839, N'80706', N'高雄市', N'三民區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (46461, N'81126', N'高雄市', N'楠梓區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (46829, N'81233', N'高雄市', N'小港區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (47306, N'81341', N'高雄市', N'左營區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (47910, N'81442', N'高雄市', N'仁武區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (47931, N'81541', N'高雄市', N'大社區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48063, N'81741', N'高雄市', N'旗津區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48064, N'81941', N'南海諸島', N'南沙')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48131, N'82041', N'高雄市', N'岡山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48379, N'82141', N'高雄市', N'路竹區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48511, N'82241', N'高雄市', N'阿蓮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48568, N'82341', N'高雄市', N'田寮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48632, N'82441', N'高雄市', N'燕巢區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (48768, N'82541', N'高雄市', N'橋頭區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (49071, N'82641', N'高雄市', N'梓官區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (49175, N'82741', N'高雄市', N'彌陀區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (49244, N'82841', N'高雄市', N'永安區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (49284, N'82941', N'高雄市', N'湖內區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (49593, N'83001', N'高雄市', N'鳳山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (50116, N'83101', N'高雄市', N'大寮區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (50377, N'83241', N'高雄市', N'林園區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (50546, N'83301', N'高雄市', N'鳥松區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (50828, N'84001', N'高雄市', N'大樹區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (50871, N'84241', N'高雄市', N'旗山區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51085, N'84341', N'高雄市', N'美濃區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51245, N'84441', N'高雄市', N'六龜區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51332, N'84542', N'高雄市', N'內門區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51382, N'84649', N'高雄市', N'杉林區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51400, N'84741', N'高雄市', N'甲仙區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51437, N'84841', N'高雄市', N'桃源區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51449, N'84941', N'高雄市', N'三民區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51461, N'85141', N'高雄市', N'茂林區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51470, N'85241', N'高雄市', N'茄萣區')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51567, N'88041', N'澎湖縣', N'馬公市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51769, N'88141', N'澎湖縣', N'西嶼鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51788, N'88241', N'澎湖縣', N'望安鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51801, N'88341', N'澎湖縣', N'七美鄉')
GO
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51833, N'88441', N'澎湖縣', N'白沙鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51860, N'88541', N'澎湖縣', N'湖西鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51914, N'89041', N'金門縣', N'金沙鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (51960, N'89141', N'金門縣', N'金湖鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (52030, N'89244', N'金門縣', N'金寧鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (52093, N'89344', N'金門縣', N'金城鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (52146, N'89441', N'金門縣', N'烈嶼鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (52172, N'89641', N'金門縣', N'烏坵鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (52513, N'90001', N'屏東縣', N'屏東市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53031, N'90141', N'屏東縣', N'三地門鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53047, N'90241', N'屏東縣', N'霧台鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53064, N'90341', N'屏東縣', N'瑪家鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53074, N'90441', N'屏東縣', N'九如鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53182, N'90541', N'屏東縣', N'里港鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53266, N'90641', N'屏東縣', N'高樹鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53382, N'90741', N'屏東縣', N'鹽埔鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53512, N'90841', N'屏東縣', N'長治鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53646, N'90941', N'屏東縣', N'麟洛鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (53724, N'91141', N'屏東縣', N'竹田鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54083, N'91201', N'屏東縣', N'內埔鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54132, N'91341', N'屏東縣', N'萬丹鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54350, N'92041', N'屏東縣', N'潮州鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54648, N'92141', N'屏東縣', N'泰武鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54661, N'92241', N'屏東縣', N'來義鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54671, N'92341', N'屏東縣', N'萬巒鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54751, N'92441', N'屏東縣', N'崁頂鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54788, N'92541', N'屏東縣', N'新埤鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54835, N'92641', N'屏東縣', N'南州鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54876, N'92741', N'屏東縣', N'林邊鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (54936, N'92841', N'屏東縣', N'東港鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55059, N'92941', N'屏東縣', N'琉球鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55092, N'93141', N'屏東縣', N'佳冬鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55197, N'93241', N'屏東縣', N'新園鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55316, N'94041', N'屏東縣', N'枋寮鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55438, N'94145', N'屏東縣', N'枋山鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55455, N'94248', N'屏東縣', N'春日鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55464, N'94350', N'屏東縣', N'獅子鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55479, N'94441', N'屏東縣', N'車城鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55518, N'94541', N'屏東縣', N'牡丹鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55580, N'94641', N'屏東縣', N'恆春鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55647, N'94741', N'屏東縣', N'滿州鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (55719, N'95001', N'台東縣', N'台東市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56039, N'95141', N'台東縣', N'綠島鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56045, N'95241', N'台東縣', N'蘭嶼鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56055, N'95341', N'台東縣', N'延平鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56071, N'95441', N'台東縣', N'卑南鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56118, N'95541', N'台東縣', N'鹿野鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56192, N'95641', N'台東縣', N'關山鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56265, N'95741', N'台東縣', N'海端鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56285, N'95841', N'台東縣', N'池上鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56354, N'95941', N'台東縣', N'東河鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56440, N'96141', N'台東縣', N'成功鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56480, N'96241', N'台東縣', N'長濱鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56518, N'96341', N'台東縣', N'太麻里鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56536, N'96441', N'台東縣', N'金峰鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56543, N'96541', N'台東縣', N'大武鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56587, N'96692', N'台東縣', N'達仁鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (56763, N'97001', N'花蓮縣', N'花蓮市')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (57136, N'97141', N'花蓮縣', N'新城鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (57164, N'97241', N'花蓮縣', N'秀林鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (57500, N'97341', N'花蓮縣', N'吉安鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (57669, N'97401', N'花蓮縣', N'壽豐鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (57816, N'97541', N'花蓮縣', N'鳳林鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (57951, N'97641', N'花蓮縣', N'光復鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (58048, N'97791', N'花蓮縣', N'豐濱鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (58085, N'97841', N'花蓮縣', N'瑞穗鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (58141, N'97942', N'花蓮縣', N'萬榮鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (58155, N'98141', N'花蓮縣', N'玉里鎮')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (58310, N'98241', N'花蓮縣', N'卓溪鄉')
INSERT [dbo].[PostNumber] ([ID], [PostNumber], [City], [Area]) VALUES (58321, N'98341', N'花蓮縣', N'富里鄉')
GO

View File

@@ -0,0 +1,12 @@
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'101', N'空床', N'床位可分配', 1, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'102', N'占用中', N'床位已有人使用', 1, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'103', N'維修停用', N'床位維修或不可使用', 1, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'301', N'空房', N'房間所有床位皆為空', 3, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'302', N'部分入住', N'房間有人,但仍有空床', 3, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'303', N'已滿', N'房間所有床位皆已入住', 3, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'304', N'維修停用', N'房間維修或不可使用', 3, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'401', N'預訂成功', N'默認就是預訂成功狀態', 4, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'402', N'已入住', N'已辦理入住', 4, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'403', N'已退房', N'', 4, 0)
INSERT [dbo].[RegionRoomBedStatus] ([Code], [Name], [Description], [Category], [IsDeleted]) VALUES (N'404', N'已取消', N'取消後的狀態,不是取消的動作', 4, 0)
GO

View File

@@ -0,0 +1,3 @@
INSERT [dbo].[RegionType] ([Code], [Name], [IsActive], [CreateAt], [IsDeleted], [Uuid]) VALUES (N'room', N'客房', 1, NULL, 0, N'a0b583e1-4189-47dd-a836-46217577ebaa')
INSERT [dbo].[RegionType] ([Code], [Name], [IsActive], [CreateAt], [IsDeleted], [Uuid]) VALUES (N'floor', N'樓層', 1, NULL, 0, N'cf12fc3c-0e37-4032-b3b8-dea728666531')
GO

View File

@@ -0,0 +1,19 @@
SET IDENTITY_INSERT [dbo].[admin] ON
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (1, N'17168ERP', N'JKUkMX4iye481EA+1Of7ew=', N'總管理者', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'EZ', 1, CAST(N'2022-02-08T17:37:57.513' AS DateTime), CAST(N'2025-11-24T10:33:54.000' AS DateTime), N'210.61.157.19', N'f8ixwgjn7t', NULL, N'Y', N'Y', NULL, NULL)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (2, N'user1', N'l63HaBs5T2GJyc1hiixsOA=', N'用戶1', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A01', 0, CAST(N'2022-05-05T17:48:14.857' AS DateTime), CAST(N'2022-05-12T17:44:14.000' AS DateTime), N'127.0.0.1', N'wgibb91ipm', NULL, N'Y', N'Y', N'dQqeG0G2wHANWyoDzTIw', 1)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (3, N'user2', N'I+M86B0qX3bc18kKtksJMw=', N'用戶2', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A01', 1, CAST(N'2022-05-05T17:48:34.823' AS DateTime), CAST(N'2022-05-09T21:40:04.000' AS DateTime), N'127.0.0.1', N'fbyw2bc9px', NULL, N'Y', N'Y', N'4KHwXR+h0cSxOBJ0640b', 1)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (4, N'user3', N'6dA9kWMrIMT1bMJYhkEifA=', N'用戶3', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A01', 1, CAST(N'2022-05-05T17:48:53.377' AS DateTime), CAST(N'2022-05-12T17:46:09.000' AS DateTime), N'127.0.0.1', N'yhdiucgcrr', NULL, N'Y', N'Y', N'ZbsFecpskB4wt3Xbq09K', 1)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (5, N'ezLottie', N'FOS6JxNITls0uj+JqdMdH8=', N'Lottie', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A01', 1, CAST(N'2022-05-17T10:30:53.983' AS DateTime), CAST(N'2023-01-02T02:38:59.000' AS DateTime), N'220.135.64.176', N'dx13gs9sn5', NULL, N'Y', N'Y', N'5Ie9QZlPBqmB2fGrp5Ye', 0)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (6, N'tracy', N'ElXxGeQvlhX63vjzj3VT+o=', N'tracy', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A01', 0, CAST(N'2022-10-14T15:51:52.920' AS DateTime), CAST(N'2022-12-19T14:45:32.000' AS DateTime), N'211.20.239.58', N'qegivd9sna', NULL, N'Y', N'Y', NULL, NULL)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (8, N'111', N'1JjrHuvUBcEZo64KsIp92M=', N'A君', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A02', 1, CAST(N'2022-12-06T15:39:58.980' AS DateTime), CAST(N'2023-03-20T15:06:26.000' AS DateTime), N'122.117.61.232', N'bjchvtvtea', NULL, N'Y', N'Y', NULL, 0)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (9, N'chinchillann', N'HrGQmtD0aL7Eu6W173wItY=', N'舒安', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A03', 0, CAST(N'2023-03-20T14:35:39.200' AS DateTime), CAST(N'2023-05-17T08:58:17.000' AS DateTime), N'122.117.61.232', N'wk2c2hssrn', NULL, N'Y', N'Y', N'Bktm9FPtBbWosRd9QPaE', 0)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (10, N'123', N'8gdk0wvYYkOGOnsowM8mWk=', N'路人乙', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A01', 0, CAST(N'2023-03-20T15:10:13.417' AS DateTime), CAST(N'2023-03-22T15:22:08.000' AS DateTime), N'122.117.61.232', N'nkreaje92s', NULL, N'Y', N'Y', NULL, NULL)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (11, N'chimei', N'BrBEV+cDOSHgsJU58scIT0=', N'琪美姊姊', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A03', 0, CAST(N'2023-03-24T20:15:59.927' AS DateTime), CAST(N'2023-04-07T16:21:30.000' AS DateTime), N'49.217.9.241', N'nyf47i9vt2', NULL, N'Y', N'Y', NULL, 0)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (12, N'test', N'A2TEg0SoqKfZbvvIHg9Gdo=', N'志工', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A04', 1, CAST(N'2023-04-21T14:57:05.243' AS DateTime), CAST(N'2023-04-22T13:50:04.000' AS DateTime), N'49.217.45.88', N'bysr1dpm2e', NULL, N'Y', N'Y', NULL, NULL)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (13, N'susan', N'J8bB+e977atsd+XodDPRY0=', N'淑惠', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A03', 1, CAST(N'2023-04-25T15:18:22.883' AS DateTime), CAST(N'2023-08-17T17:06:17.000' AS DateTime), N'59.120.82.208', N'n91pisnde4', NULL, N'Y', N'Y', NULL, NULL)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (17, N'sw01', N'9kRkS5sdrBDxyyz4rJJ+2c=', N'練習', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A03', 1, CAST(N'2024-09-05T10:49:37.590' AS DateTime), CAST(N'2025-02-21T08:27:29.000' AS DateTime), N'36.235.29.56', N'vwegbpxyuu', NULL, N'Y', N'Y', NULL, 0)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (18, N'test1', N'19DZBdfvfjz+JWC8Sgaqw8=', N'huangkj', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A03', 1, CAST(N'2024-09-05T16:42:53.830' AS DateTime), CAST(N'2025-09-08T14:51:54.000' AS DateTime), N'210.61.157.19', N'va43sjas4h', NULL, N'Y', N'Y', NULL, 0)
INSERT [dbo].[admin] ([num], [u_id], [u_password], [u_name], [sex], [kind], [phone1], [phone2], [birthday], [email], [city], [area], [address], [uid], [demo], [power], [online], [reg_time], [login_time], [login_ip], [login_code], [adwidth], [wrp_news], [wrp_bar], [gauth_key], [gauth_enabled]) VALUES (19, N'hkj123456', N'k+6BhDcDbLcDnkMqGbpWMpwpzRaQiA1id==', N'黄开杰', N'', N'管理者', N'', N'', NULL, N'', NULL, NULL, NULL, NULL, N'', N'A03', 1, CAST(N'2024-12-12T13:06:33.460' AS DateTime), CAST(N'2025-11-07T10:36:41.000' AS DateTime), N'210.61.157.19', N'qe63hhtwfg', NULL, N'Y', N'Y', NULL, NULL)
SET IDENTITY_INSERT [dbo].[admin] OFF
GO

View File

@@ -0,0 +1,9 @@
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'A', N'28,54,29,46,47,49,50,4,7,10,1,2,3,9,8,11,12,23,53,24,25,26,27,20,22,21,30,31,58,34,35,63,38,39,57,64,43,44,45,48,36,37,51,52,40,41,62,42,65,74,66,67,68,69,70,73,71,72,59,61,60,55,56,83,84,', N'最大管理者')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'A01', N'4,7,10,1,2,3,9,8,11,12,', N'人事')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'A02', N'28,38,40,55,29,54,39,41,42,56,', N'志工')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'A03', N'4,7,10,28,54,29,46,47,49,50,1,2,3,9,8,11,12,23,53,24,25,26,27,20,22,21,30,31,58,34,35,63,38,39,57,43,44,45,48,36,37,51,52,40,41,62,42,59,61,60,55,56,5,64,83,84,65,74,66,67,68,80,69,70,73,71,72,79,82,81,78,75,77,76,85,86,', N'總管理員')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'A04', N'43,44,45,48,', N'練習用')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'B01', N'1,2,3,9,8,11,12,23,53,24,25,26,27,36,51,52,37,28,29,54,31,58,34,35,38,39,57,', N'功能群組-牌位')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'EZ', N'28,54,29,46,47,49,50,4,5,7,10,1,2,3,9,8,11,12,23,53,24,25,26,27,20,22,21,30,31,58,34,35,63,38,39,57,64,43,44,45,48,36,37,51,52,40,41,62,42,65,74,66,67,68,69,70,71,72,59,61,60,55,56,75,83,84,', N'系統管理者')
INSERT [dbo].[admin_group] ([g_name], [items], [demo]) VALUES (N'tg', N'7,1,2,3,9,8,11,12,23,53,24,25,26,27,20,22,21,30,28,29,54,31,34,35,38,39,43,44,45,48,36,51,52,37,40,41,42,55,56,46,47,49,50,', N'testgroup')
GO

View File

@@ -0,0 +1,5 @@
SET IDENTITY_INSERT [dbo].[company] ON
INSERT [dbo].[company] ([num], [com_name], [com_mail], [bcc_mail], [pic_url], [menu], [log_class], [log_menu], [last_order_no], [adwidth], [wrp_news], [wrp_bar], [smtp_url], [smtp_port], [smtp_ssl], [smtp_user], [smtp_password], [smtp_def], [use_sender], [bed_order_no]) VALUES (1, N'道場管理', N'jsc.main001@gmail.com', N'', N'https://demo2.eztrust.tw/17168ERP', 0, 1, N'', N'AA2511230001', N'1000px', N'Y', N'Y', N'msa.hinet.net', N'25', N'N', N'17168erp', N'Zfo0mDh1+hKem67XYviQQA=', N'', N'N', N'ED2305120001')
SET IDENTITY_INSERT [dbo].[company] OFF
GO

View File

@@ -0,0 +1,252 @@
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'10', N'AQ', N'ATA', 99, N'Antarctica', N'南極洲')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'100', N'BG', N'BGR', 99, N'Bulgaria', N'保加利亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'104', N'MM', N'MMR', 99, N'Myanmar', N'緬甸')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'108', N'BI', N'BDI', 99, N'Burundi', N'蒲隆地')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'112', N'BY', N'BLR', 99, N'Belarus', N'白俄羅斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'116', N'KH', N'KHM', 99, N'Cambodia', N'柬埔寨')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'12', N'DZ', N'DZA', 99, N'Algeria', N'阿爾及利亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'120', N'CM', N'CMR', 99, N'Cameroon', N'喀麥隆')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'124', N'CA', N'CAN', 3, N'Canada', N'加拿大')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'132', N'CV', N'CPV', 99, N'Cabo Verde', N'維德角')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'136', N'KY', N'CYM', 99, N'Cayman Islands', N'開曼群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'140', N'CF', N'CAF', 99, N'Central African Republic', N'中非')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'144', N'LK', N'LKA', 99, N'Sri Lanka', N'斯里蘭卡')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'148', N'TD', N'TCD', 99, N'Chad', N'查德')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'152', N'CL', N'CHL', 99, N'Chile', N'智利')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'156', N'CN', N'CHN', 2, N'China', N'中國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'158', N'TW', N'TWN', 1, N'Republic of China(Taiwan)', N'中華民國(台灣)')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'16', N'AS', N'ASM', 99, N'American Samoa', N'美屬薩摩亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'162', N'CX', N'CXR', 99, N'Christmas Island', N'聖誕島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'166', N'CC', N'CCK', 99, N'Cocos (Keeling) Islands', N'科科斯(基林)群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'170', N'CO', N'COL', 99, N'Colombia', N'哥倫比亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'174', N'KM', N'COM', 99, N'Comoros', N'葛摩')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'175', N'YT', N'MYT', 99, N'Mayotte', N'馬約特')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'178', N'CG', N'COG', 99, N'Congo', N'剛果共和國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'180', N'CD', N'COD', 99, N'Congo (Democratic Republic of the)', N'剛果民主共和國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'184', N'CK', N'COK', 99, N'Cook Islands', N'庫克群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'188', N'CR', N'CRI', 99, N'Costa Rica', N'哥斯大黎加')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'191', N'HR', N'HRV', 99, N'Croatia', N'克羅埃西亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'192', N'CU', N'CUB', 99, N'Cuba', N'古巴')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'196', N'CY', N'CYP', 99, N'Cyprus', N'賽普勒斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'20', N'AD', N'AND', 99, N'Andorra', N'安道爾')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'203', N'CZ', N'CZE', 99, N'Czechia', N'捷克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'204', N'BJ', N'BEN', 99, N'Benin', N'貝南')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'208', N'DK', N'DNK', 99, N'Denmark', N'丹麥')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'212', N'DM', N'DMA', 99, N'Dominica', N'多米尼克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'214', N'DO', N'DOM', 99, N'Dominican Republic', N'多明尼加')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'218', N'EC', N'ECU', 99, N'Ecuador', N'厄瓜多')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'222', N'SV', N'SLV', 99, N'El Salvador', N'薩爾瓦多')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'226', N'GQ', N'GNQ', 99, N'Equatorial Guinea', N'赤道幾內亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'231', N'ET', N'ETH', 99, N'Ethiopia', N'衣索比亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'232', N'ER', N'ERI', 99, N'Eritrea', N'厄利垂亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'233', N'EE', N'EST', 99, N'Estonia', N'愛沙尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'234', N'FO', N'FRO', 99, N'Faroe Islands', N'法羅群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'238', N'FK', N'FLK', 99, N'Falkland Islands (Malvinas)', N'福克蘭群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'239', N'GS', N'SGS', 99, N'South Georgia and the South Sandwich Islands', N'南喬治亞和南桑威奇群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'24', N'AO', N'AGO', 99, N'Angola', N'安哥拉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'242', N'FJ', N'FJI', 99, N'Fiji', N'斐濟')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'246', N'FI', N'FIN', 99, N'Finland', N'芬蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'248', N'AX', N'ALA', 99, N'Åland Islands', N'奧蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'250', N'FR', N'FRA', 99, N'France', N'法國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'254', N'GF', N'GUF', 99, N'French Guiana', N'法屬圭亞那')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'258', N'PF', N'PYF', 99, N'French Polynesia', N'法屬玻里尼西亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'260', N'TF', N'ATF', 99, N'French Southern Territories', N'法屬南部和南極領地')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'262', N'DJ', N'DJI', 99, N'Djibouti', N'吉布地')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'266', N'GA', N'GAB', 99, N'Gabon', N'加彭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'268', N'GE', N'GEO', 99, N'Georgia', N'喬治亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'270', N'GM', N'GMB', 99, N'Gambia', N'甘比亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'275', N'PS', N'PSE', 99, N'Palestine, State of', N'巴勒斯坦')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'276', N'DE', N'DEU', 99, N'Germany', N'德國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'28', N'AG', N'ATG', 99, N'Antigua and Barbuda', N'安地卡及巴布達')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'288', N'GH', N'GHA', 99, N'Ghana', N'迦納')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'292', N'GI', N'GIB', 99, N'Gibraltar', N'直布羅陀')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'296', N'KI', N'KIR', 99, N'Kiribati', N'吉里巴斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'300', N'GR', N'GRC', 99, N'Greece', N'希臘')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'304', N'GL', N'GRL', 99, N'Greenland', N'格陵蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'308', N'GD', N'GRD', 99, N'Grenada', N'格瑞那達')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'31', N'AZ', N'AZE', 99, N'Azerbaijan', N'亞塞拜然')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'312', N'GP', N'GLP', 99, N'Guadeloupe', N'瓜地洛普')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'316', N'GU', N'GUM', 99, N'Guam', N'關島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'32', N'AR', N'ARG', 99, N'Argentina', N'阿根廷')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'320', N'GT', N'GTM', 99, N'Guatemala', N'瓜地馬拉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'324', N'GN', N'GIN', 99, N'Guinea', N'幾內亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'328', N'GY', N'GUY', 99, N'Guyana', N'蓋亞那')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'332', N'HT', N'HTI', 99, N'Haiti', N'海地')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'334', N'HM', N'HMD', 99, N'Heard Island and McDonald Islands', N'赫德島和麥克唐納群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'336', N'VA', N'VAT', 99, N'Holy See', N'梵蒂岡')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'340', N'HN', N'HND', 99, N'Honduras', N'宏都拉斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'344', N'HK', N'HKG', 2, N'Hong Kong', N'香港')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'348', N'HU', N'HUN', 99, N'Hungary', N'匈牙利')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'352', N'IS', N'ISL', 99, N'Iceland', N'冰島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'356', N'IN', N'IND', 99, N'India', N'印度')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'36', N'AU', N'AUS', 3, N'Australia', N'澳洲')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'360', N'ID', N'IDN', 2, N'Indonesia', N'印度尼西亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'364', N'IR', N'IRN', 99, N'Iran (Islamic Republic of)', N'伊朗')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'368', N'IQ', N'IRQ', 99, N'Iraq', N'伊拉克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'372', N'IE', N'IRL', 99, N'Ireland', N'愛爾蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'376', N'IL', N'ISR', 99, N'Israel', N'以色列')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'380', N'IT', N'ITA', 99, N'Italy', N'義大利')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'384', N'CI', N'CIV', 99, N'Côte d''Ivoire', N'象牙海岸')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'388', N'JM', N'JAM', 99, N'Jamaica', N'牙買加')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'392', N'JP', N'JPN', 99, N'Japan', N'日本')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'398', N'KZ', N'KAZ', 99, N'Kazakhstan', N'哈薩克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'4', N'AF', N'AFG', 99, N'Afghanistan', N'阿富汗')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'40', N'AT', N'AUT', 99, N'Austria', N'奧地利')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'400', N'JO', N'JOR', 99, N'Jordan', N'約旦')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'404', N'KE', N'KEN', 99, N'Kenya', N'肯亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'408', N'KP', N'PRK', 99, N'Korea (Democratic People''s Republic of)', N'北韓')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'410', N'KR', N'KOR', 99, N'Korea (Republic of)', N'南韓')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'414', N'KW', N'KWT', 99, N'Kuwait', N'科威特')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'417', N'KG', N'KGZ', 99, N'Kyrgyzstan', N'吉爾吉斯')
GO
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'418', N'LA', N'LAO', 99, N'Lao People''s Democratic Republic', N'寮國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'422', N'LB', N'LBN', 99, N'Lebanon', N'黎巴嫩')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'426', N'LS', N'LSO', 99, N'Lesotho', N'賴索托')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'428', N'LV', N'LVA', 99, N'Latvia', N'拉脫維亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'430', N'LR', N'LBR', 99, N'Liberia', N'賴比瑞亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'434', N'LY', N'LBY', 99, N'Libya', N'利比亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'438', N'LI', N'LIE', 99, N'Liechtenstein', N'列支敦斯登')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'44', N'BS', N'BHS', 99, N'Bahamas', N'巴哈馬')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'440', N'LT', N'LTU', 99, N'Lithuania', N'立陶宛')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'442', N'LU', N'LUX', 99, N'Luxembourg', N'盧森堡')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'446', N'MO', N'MAC', 99, N'Macao', N'澳門')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'450', N'MG', N'MDG', 99, N'Madagascar', N'馬達加斯加')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'454', N'MW', N'MWI', 99, N'Malawi', N'馬拉威')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'458', N'MY', N'MYS', 2, N'Malaysia', N'馬來西亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'462', N'MV', N'MDV', 99, N'Maldives', N'馬爾地夫')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'466', N'ML', N'MLI', 99, N'Mali', N'馬利')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'470', N'MT', N'MLT', 99, N'Malta', N'馬爾他')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'474', N'MQ', N'MTQ', 99, N'Martinique', N'馬丁尼克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'478', N'MR', N'MRT', 99, N'Mauritania', N'茅利塔尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'48', N'BH', N'BHR', 99, N'Bahrain', N'巴林')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'480', N'MU', N'MUS', 99, N'Mauritius', N'模里西斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'484', N'MX', N'MEX', 99, N'Mexico', N'墨西哥')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'492', N'MC', N'MCO', 99, N'Monaco', N'摩納哥')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'496', N'MN', N'MNG', 99, N'Mongolia', N'蒙古')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'498', N'MD', N'MDA', 99, N'Moldova (Republic of)', N'摩爾多瓦')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'499', N'ME', N'MNE', 99, N'Montenegro', N'蒙特內哥羅')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'50', N'BD', N'BGD', 99, N'Bangladesh', N'孟加拉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'500', N'MS', N'MSR', 99, N'Montserrat', N'蒙特塞拉特')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'504', N'MA', N'MAR', 99, N'Morocco', N'摩洛哥')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'508', N'MZ', N'MOZ', 99, N'Mozambique', N'莫三比克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'51', N'AM', N'ARM', 99, N'Armenia', N'亞美尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'512', N'OM', N'OMN', 99, N'Oman', N'阿曼')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'516', N'NA', N'NAM', 99, N'Namibia', N'納米比亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'52', N'BB', N'BRB', 99, N'Barbados', N'巴貝多')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'520', N'NR', N'NRU', 99, N'Nauru', N'諾魯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'524', N'NP', N'NPL', 99, N'Nepal', N'尼泊爾')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'528', N'NL', N'NLD', 99, N'Netherlands', N'荷蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'531', N'CW', N'CUW', 99, N'Curacao !Curaçao', N'古拉索')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'533', N'AW', N'ABW', 99, N'Aruba', N'阿魯巴')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'534', N'SX', N'SXM', 99, N'Sint Maarten (Dutch part)', N'荷屬聖馬丁')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'535', N'BQ', N'BES', 99, N'Bonaire, Sint Eustatius and Saba', N'荷蘭加勒比區')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'540', N'NC', N'NCL', 99, N'New Caledonia', N'新喀里多尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'548', N'VU', N'VUT', 99, N'Vanuatu', N'萬那杜')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'554', N'NZ', N'NZL', 3, N'New Zealand', N'紐西蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'558', N'NI', N'NIC', 99, N'Nicaragua', N'尼加拉瓜')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'56', N'BE', N'BEL', 99, N'Belgium', N'比利時')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'562', N'NE', N'NER', 99, N'Niger', N'尼日')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'566', N'NG', N'NGA', 99, N'Nigeria', N'奈及利亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'570', N'NU', N'NIU', 99, N'Niue', N'紐埃')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'574', N'NF', N'NFK', 99, N'Norfolk Island', N'諾福克島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'578', N'NO', N'NOR', 99, N'Norway', N'挪威')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'580', N'MP', N'MNP', 99, N'Northern Mariana Islands', N'北馬利安納群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'581', N'UM', N'UMI', 99, N'United States Minor Outlying Islands', N'美國本土外小島嶼')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'583', N'FM', N'FSM', 99, N'Micronesia (Federated States of)', N'密克羅尼西亞聯邦')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'584', N'MH', N'MHL', 99, N'Marshall Islands', N'馬紹爾群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'585', N'PW', N'PLW', 99, N'Palau', N'帛琉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'586', N'PK', N'PAK', 99, N'Pakistan', N'巴基斯坦')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'591', N'PA', N'PAN', 99, N'Panama', N'巴拿馬')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'598', N'PG', N'PNG', 99, N'Papua New Guinea', N'巴布亞紐幾內亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'60', N'BM', N'BMU', 99, N'Bermuda', N'百慕達')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'600', N'PY', N'PRY', 99, N'Paraguay', N'巴拉圭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'604', N'PE', N'PER', 99, N'Peru', N'秘魯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'608', N'PH', N'PHL', 99, N'Philippines', N'菲律賓')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'612', N'PN', N'PCN', 99, N'Pitcairn', N'皮特凱恩群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'616', N'PL', N'POL', 99, N'Poland', N'波蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'620', N'PT', N'PRT', 99, N'Portugal', N'葡萄牙')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'624', N'GW', N'GNB', 99, N'Guinea-Bissau', N'幾內亞比索')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'626', N'TL', N'TLS', 99, N'Timor-Leste', N'東帝汶')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'630', N'PR', N'PRI', 99, N'Puerto Rico', N'波多黎各')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'634', N'QA', N'QAT', 99, N'Qatar', N'卡達')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'638', N'RE', N'REU', 99, N'Réunion', N'留尼旺')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'64', N'BT', N'BTN', 99, N'Bhutan', N'不丹')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'642', N'RO', N'ROU', 99, N'Romania', N'羅馬尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'643', N'RU', N'RUS', 99, N'Russian Federation', N'俄羅斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'646', N'RW', N'RWA', 99, N'Rwanda', N'盧安達')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'652', N'BL', N'BLM', 99, N'Saint Barthélemy', N'聖巴瑟米')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'654', N'SH', N'SHN', 99, N'Saint Helena, Ascension and Tristan da Cunha', N'聖赫倫那、阿森松和特里斯坦-達庫尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'659', N'KN', N'KNA', 99, N'Saint Kitts and Nevis', N'聖克里斯多福及尼維斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'660', N'AI', N'AIA', 99, N'Anguilla', N'安圭拉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'662', N'LC', N'LCA', 99, N'Saint Lucia', N'聖露西亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'663', N'MF', N'MAF', 99, N'Saint Martin (French part)', N'法屬聖馬丁')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'666', N'PM', N'SPM', 99, N'Saint Pierre and Miquelon', N'聖皮埃與密克隆群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'670', N'VC', N'VCT', 99, N'Saint Vincent and the Grenadines', N'聖文森及格瑞那丁')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'674', N'SM', N'SMR', 99, N'San Marino', N'聖馬利諾')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'678', N'ST', N'STP', 99, N'Sao Tome and Principe', N'聖多美普林西比')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'68', N'BO', N'BOL', 99, N'Bolivia (Plurinational State of)', N'玻利維亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'682', N'SA', N'SAU', 99, N'Saudi Arabia', N'沙烏地阿拉伯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'686', N'SN', N'SEN', 99, N'Senegal', N'塞內加爾')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'688', N'RS', N'SRB', 99, N'Serbia', N'塞爾維亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'690', N'SC', N'SYC', 99, N'Seychelles', N'塞席爾')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'694', N'SL', N'SLE', 99, N'Sierra Leone', N'獅子山')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'70', N'BA', N'BIH', 99, N'Bosnia and Herzegovina', N'波士尼亞與赫塞哥維納')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'702', N'SG', N'SGP', 2, N'Singapore', N'新加坡')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'703', N'SK', N'SVK', 99, N'Slovakia', N'斯洛伐克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'704', N'VN', N'VNM', 99, N'Viet Nam', N'越南')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'705', N'SI', N'SVN', 99, N'Slovenia', N'斯洛維尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'706', N'SO', N'SOM', 99, N'Somalia', N'索馬利亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'710', N'ZA', N'ZAF', 99, N'South Africa', N'南非')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'716', N'ZW', N'ZWE', 99, N'Zimbabwe', N'辛巴威')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'72', N'BW', N'BWA', 99, N'Botswana', N'波札那')
GO
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'724', N'ES', N'ESP', 99, N'Spain', N'西班牙')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'728', N'SS', N'SSD', 99, N'South Sudan', N'南蘇丹')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'729', N'SD', N'SDN', 99, N'Sudan', N'蘇丹')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'732', N'EH', N'ESH', 99, N'Western Sahara', N'西撒哈拉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'74', N'BV', N'BVT', 99, N'Bouvet Island', N'布韋島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'740', N'SR', N'SUR', 99, N'Suriname', N'蘇利南')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'744', N'SJ', N'SJM', 99, N'Svalbard and Jan Mayen', N'斯瓦爾巴和揚馬延')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'748', N'SZ', N'SWZ', 99, N'Eswatini', N'史瓦帝尼')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'752', N'SE', N'SWE', 99, N'Sweden', N'瑞典')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'756', N'CH', N'CHE', 99, N'Switzerland', N'瑞士')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'76', N'BR', N'BRA', 99, N'Brazil', N'巴西')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'760', N'SY', N'SYR', 99, N'Syrian Arab Republic', N'敘利亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'762', N'TJ', N'TJK', 99, N'Tajikistan', N'塔吉克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'764', N'TH', N'THA', 99, N'Thailand', N'泰國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'768', N'TG', N'TGO', 99, N'Togo', N'多哥')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'772', N'TK', N'TKL', 99, N'Tokelau', N'托克勞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'776', N'TO', N'TON', 99, N'Tonga', N'東加')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'780', N'TT', N'TTO', 99, N'Trinidad and Tobago', N'千里達及托巴哥')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'784', N'AE', N'ARE', 99, N'United Arab Emirates', N'阿聯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'788', N'TN', N'TUN', 99, N'Tunisia', N'突尼西亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'792', N'TR', N'TUR', 99, N'Türkiye', N'土耳其')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'795', N'TM', N'TKM', 99, N'Turkmenistan', N'土庫曼')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'796', N'TC', N'TCA', 99, N'Turks and Caicos Islands', N'特克斯與凱科斯群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'798', N'TV', N'TUV', 99, N'Tuvalu', N'吐瓦魯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'8', N'AL', N'ALB', 99, N'Albania', N'阿爾巴尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'800', N'UG', N'UGA', 99, N'Uganda', N'烏干達')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'804', N'UA', N'UKR', 99, N'Ukraine', N'烏克蘭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'807', N'MK', N'MKD', 99, N'North Macedonia', N'北馬其頓')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'818', N'EG', N'EGY', 99, N'Egypt', N'埃及')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'826', N'GB', N'GBR', 99, N'United Kingdom of Great Britain and Northern Ireland', N'英國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'831', N'GG', N'GGY', 99, N'Guernsey', N'根西')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'832', N'JE', N'JEY', 99, N'Jersey', N'澤西')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'833', N'IM', N'IMN', 99, N'Isle of Man', N'曼島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'834', N'TZ', N'TZA', 99, N'Tanzania, United Republic of', N'坦尚尼亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'84', N'BZ', N'BLZ', 99, N'Belize', N'貝里斯')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'840', N'US', N'USA', 3, N'United States of America', N'美國')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'850', N'VI', N'VIR', 99, N'Virgin Islands (U.S.)', N'美屬維京群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'854', N'BF', N'BFA', 99, N'Burkina Faso', N'布吉納法索')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'858', N'UY', N'URY', 99, N'Uruguay', N'烏拉圭')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'86', N'IO', N'IOT', 99, N'British Indian Ocean Territory', N'英屬印度洋領地')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'860', N'UZ', N'UZB', 99, N'Uzbekistan', N'烏茲別克')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'862', N'VE', N'VEN', 99, N'Venezuela (Bolivarian Republic of)', N'委內瑞拉')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'876', N'WF', N'WLF', 99, N'Wallis and Futuna', N'瓦利斯和富圖那')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'882', N'WS', N'WSM', 99, N'Samoa', N'薩摩亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'887', N'YE', N'YEM', 99, N'Yemen', N'葉門')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'894', N'ZM', N'ZMB', 99, N'Zambia', N'尚比亞')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'90', N'SB', N'SLB', 99, N'Solomon Islands', N'索羅門群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'92', N'VG', N'VGB', 99, N'Virgin Islands (British)', N'英屬維京群島')
INSERT [dbo].[country] ([ID], [ID2], [ID3], [range], [name_en], [name_zh]) VALUES (N'96', N'BN', N'BRN', 99, N'Brunei Darussalam', N'汶萊')
GO

View File

@@ -0,0 +1,650 @@
SET IDENTITY_INSERT [dbo].[files] ON
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (25, N'[標準L1A]大牌位-佛光注照-長生祿位-A3(直)', N'<div class="page border" data-body-class="tblt-l a3">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:33.097' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-l a3')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (26, N'[標準M1A]個人大牌-佛光注照-長生祿位-A4(直)', N'<div class="page border" data-body-class="tblt-m a4">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:30.630' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-m a4')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (27, N'[標準M2A]個人大牌-佛光注照-長生祿位-A4(直, 合併)', N'<div class="page border" data-body-class="tblt-m a4-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:28.437' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-m a4-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (28, N'[標準S1A]個人中牌-佛光注照-長生祿位-A5(直)', N'<div class="page border" data-body-class="tblt-s a5">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:25.553' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-s a5')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (29, N'[標準S2A]個人中牌-佛光注照-長生祿位-A4(橫, 合併)', N'<div class="page border" data-body-class="tblt-s a4l-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:23.603' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-s a4l-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (30, N'[標準S3A]個人中牌-佛光注照-長生祿位-A3(直, 合併)', N'<div class="page border" data-body-class="tblt-s a3-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:21.727' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-s a3-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (31, N'[標準X1A]隨喜牌位-佛光注照-長生祿位-A4(橫)', N'<div class="page border" data-body-class="tblt-xs a4l-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2A.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">&nbsp;</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:20.130' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-xs a4l-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (32, N'[標準X2A]隨喜牌位-佛光注照-長生祿位-A3(直)', N'<div class="page border" data-body-class="tblt-xs a3-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2A.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:17.937' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-xs a3-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (33, N'[標準L1B]大牌位-佛力超薦-往生蓮位-A3(直)', N'<div class="page border" data-body-class="tblt-l a3">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:15.683' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-l a3')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (34, N'[標準M1B]個人大牌-佛力超薦-往生蓮位-A4(直)', N'<div class="page border" data-body-class="tblt-m a4">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:13.433' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-m a4')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (35, N'[標準M2B]個人大牌-佛力超薦-往生蓮位-A4(直, 合併)', N'<div class="page border" data-body-class="tblt-m a4-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" title="祈福姓名" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border" title="祈福姓名2">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" title="陽上姓名" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:11.073' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-m a4-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (36, N'[標準S1B]個人中牌-佛力超薦-往生蓮位-A5(直)', N'<div class="page border" data-body-class="tblt-s a5">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:08.320' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-s a5')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (37, N'[標準S2B]個人中牌-佛力超薦-往生蓮位-A4(橫, 合併)', N'<div class="page border" data-body-class="tblt-s a4l-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:06.263' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-s a4l-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (38, N'[標準S3B]個人中牌-佛力超薦-往生蓮位-A3(直, 合併)', N'<div class="page border" data-body-class="tblt-s a3-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:04.340' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-s a3-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (39, N'[標準X1B]隨喜牌位-佛力超薦-往生蓮位-A4(橫)', N'<div class="page border" data-body-class="tblt-xs a4l-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1A.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">&nbsp;</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:50:02.170' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-xs a4l-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (40, N'[標準X2B]隨喜牌位-佛力超薦-往生蓮位-A3(直)', N'<div class="page border" data-body-class="tblt-xs a3-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1A.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-03-28T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:49:59.323' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-xs a3-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (44, N'[標準M3A]個人大牌-佛光注照-長生祿位-A3(横, 合併)', N'<div class="page border" data-body-class="tblt-m a3-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2023-04-26T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:49:12.333' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-m a3-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (45, N'[標準M3B]個人大牌-佛力超薦-往生蓮位-A3(横, 合併)', N'<div class="page border" data-body-class="tblt-m a3-mrg">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">&nbsp;</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border"style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2023-04-26T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:17:11.763' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:
$陽上姓名:
$編號:', N'tblt-l a3-mrg')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (207, N'[標準L2A]大牌位-佛光注照-長生祿位-特-A3(直)', N'<div class="page border" data-body-class="tblt-l a3">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-2.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">&nbsp;</div>
<div class="txt_down vertical">&nbsp;</div>
</div>
</div>
</div>
', CAST(N'2024-11-29T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:49:07.337' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:合家
$陽上姓名:
$編號:', N'tblt-l a3 l2a')
INSERT [dbo].[files] ([num], [subject], [word], [reg_time], [modify_time], [customize_data], [paperset]) VALUES (210, N'[標準L2B]大牌位-佛力超薦-往生蓮位-特-A3(直)', N'<div class="page border" data-body-class="tblt-l a3">
<div class="content">
<div class="bg"><img alt="Alternate Text" src="./tablet-1.svg" /></div>
<div class="text">
<div class="top_text_1">{$牌位主標題}</div>
<div class="top_text_2">{orderItem.print_id}</div>
<div class="top_text_3">個</div>
<div class="right_text text-block fit-text vertical text-start border">{$右標題}</div>
<div class="mid_text text-block fit-text vertical border" style="{$mid_text_style}">{orderItem.f_num_tablet}</div>
<div class="mid_text_2 text-block fit-text vertical border">{$祈福姓名2}</div>
<div class="mid_text_3 text-block fit-text vertical border">亡者 {$祈福姓名3}</div>
<div class="mid_text_4 text-block fit-text vertical border">亡者 {$祈福姓名4}</div>
<div class="left_text text-block fit-text vertical text-start border" style="{$left_text_style}">{orderItem.from_id_tablet}</div>
<div class="txt_up vertical">陽上</div>
<div class="txt_down vertical">拜薦</div>
</div>
</div>
</div>
', CAST(N'2024-11-29T00:00:00.000' AS DateTime), CAST(N'2024-12-13T23:48:58.593' AS DateTime), N'$牌位主標題:
$牌位副標題:
$右標題:
$祈福姓名:
$祈福姓名2:氏門中歷代宗親暨眾冤親債主
$祈福姓名3:
$祈福姓名4:
$陽上姓名:
$編號:', N'tblt-l a3 l2b')
SET IDENTITY_INSERT [dbo].[files] OFF
GO

View File

@@ -0,0 +1,80 @@
SET IDENTITY_INSERT [dbo].[item] ON
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (1, N'權限', NULL, N'A', NULL, N'權限管理', NULL, 0, 4, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (2, N'使用者登錄', N'~/admin/user/reg.aspx', N'A', N'', N'管理者資料新增', N'', 1, 2, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (3, N'使用者管理', N'~/admin/user/index.aspx', N'A', N'', N'管理者資料查詢、修改、刪除', N'', 1, 3, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (4, N'選項', NULL, N'A', NULL, N'選項管理', NULL, 0, 1, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (5, N'選項登錄', N'~/admin/item/index.aspx', N'A', NULL, N'選項資料新增', NULL, 4, 5, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (7, N'選項排序', N'~/admin/item/range.aspx', N'A', NULL, N'設定主選項及次選項的排序', NULL, 4, 36, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (8, N'群組登錄', N'~/admin/user/group_reg.aspx', N'A', NULL, N'登錄群組及權限設定', NULL, 1, 5, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (9, N'群組資料', N'~/admin/user/group_show.aspx', N'A', N'', N'群組資料管理', N'', 1, 4, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (10, N'後台設定', N'~/admin/item/setting.aspx', N'A', NULL, N'設定編輯器圖片路徑、公司信箱、公司名稱…相關設定', NULL, 4, 37, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (11, N'變更管理密碼', N'~/admin/user/pass_edit.aspx', N'A', NULL, N'變更登錄後端之密碼', NULL, 1, 74, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (12, N'操作記錄查詢', N'~/admin/user/log.aspx', N'A', N'', N'', N'', 1, 123, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (20, N'公告', N'', N'A', N'', N'', N'', 0, 6, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (21, N'公告管理', N'~/admin/news/index.aspx', N'A', N'', N'', N'', 20, 126, N'~/admin/news/news_reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (22, N'公告分類管理', N'~/admin/news/kind_reg.aspx', N'A', N'', N'', N'', 20, 125, N'~/admin/news/range.aspx,~/admin/news/range2.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (23, N'人事', N'', N'A', N'', N'', N'', 0, 5, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (24, N'人員組別管理', N'~/admin/hr/kind_reg.aspx', N'A', N'', N'', N'', 23, 129, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (25, N'職稱管理', N'~/admin/hr/title_reg.aspx', N'A', N'', N'', N'', 23, 130, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (26, N'人員管理', N'~/admin/hr/index.aspx', N'A', N'', N'', N'', 23, 131, N'~/admin/hr/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (27, N'考勤', N'~/admin/hr/index2.aspx', N'A', N'', N'', N'', 23, 132, N'~/admin/hr/attendances.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (28, N'信眾', N'', N'A', N'', N'', N'', 0, 2, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (29, N'信眾資料', N'~/admin/follower/index.aspx', N'A', N'', N'', N'', 28, 134, N'~/admin/follower/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (30, N'公告檢視', N'~/admin/news/list.aspx', N'A', N'', N'', N'', 20, 134, N'~/admin/news/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (31, N'活動', N'', N'A', N'', N'', N'', 0, 7, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (34, N'活動詳細分類', N'~/admin/activity/kind_reg.aspx', N'A', N'', N'', N'', 31, 139, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (35, N'活動管理', N'~/admin/activity/index.aspx', N'A', N'', N'', N'', 31, 140, N'~/admin/activity/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (36, N'基本資料', N'', N'A', N'', N'', N'', 0, 10, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (37, N'套表列印設定', N'~/admin/files/index.aspx', N'A', N'', N'', N'', 36, 141, N'~/admin/files/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (38, N'報名', N'~/admin/order/index.aspx', N'A', N'', N'', N'', 0, 8, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (39, N'報名管理', N'~/admin/order/index.aspx', N'A', N'', N'', N'', 38, 143, N'~/admin/order/reg.aspx,~/admin/order/bed_reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (40, N'庫存', N'', N'A', N'', N'', N'', 0, 11, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (41, N'倉庫資料維護', N'~/admin/stock/kind_reg.aspx', N'A', N'', N'', N'', 40, 145, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (42, N'庫存管理', N'~/admin/stock/index.aspx', N'A', N'', N'', N'', 40, 147, N'~/admin/stock/news_reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (43, N'帳務', N'', N'A', N'', N'', N'', 0, 9, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (44, N'收支項目維護', N'~/admin/accounting/kind_reg.aspx', N'A', N'', N'', N'', 43, 148, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (45, N'收支帳戶維護', N'~/admin/accounting/kind_reg2.aspx', N'A', N'', N'', N'', 43, 149, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (46, N'專案', N'', N'A', N'', N'', N'', 0, 3, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (47, N'類別管理', N'~/admin/project/kind_reg.aspx', N'A', N'', N'', N'', 46, 151, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (48, N'收支管理', N'~/admin/accounting/index.aspx', N'A', N'', N'', N'', 43, 152, N'~/admin/accounting/news_reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (49, N'專案管理', N'~/admin/project/index.aspx', N'A', N'', N'', N'', 46, 153, N'~/admin/project/news_reg.aspx,~/admin/project/update.aspx,~/admin/project/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (50, N'贊助報告', N'~/admin/project/list.aspx', N'A', N'', N'', N'', 46, 154, N'~/admin/project/news_reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (51, N'品項分類管理', N'~/admin/activity/itemKind.aspx', N'A', N'', N'', N'', 36, 142, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (52, N'品項管理', N'~/admin/activity/index2.aspx', N'A', N'', N'', N'', 36, 143, N'~/admin/activity/item_reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (53, N'人員匯入', N'~/admin/hr/import.aspx', N'A', N'', N'', N'', 23, 128, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (54, N'信眾匯入', N'~/admin/follower/import.aspx', N'A', N'', N'', N'', 28, 133, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (55, N'掛單', N'', N'A', N'', N'', N'', 0, 13, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (56, N'房間管理', N'~/admin/bed/kind_reg.aspx', N'A', N'', N'', N'', 55, 160, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (57, N'報到名單​', N'~/admin/order/index2.aspx', N'A', N'', N'', N'', 38, 161, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (58, N'活動主類型', N'~/admin/activity/kind_reg2.aspx', N'A', N'', N'', N'', 31, 138, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (59, N'供應商', N'', N'A', N'', N'', N'', 0, 12, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (60, N'供應商分類管理', N'~/admin/supplier/kind_reg.aspx', N'A', N'', N'', N'', 59, 164, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (61, N'供應商管理', N'~/admin/supplier/index.aspx', N'A', N'', N'', N'', 59, 163, N'~/admin/supplier/reg.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (62, N'庫存異動原因', N'~/admin/stock/reason_reg.aspx', N'A', N'', N'', N'', 40, 146, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (63, N'牌位查詢列印', N'~/admin/printpw/yulan.aspx', N'A', N'', N'各活動的牌位查詢列印', N'', 31, 160, N'~/admin/printpw/index.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (64, N'疏文查詢', N'~/admin/shuwen/shuwen.aspx', N'A', N'', N'', N'', 38, 165, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (65, N'入帳沖帳', N'', N'A', N'', N'', N'', 0, 11, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (66, N'登錄匯款資料', N'~/admin/transfer/register.aspx', N'B', N'', N'', N'', 65, 167, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (67, N'出納:核對匯款人', N'~/admin/transfer/verify1.aspx', N'A', N'', N'', N'', 65, 168, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (68, N'出納:核對金額', N'~/admin/transfer/verify2.aspx', N'A', N'', N'', N'', 65, 169, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (69, N'個人-沖帳流程', N'~/admin/transfer/personal_reconcile.aspx', N'A', N'', N'', N'', 65, 170, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (70, N'共同-沖帳流程', N'~/admin/transfer/group_reconcile.aspx', N'A', N'', N'', N'', 65, 171, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (71, N'餘額核銷', N'~/admin/transfer/balance_reconcile.aspx', N'A', N'', N'', N'', 65, 173, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (72, N'餘額核銷查詢', N'~/admin/transfer/balance_reconcile_query.aspx', N'A', N'', N'', N'', 65, 174, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (73, N'沖帳查詢', N'~/admin/transfer/verify_order_record_query.aspx', N'A', N'', N'', N'', 65, 172, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (74, N'匯款/沖帳管理', N'~/admin/transfer/index.aspx', N'A', N'', N'', N'', 65, 166, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (75, N'掛單統計', N'~/admin/guadan/statistics.aspx', N'A', NULL, NULL, NULL, 55, 173, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (76, N'掛單時間參數設置', N'~/admin/guadan/guadantime/timeindex.aspx', N'A', NULL, NULL, N'', 55, 174, N'~/admin/guadan/guadantime/timeset.aspx,~/admin/guadan/guadantime/edit.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (77, N'掛單統計報表', N'~/admin/guadan/statistics_table.aspx', N'A', NULL, NULL, NULL, 55, 173, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (78, N'掛單蓮友', N'~/admin/guadan/guest/index.aspx', N'A', NULL, NULL, NULL, 55, 171, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (79, N'客房管理', N'~/admin/region/bed/index.aspx', N'A', NULL, NULL, NULL, 55, 168, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (80, N'床位和掛單狀態管理', N'~/admin/region/bed/bedstatus/index.aspx', N'A', NULL, NULL, NULL, 65, 169, N'~/admin/region/bed/bedstatus/create.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (81, N'掛單資料', N'~/admin/guadan/index.aspx', N'A', NULL, NULL, NULL, 55, 170, N'~/admin/guadan/view.aspx,~/admin/guadan/update.aspx', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (82, N'新建掛單', N'~/admin/guadan/create.aspx', N'A', NULL, NULL, NULL, 55, 169, NULL, NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (83, N'報名統計-1', N'~/admin/pivot/pivot-01.aspx', N'A', N'', N'', N'', 38, 175, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (84, N'報名統計-2', N'~/admin/pivot/query.aspx', N'A', N'', N'', N'', 38, 176, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (85, N'區域管理', N'', N'A', N'', N'', N'', 0, 177, N'', NULL)
INSERT [dbo].[item] ([num], [title], [url], [target], [price], [demo], [other], [root], [range], [other_url], [s_id]) VALUES (86, N'區域資料', N'~/admin/region/index.aspx', N'A', N'', N'', N'', 85, 178, N'~/admin/region/handle_bed_in_used.aspx', NULL)
SET IDENTITY_INSERT [dbo].[item] OFF
GO

View File

@@ -0,0 +1,7 @@
SET IDENTITY_INSERT [dbo].[stock_reason] ON
INSERT [dbo].[stock_reason] ([num], [kind], [root], [range], [category]) VALUES (1, N'進貨', 0, 1, 1)
INSERT [dbo].[stock_reason] ([num], [kind], [root], [range], [category]) VALUES (2, N'遺失', 0, 2, 2)
INSERT [dbo].[stock_reason] ([num], [kind], [root], [range], [category]) VALUES (3, N'捐贈', 0, 3, 1)
SET IDENTITY_INSERT [dbo].[stock_reason] OFF
GO

130
data/initdb/initdb.ps1 Normal file
View File

@@ -0,0 +1,130 @@
# 初始化資料庫腳本
#
# 前置作業:
# 1. 在 SSMS 建立空白資料庫,例如: 17168erp_e2
# 2. 確認 sqlcmd 已安裝且可執行
# 3. 確認有該資料庫的寫入權限
#
# 注意: 如果資料庫已有資料,會出現 PRIMARY KEY 違反錯誤,這是正常的
# 可以忽略這些錯誤,或使用全新空白資料庫避免錯誤
#
# 用法: .\initdb.ps1 -ServerName "<伺服器名稱>" -DatabaseName "<資料庫名稱>" [-WithExclude]
# - 範例: .\initdb.ps1 -ServerName "localhost" -DatabaseName "17168erp_init"
# - 範例: .\initdb.ps1 -ServerName "localhost" -DatabaseName "17168erp_demo" -WithExclude
param(
[Parameter(Mandatory=$true)]
[string]$ServerName,
[Parameter(Mandatory=$true)]
[string]$DatabaseName,
[Parameter(Mandatory=$false)]
[switch]$WithExclude
)
# 遇到錯誤就停止
$ErrorActionPreference = "Stop"
# 設定檔案路徑
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Write-Host "========================================"
Write-Host "初始化資料庫: $DatabaseName @ $ServerName"
Write-Host "========================================"
try {
# ==== Schema ====
Write-Host "步驟 1: Schema" -ForegroundColor Yellow
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\17168erp_schema.sql" -b
# ==== Include (依 Batch 順序) ====
Write-Host "步驟 2: Include" -ForegroundColor Yellow
# Batch 1
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.admin_group.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.company.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.country.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.files.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.item.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.PostCity.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.PostNumber.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.AncestralTabletStatus.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.RegionRoomBedStatus.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.RegionType.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.stock_reason.Table.sql" -b
# Batch 2
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\include\dbo.admin.Table.sql" -b
# ==== Exclude (依 Batch 順序) ====
if ($WithExclude) {
Write-Host "步驟 3: Exclude" -ForegroundColor Yellow
# Batch 1
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.GuadanTimeSetting.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.accounting_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.accounting_kind2.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.actItem_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity_category_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.appellation.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.bed_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.member_group.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.member_title.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.news_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.project_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.stock_kind.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.supplier_kind.Table.sql" -b
# Batch 2
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.actItem.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.followers.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.supplier.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.bed_kind_detail.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.AncestralTabletArea.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.Region.Table.sql" -b
# Batch 3
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.member.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.pro_order.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity_check.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.family_members.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.followers_tablet.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.GuaDanOrder.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.act_bom.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.actItem_files.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity_kind_detail.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity_relating.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.activity_spares.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.news.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.AncestralTabletPosition.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.Room.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.admin_log.Table.sql" -b
# Batch 4
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.pro_order_detail.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.member_check.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.project.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.news_files.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.AncestralTabletRegistrant.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.RegionRoomBed.Table.sql" -b
# Batch 5
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.bed_order.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.accounting.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.stock.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.project_sub.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.AncestralTabletPositionRecord.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.GuaDanOrderGuest.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.ShuWen.Table.sql" -b
# Batch 6
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.bed_order_detail.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.accounting_files.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.stock_files.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.transfer_register.Table.sql" -b
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.RegionAndRoomAndBedSchedule.Table.sql" -b
# Batch 7
sqlcmd -S $ServerName -d $DatabaseName -f 65001 -i "$ScriptDir\exclude\dbo.pro_order_record.Table.sql" -b
}
Write-Host "✅ 完成!" -ForegroundColor Green
}
catch {
Write-Host "❌ 錯誤: $($_.Exception.Message)" -ForegroundColor Red
exit 1
}

19358
data/initdb/out.txt Normal file

File diff suppressed because it is too large Load Diff

187
data/initdb/readme.md Normal file
View File

@@ -0,0 +1,187 @@
# 檔名
\initdb\17168erp_schema.sql : 結構SQL
\initdb\include : 初始DB**需要**的TABLE (12個)
\initdb\exclude : 初始DB**不要**的TABLE (55個) 目前為範例資料
---
\initdb\db_init.sql : 只含include的資料列
\initdb\db_demo.sql : 含少數exclude的範例資料列
## 假資料範圍(筆數)
信眾(50?), 報名(200?), 帳戶(1?)
法會, 功德: 應可用真資料?
其它: 真假資料都不要?
如: 寮房? 掛單?
# Table名稱及建立順序 (依外鍵關聯排序include在前)
### ====== Batch 1: 無外鍵 ======
#### include
admin_group
company
country
files
item
PostCity
PostNumber
AncestralTabletStatus
RegionRoomBedStatus
RegionType
stock_reason
#### exclude
GuadanTimeSetting
accounting_kind
accounting_kind2
actItem_kind
activity_category_kind
activity_kind
appellation
bed_kind
member_group
member_title
news_kind
project_kind
stock_kind
supplier_kind
### ====== Batch 2 ======
#### include
admin
#### exclude
actItem
followers
activity
supplier
bed_kind_detail
AncestralTabletArea
Region
### ====== Batch 3 : exclude only ======
member
pro_order
activity_check
family_members
followers_tablet
GuaDanOrder
act_bom
actItem_files
activity_kind_detail
activity_relating
activity_spares
news
AncestralTabletPosition
Room
admin_log
### ====== Batch 4 : exclude only ======
pro_order_detail
member_check
project
news_files
AncestralTabletRegistrant
RegionRoomBed
### ====== Batch 5 : exclude only ======
bed_order
accounting
stock
project_sub
AncestralTabletPositionRecord
GuaDanOrderGuest
ShuWen
### ====== Batch 6 : exclude only ======
bed_order_detail
accounting_files
stock_files
transfer_register
RegionAndRoomAndBedSchedule
### ====== Batch 7 ======
pro_order_record
# 執行錯誤分析
## 問題 1自引用外鍵的 INSERT 順序錯誤 (68 筆錯誤)
### 受影響的表
| 表 | 自引用外鍵 | 錯誤數 |
|---|---|---|
| Region | FK_Region_ParentUuid (ParentUuid → Uuid) | 4 |
| followers | FK_followers_followers (leader → num) | 1 |
### 範例Region.Table.sql 順序錯誤
```
第1行三樓男眾寮房ParentUuid = 455... → 引用第3行 ❌
第2行十樓ParentUuid = 1cc... → 引用第5行 ❌
第3行三樓ParentUuid = 1cc... → 引用第5行 ❌
第4行十樓女眾寮房ParentUuid = 629... → 引用第2行 ❌
第5行鄉根大樓ParentUuid = NULL ✓ (根節點)
```
### 解決方案
重新排序 SQL 檔案,根節點在前:
```
鄉根大樓 (根) → 三樓, 十樓 → 三樓男眾寮房, 十樓女眾寮房
```
---
## 問題 2連鎖外鍵錯誤
### 原因
自引用外鍵的表Region, followers因 INSERT 順序錯誤導致部分記錄插入失敗,
進而導致引用這些表的子表也出現外鍵錯誤。
### 為什麼源資料庫中這些資料能存在?
源資料庫可能:
1. 外鍵用 `WITH NOCHECK` 創建(不檢查現有資料)
2. 插入時暫時禁用外鍵約束
3. 導出時只導出部分資料(有過濾條件)
但我們的 schema 使用 `WITH CHECK`(嚴格模式),每筆 INSERT 都會驗證。
### 錯誤鏈
```
Region 部分記錄插入失敗 (自引用順序錯誤)
└→ Room 外鍵錯誤
└→ RegionRoomBed 外鍵錯誤
└→ GuaDanOrderGuest 外鍵錯誤
└→ RegionAndRoomAndBedSchedule 外鍵錯誤 (14筆)
followers 部分記錄插入失敗 (自引用順序錯誤)
└→ pro_order (~20筆), family_members, followers_tablet 外鍵錯誤
```
### 結論
**修正 Region 和 followers 的 INSERT 順序後,連鎖錯誤應會消失。**
### 解決方案
1. 修正自引用表的 INSERT 順序
2. 或在插入前禁用外鍵檢查,插入後再啟用
---
## 已解決UTF-8 編碼問題
`initdb.ps1` 已加上 `-f 65001` 參數
---
# 待辦工作清單
## 自引用外鍵表分析
| 表 | 自引用外鍵 | 資料狀況 | 需處理? |
|---|---|---|---|
| act_bom | package_num → num | 已按順序排列 | ❌ |
| AncestralTabletArea | ParentAreaId → AreaId | 空表 | ❌ |
| followers | leader → num | 1 筆錯誤 | ⚠️ 待查 |
| Region | ParentUuid → Uuid | 4 筆錯誤,順序錯誤 | ✅ 需重排 |
## 工作項目
- [ ] 重排 `exclude/dbo.Region.Table.sql` INSERT 順序
- [ ] 檢查 `exclude/dbo.followers.Table.sql` 中 leader 引用問題
- [ ] 重新測試初始化腳本

27
data/memo/report-view.md Normal file
View File

@@ -0,0 +1,27 @@
# 報表系統規劃
為每場活動(法會)建立報名到舉辦過程的報表,
要涵蓋以下面向的統計分析資訊
- 以單一場法會為核心
- 時間面向: 當前狀況, 指定期間狀況
- 維度:
- 信眾: 報名數量, 金額, 收款狀態
- 牌位型態(活動品項表): 報名數量, 金額, 收款狀態
- 收款狀態: 己收/未收 統計明細
## 法會報表系統查詢規劃**
### 1. 核心基礎 VIEW
1. `vw_activity_registration_base` - 單一活動的完整報名基礎資料
2. `vw_activity_payment_detail` - 單一活動的完整收款明細資料
### 2. 統計分析 VIEW
3. `vw_activity_follower_statistics` - 按信眾統計報名情況
4. `vw_activity_item_statistics` - 按品項統計報名情況
5. `vw_activity_payment_status` - 收款狀態統計分析
### 3. 時間維度分析 VIEW
6. `vw_activity_registration_trend` - 按日期統計報名趨勢
7. `vw_activity_payment_trend` - 按收款日期統計收款趨勢
### 4. 詳細查詢 VIEW
8. `vw_activity_unpaid_detail` - 未收款明細清單
9. `vw_activity_transfer_reconciliation` - 匯款對帳明細

252
data/memo/report-view.sql Normal file
View File

@@ -0,0 +1,252 @@
drop view if exists vw_activity_registration_base;
drop view if exists vw_activity_payment_detail;
drop view if exists vw_activity_follower_statistics;
drop view if exists vw_activity_item_statistics;
drop view if exists vw_activity_payment_status;
drop view if exists vw_activity_registration_trend;
drop view if exists vw_activity_payment_trend;
drop view if exists vw_activity_unpaid_detail;
drop view if exists vw_activity_transfer_reconciliation;
GO
-- 1. 法會報名基礎資料 VIEW
CREATE VIEW vw_activity_registration_base AS
SELECT
a.num AS ,
a.subject AS ,
a.startDate_solar AS ,
a.endDate_solar AS ,
po.order_no AS ,
po.up_time AS ,
po.keyin1 AS ,
f.num AS ,
f.f_number AS ,
f.u_name AS ,
f.phone AS ,
f.identity_type AS ,
f.country AS ,
pod.num AS ,
ai.num AS ,
ai.subject AS ,
ai.category AS ,
pod.price AS ,
pod.qty AS ,
pod.price * pod.qty AS ,
pod.pay AS ,
(pod.price * pod.qty - ISNULL(pod.pay, 0)) AS ,
pod.pay_date AS ,
pod.start_date AS ,
pod.due_date AS ,
pod.keyin1 AS ,
pod.demo AS
FROM activity a
INNER JOIN pro_order po ON a.num = po.activity_num
INNER JOIN followers f ON po.f_num = f.num
INNER JOIN pro_order_detail pod ON po.order_no = pod.order_no
INNER JOIN actItem ai ON pod.actItem_num = ai.num;
GO
-- 2. 收款明細基礎資料 VIEW
CREATE VIEW vw_activity_payment_detail AS
SELECT
a.num AS ,
a.subject AS ,
po.order_no AS ,
f.u_name AS ,
pod.num AS ,
ai.subject AS ,
por.num AS ,
por.price AS ,
por.payment AS ,
por.pay_date AS ,
por.organization AS ,
por.bank_code AS ,
por.transfer_id AS ID,
por.reconcile_memo AS ,
tr.name AS ,
tr.phone AS ,
tr.amount AS ,
tr.check_date AS ,
tr.status AS
FROM activity a
INNER JOIN pro_order po ON a.num = po.activity_num
INNER JOIN followers f ON po.f_num = f.num
INNER JOIN pro_order_detail pod ON po.order_no = pod.order_no
INNER JOIN actItem ai ON pod.actItem_num = ai.num
LEFT JOIN pro_order_record por ON pod.num = por.detail_num
LEFT JOIN transfer_register tr ON por.transfer_id = tr.id;
GO
-- 3. 信眾報名統計 VIEW
CREATE VIEW vw_activity_follower_statistics AS
SELECT
,
,
,
,
,
,
,
,
COUNT(DISTINCT ) AS ,
COUNT() AS ,
SUM() AS ,
SUM() AS ,
SUM() AS ,
CASE
WHEN SUM() = 0 THEN '已繳清'
WHEN SUM() = SUM() THEN '未繳'
ELSE '部分繳款'
END AS
FROM vw_activity_registration_base
GROUP BY , , , , , , , ;
GO
-- 4. 品項報名統計 VIEW
CREATE VIEW vw_activity_item_statistics AS
SELECT
,
,
,
,
,
,
COUNT() AS ,
SUM() AS ,
SUM() AS ,
SUM() AS ,
SUM() AS ,
CASE
WHEN COUNT() = 0 THEN 0
ELSE AVG()
END AS ,
CASE
WHEN SUM() = 0 THEN '已收齊'
WHEN SUM() = SUM() THEN '未收款'
ELSE '部分收款'
END AS
FROM vw_activity_registration_base
GROUP BY , , , , , ;
GO
-- 5. 收款狀態統計 VIEW
CREATE VIEW vw_activity_payment_status AS
SELECT
,
,
'總計' AS ,
COUNT(DISTINCT ) AS ,
COUNT() AS ,
SUM() AS ,
SUM() AS ,
SUM() AS ,
CASE
WHEN SUM() = 0 THEN 0
ELSE ROUND(SUM() * 100.0 / SUM(), 2)
END AS
FROM vw_activity_registration_base
GROUP BY ,
UNION ALL
SELECT
,
,
CASE
WHEN = 0 THEN '已繳清'
WHEN = THEN '未繳'
ELSE '部分繳款'
END AS ,
COUNT(DISTINCT ) AS ,
COUNT() AS ,
SUM() AS ,
SUM() AS ,
SUM() AS ,
CASE
WHEN SUM() = 0 THEN 0
ELSE ROUND(SUM() * 100.0 / SUM(), 2)
END AS
FROM vw_activity_registration_base
GROUP BY , ,
CASE
WHEN = 0 THEN '已繳清'
WHEN = THEN '未繳'
ELSE '部分繳款'
END;
GO
-- 6. 報名趨勢分析 VIEW
CREATE VIEW vw_activity_registration_trend AS
SELECT
,
,
CAST( AS DATE) AS ,
COUNT(DISTINCT ) AS ,
COUNT() AS ,
SUM() AS ,
SUM() AS ,
SUM() AS
FROM vw_activity_registration_base
GROUP BY , , CAST( AS DATE);
GO
-- 7. 收款趨勢分析 VIEW
CREATE VIEW vw_activity_payment_trend AS
SELECT
,
,
CAST( AS DATE) AS ,
COUNT() AS ,
SUM() AS ,
COUNT(DISTINCT ) AS ,
CASE
WHEN COUNT() = 0 THEN 0
ELSE AVG()
END AS
FROM vw_activity_payment_detail
WHERE IS NOT NULL
GROUP BY , , CAST( AS DATE);
GO
-- 8. 未收款明細 VIEW
CREATE VIEW vw_activity_unpaid_detail AS
SELECT
,
,
,
,
,
,
,
,
,
,
CASE
WHEN < GETDATE() THEN '已逾期'
WHEN <= DATEADD(DAY, 3, GETDATE()) THEN '即將到期'
ELSE '未到期'
END AS
FROM vw_activity_registration_base
WHERE > 0;
GO
-- 9. 匯款對帳明細 VIEW
CREATE VIEW vw_activity_transfer_reconciliation AS
SELECT
,
,
ID,
,
,
,
,
,
COUNT() AS ,
SUM() AS ,
CASE
WHEN SUM() IS NULL THEN
ELSE - SUM()
END AS
FROM vw_activity_payment_detail
WHERE ID IS NOT NULL
GROUP BY , , ID, , , , , ;
GO

484
data/memo/report.md Normal file
View File

@@ -0,0 +1,484 @@
# 相關頁面
## 基本功能
admin/order/index.aspx
admin/activity/index.aspx
admin/follower/index.aspx
admin/activity/index2.aspx
admin/transfer/index.aspx
## 入帳沖帳
D:\dev\ez\17168erp\git_17888\web\admin\transfer\balance_reconcile_query.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\balance_reconcile.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\group_reconcile.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\index.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\personal_reconcile.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\register.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\verify_order_record_query.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\verify.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\verify1.aspx
D:\dev\ez\17168erp\git_17888\web\admin\transfer\verify2.aspx
# 資料結構
## 📊 17168ERP 系統使用的資料表架構
### 🎯 **核心業務資料表**
#### 1. **報名管理系統** (`order/index.aspx`)
**主要資料表:**
- **`pro_order`** - 報名主表
- `order_no` (單號)、`up_time` (報名日期)、`keyin1` (單據狀態)
- `f_num` (信眾編號)、`activity_num` (活動編號)、`phone` (聯絡電話)
- **`pro_order_detail`** - 報名明細表
- `order_no` (關聯主表)、`actItem_num` (活動品項)、`f_num` (報名者)
- `price` (金額)、`qty` (數量)、`pay` (已收金額)、`pay_date` (付款期限)
- **`activity`** - 活動主表
- `num``subject` (活動名稱)、`start_date` (開始日期)、`end_date` (結束日期)
- **`actItem`** - 活動品項表
- `num``subject` (品項名稱)、`category` (品項分類)
#### 2. **信眾管理系統** (`follower/index.aspx`)
**主要資料表:**
- **`followers`** - 信眾基本資料表
- `num``f_number` (信眾編號)、`u_name` (姓名)、`sex` (性別)
- `identity_type` (身分別)、`birthday` (生日)、`phone` (電話)
- `address` (地址)、`country` (國籍)、`refugedate` (皈依日期)
- **`countries`** - 國籍資料表
- `ID``name_zh` (中文名稱)、`name_en` (英文名稱)
#### 3. **活動管理系統** (`activity/index.aspx`)
**主要資料表:**
- **`activity`** - 活動主表
- `num``subject` (活動名稱)、`startDate_solar` (國曆開始日期)
- `startDate_lunar` (農曆開始日期)、`endDate_solar` (國曆結束日期)
- `endDate_lunar` (農曆結束日期)、`dueDate` (報名截止日期)
- **`activity_kind`** - 活動分類表
- `num``subject` (分類名稱)
#### 4. **匯款沖帳系統** (`transfer/index.aspx`)
**主要資料表:**
- **`transfer_register`** - 匯款登錄表
- `id``name` (匯款人姓名)、`phone` (電話)、`amount` (匯款金額)
- `pay_type` (付款方式)、`account_last5` (帳號後五碼)
- `proof_img` (匯款證明圖片)、`status` (狀態)
- `f_num_match` (配對信眾編號)、`check_amount` (核對金額)
- **`accounting`** - 會計帳務表
- `num``category` (科目分類)、`kind` (收支類型)
- `price` (金額)、`debtor` (債務人)、`activity_num` (關聯活動)
- **`pro_order_record`** - 報名收款記錄表
- `num``detail_num` (關聯明細)、`price` (金額)、`payment` (付款方式)
- `pay_date` (收款日期)、`transfer_id` (關聯匯款記錄)
### 🔗 **關聯關係**
#### **主要外鍵關聯:**
```
pro_order → followers (f_num)
pro_order → activity (activity_num)
pro_order_detail → pro_order (order_no)
pro_order_detail → actItem (actItem_num)
pro_order_detail → followers (f_num)
transfer_register → followers (f_num)
transfer_register → activity (activity_num)
accounting → pro_order_detail (pro_order_detail_num)
```
### 📈 **資料表統計**
| 功能模組 | 主要資料表數量 | 核心業務表 |
|---------|-------------|-----------|
| 報名管理 | 5個 | `pro_order`, `pro_order_detail` |
| 信眾管理 | 2個 | `followers`, `countries` |
| 活動管理 | 2個 | `activity`, `activity_kind` |
| 匯款沖帳 | 3個 | `transfer_register`, `accounting`, `pro_order_record` |
### 🎯 **系統特色**
1. **模組化設計**:每個功能模組都有獨立的資料表群組
2. **關聯完整**:透過外鍵建立完整的業務關聯關係
3. **狀態管理**:多個狀態表支援複雜的業務流程
4. **UUID設計**新模組採用UUID作為主鍵提升擴展性
5. **軟刪除機制**:使用`IsDeleted`欄位而非物理刪除
這個資料表架構支援了一個完整的宗教活動管理ERP系統涵蓋了從信眾管理、活動報名、床位安排到財務沖帳的全流程管理。
# 入帳沖帳
```
報名者匯款 → transfer_register (status: pending)
出納核對身份 → transfer_register (status: verified, f_num_match)
出納核對金額 → transfer_register (status: confirmed, check_amount)
會計個人沖帳 → pro_order_record + accounting
會計共同沖帳 → pro_order_record + accounting (多筆)
會計餘額核銷 → transfer_register (remain_amount)
查詢統計報表 → 各表關聯查詢
```
# DB SCHEMA
我來為您使用 Mermaid 語法繪製 17168ERP 系統的 ER 圖,展示各個資料表之間的關聯關係。
[1 tool called]
我無法直接創建 Mermaid 圖表,但我可以為您提供完整的 Mermaid ER 圖代碼,您可以複製到支援 Mermaid 的工具中查看(如 GitHub、GitLab、或 Mermaid Live Editor
以下是 17168ERP 系統的 ER 圖 Mermaid 代碼:
```mermaid
erDiagram
%% 信眾管理系統
followers {
int num PK
string f_number
string u_name
string sex
int identity_type
datetime birthday
string phone
string email
datetime refugedate
string refuge_name
string address
string demo
int leader
string socialid1
string socialid2
string tab
string contactor
string contactor_phone
string blood
string customize_data
}
countries {
int ID PK
string name_zh
string name_en
string range
}
%% 活動管理系統
activity {
int num PK
string subject
datetime startDate_solar
datetime startDate_lunar
datetime endDate_solar
datetime endDate_lunar
datetime dueDate
int kind
string demo
string customize_data
}
activity_kind {
int num PK
string subject
string demo
}
actItem {
int num PK
int activity_num FK
string subject
int category
string demo
string customize_data
}
%% 報名管理系統
pro_order {
string order_no PK
datetime up_time
datetime reg_time
string keyin1
int f_num FK
string phone
int activity_num FK
string address
string demo
string customize_data
int introducer FK
boolean send_receipt
string receipt_title
}
pro_order_detail {
int num PK
string order_no FK
int actItem_num FK
int f_num FK
string f_num_tablet
string address
int from_id FK
string from_id_tablet
datetime due_date
int bed_type
float price
int qty
datetime start_date
datetime extend_date
float pay
datetime pay_date
int keyin1
string demo
datetime UpdateTime
}
%% 匯款沖帳系統
transfer_register {
int id PK
int activity_num FK
string name
string phone
string pay_type
string account_last5
decimal amount
string pay_mode
string note
string proof_img
string status
datetime create_time
int f_num_match FK
int f_num FK
int acc_num
datetime check_date
decimal check_amount
string check_memo
string check_status
int acc_kind
int member_num
datetime verify_time
string verify_note
string draft
decimal remain_amount
int balance_act_item FK
int balance_pro_order_detail FK
}
accounting {
int num PK
datetime uptime
int category
int kind
int kind2
float price
float tax
string demo
int mem_num
string debtor
int activity_num FK
string excerpt
datetime reg_time
int pro_order_detail_num FK
}
pro_order_record {
int num PK
int detail_num FK
float price
int payment
datetime reg_time
datetime pay_date
string organization
string bank_code
int transfer_id FK
string reconcile_memo
}
%% 區域床位管理系統
Region {
Guid Uuid PK
string Name
boolean Gender
boolean IsActive
boolean IsDeleted
}
Room {
Guid Uuid PK
string Name
boolean Gender
int BedCount
boolean IsActive
datetime CreatedAt
datetime UpdatedAt
boolean IsDeleted
Guid RegionUuid FK
}
RegionRoomBed {
Guid Uuid PK
string Name
boolean IsActive
boolean Gender
boolean IsDeleted
Guid RoomUuid FK
string StatusCode FK
}
RegionRoomBedStatus {
string Code PK
string Name
string Description
int Category
boolean IsDeleted
}
%% 掛單管理系統
GuaDanOrder {
Guid Uuid PK
datetime StartDate
datetime EndDate
int CreateUser FK
datetime CreatedAt
datetime UpdatedAt
string Notes
string GuaDanOrderNo
int BookerFollowerNum FK
string BookerName
string BookerPhone
boolean IsDeleted
int ActivityNum FK
boolean IsCancel
}
GuaDanOrderGuest {
Guid Uuid PK
string GuaDanOrderNo FK
int FollowerNum FK
boolean IsDeleted
Guid RoomUuid FK
Guid BedUuid FK
datetime CheckInAt
datetime CheckOutAt
string StatusCode FK
}
RegionAndRoomAndBedSchedule {
Guid Uuid PK
Guid TargetUuid FK
string GuaDanOrderNo
date ScheduleDate
boolean IsCancel
boolean IsDeleted
int UseType
string Title
string Description
string CreatedBy
datetime CreatedAt
Guid GuaDanOrderGuestUuid FK
}
%% 關聯關係
followers ||--o{ pro_order : "報名"
followers ||--o{ pro_order_detail : "報名明細"
followers ||--o{ transfer_register : "匯款人"
followers ||--o{ GuaDanOrderGuest : "掛單客人"
activity ||--o{ pro_order : "活動報名"
activity ||--o{ actItem : "活動品項"
activity ||--o{ transfer_register : "活動匯款"
activity ||--o{ GuaDanOrder : "掛單活動"
pro_order ||--o{ pro_order_detail : "報名明細"
pro_order ||--o{ pro_order_record : "收款記錄"
pro_order_detail ||--o{ pro_order_record : "明細收款"
pro_order_detail ||--o{ accounting : "會計分錄"
pro_order_detail ||--o{ transfer_register : "沖帳明細"
transfer_register ||--o{ pro_order_record : "匯款記錄"
transfer_register ||--o{ accounting : "會計記錄"
Region ||--o{ Room : "區域房間"
Room ||--o{ RegionRoomBed : "房間床位"
RegionRoomBedStatus ||--o{ RegionRoomBed : "床位狀態"
RegionRoomBedStatus ||--o{ GuaDanOrderGuest : "客人狀態"
GuaDanOrder ||--o{ GuaDanOrderGuest : "掛單客人"
GuaDanOrderGuest ||--o{ RegionAndRoomAndBedSchedule : "床位排程"
countries ||--o{ followers : "國籍"
activity_kind ||--o{ activity : "活動分類"
```
## 📊 **ER 圖說明**
### **主要實體群組:**
1. **信眾管理群組**
- `followers` (信眾基本資料)
- `countries` (國籍資料)
2. **活動管理群組**
- `activity` (活動主表)
- `activity_kind` (活動分類)
- `actItem` (活動品項)
3. **報名管理群組**
- `pro_order` (報名主表)
- `pro_order_detail` (報名明細)
4. **財務管理群組**
- `transfer_register` (匯款登錄)
- `accounting` (會計帳務)
- `pro_order_record` (收款記錄)
5. **床位管理群組**
- `Region` (區域)
- `Room` (房間)
- `RegionRoomBed` (床位)
- `RegionRoomBedStatus` (床位狀態)
6. **掛單管理群組**
- `GuaDanOrder` (掛單主表)
- `GuaDanOrderGuest` (掛單客人)
- `RegionAndRoomAndBedSchedule` (床位排程)
### **關鍵關聯關係:**
- **一對多關係**:使用 `||--o{` 表示
- **外鍵關聯**FK 標記顯示主要的外鍵關聯
- **業務流程**:從信眾報名 → 匯款 → 沖帳 → 床位安排的完整流程
您可以将這個 Mermaid 代碼複製到 [Mermaid Live Editor](https://mermaid.live/) 或其他支援 Mermaid 的工具中查看完整的 ER 圖表。
---
# 報表系統規劃
為每場活動(法會)建立報名到舉辦過程的報表,
要涵蓋以下面向的統計分析資訊
- 以單一場法會為核心
- 時間面向: 當前狀況, 指定期間狀況
- 維度:
- 信眾: 報名數量, 金額, 收款狀態
- 牌位型態(活動品項表): 報名數量, 金額, 收款狀態
- 收款狀態: 己收/未收 統計明細
## 執行方式:
- 類似excel, 詳細資料->pivot table
- 先建立一個(或數個)最核心的sql view, 包含各項:報名資料, 收款明細
- 先以單一活動編號為固定FILTER : activity.num=59
- 再依不同面向, 建立第二級的sql view
- 再人工將以上:第一, 第二級的SQL VIEW, 以EXCEL查詢, 做資料分析/整理
- 相關英文欄名, 在VIEW中以中文別名顯示
## 相關SQL VIEW
- (查詢清單)
### (查詢)
(說明)
```sql
```

View File

@@ -0,0 +1,11 @@
資料字典:
USE [17168erp_t]
GO
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'available', N'可用', N'Position')
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'maintenance', N'維護中', N'Position')
INSERT [dbo].[AncestralTabletStatus] ([StatusCode], [StatusName], [StatusType]) VALUES (N'used', N'已使用', N'Position')
GO
代碼中會用到上面表中的狀態,所以必須在該表中插入上面的數據
AncestralTabletStatus_script.sql文件中的表是神祖牌位功能模組需要用到的表再運行之前需要先執行該文件
執行AncestralTabletStatus_script.sql後要把在item表中新增的URL權限添加到相應的管理員帳號

BIN
data/查詢範例.xlsx Normal file

Binary file not shown.

Binary file not shown.

12
review_report.txt Normal file
View File

@@ -0,0 +1,12 @@
═══════════════════════════════════════════════════════════════
🔍 AsEnumerable/AsQueryable/ToList 完整 REVIEW
═══════════════════════════════════════════════════════════════
檢查範圍Batch 1-3 所有已修改文件
檢查標準:
✅ 最佳選擇 - 性能和可讀性都最優
⚠️ 可優化 - 可以進一步優化
❌ 需修正 - 存在明顯問題
═══════════════════════════════════════════════════════════════

1
tyme4net/tyme4net Submodule

Submodule tyme4net/tyme4net added at 9ee8f71dac

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// GuaDanStatusCode 的摘要描述
/// </summary>
public static class GuaDanStatusCode
{
public static class Bed
{
public const string Empty = "101"; // 空床:床位可分配
public const string Occupied = "102"; // 占用中:床位已有人使用
public const string Repair = "103"; // 維修停用:床位維修或不可使用
}
public static class Room
{
public const string Empty = "301"; // 空房:房間所有床位皆為空
public const string Partly = "302"; // 部分入住:房間有人,但仍有空床
public const string Full = "303"; // 已滿:房間所有床位皆已入住
public const string Repair = "304"; // 維修停用:房間維修或不可使用
}
public static class Guadan
{
public const string Booked = "401"; // 預訂成功:默認就是預訂成功狀態
public const string CheckedIn = "402"; // 已入住:已辦理入住
public const string CheckedOut = "403"; // 已退房
public const string Cancelled = "404"; // 已取消:取消後的狀態,不是取消的動作
}
}

View File

@@ -1,9 +1,9 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
// 這個程式碼是由範本產生。
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// 對這個檔案進行手動變更可能導致您的應用程式產生未預期的行為。
// 如果重新產生程式碼,將會覆寫對這個檔案的手動變更。
// </auto-generated>
//------------------------------------------------------------------------------
@@ -74,7 +74,6 @@ namespace Model
public virtual DbSet<stock_reason> stock_reason { get; set; }
public virtual DbSet<supplier> suppliers { get; set; }
public virtual DbSet<supplier_kind> supplier_kind { get; set; }
public virtual DbSet<sysdiagram> sysdiagrams { get; set; }
public virtual DbSet<act_bom> act_bom { get; set; }
public virtual DbSet<family_members> family_members { get; set; }
public virtual DbSet<PostCity> PostCitiy { get; set; }
@@ -90,6 +89,11 @@ namespace Model
public virtual DbSet<RegionRoomBedStatus> RegionRoomBedStatus { get; set; }
public virtual DbSet<RegionType> RegionType { get; set; }
public virtual DbSet<Room> Room { get; set; }
public virtual DbSet<AncestralTabletArea> AncestralTabletArea { get; set; }
public virtual DbSet<AncestralTabletPosition> AncestralTabletPosition { get; set; }
public virtual DbSet<AncestralTabletPositionRecord> AncestralTabletPositionRecord { get; set; }
public virtual DbSet<AncestralTabletRegistrant> AncestralTabletRegistrant { get; set; }
public virtual DbSet<AncestralTabletStatus> AncestralTabletStatus { get; set; }
public virtual int pager_eztrust(Nullable<int> startRowIndex, Nullable<int> pageSize, string tableName, string columnName, string sqlWhere, string orderBy, ObjectParameter rowCount)
{

View File

@@ -1,10 +1,10 @@
// T4 code generation is enabled for model 'D:\dev\ez\17168erp\git_17888\web\App_Code\Model\Model.edmx'.
// To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
// is open in the designer.
// 已啟用模型 'D:\17168erp_new_git\17168ERP\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。
// 若要啟用舊版程式碼產生,請將 [程式碼產生策略] 設計工具屬性的值
//變更為 [舊版 ObjectContext]。當模型在設計工具中開啟時,這個屬性便可
//以在 [屬性] 視窗中使用。
// If no context and entity classes have been generated, it may be because you created an empty model but
// have not yet chosen which version of Entity Framework to use. To generate a context class and entity
// classes for your model, open the model in the designer, right-click on the designer surface, and
// select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation
// Item...'.
// 如果尚未產生任何內容和實體類型,可能是因為您建立了空的模型,但
//尚未選擇要使用的 Entity Framework 版本。若要為您的模型產生內容類別和
//實體類型,請在設計工具中開啟模型,以滑鼠右鍵按一下設計工具介面並
//選取 [從資料庫更新模型]、[由模型產生資料庫] 或 [加入程式碼產生
//項目]。

View File

@@ -1,9 +1,9 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
// 這個程式碼是由範本產生。
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// 對這個檔案進行手動變更可能導致您的應用程式產生未預期的行為。
// 如果重新產生程式碼,將會覆寫對這個檔案的手動變更。
// </auto-generated>
//------------------------------------------------------------------------------
@@ -441,7 +441,7 @@ namespace Model
{
this.members = new HashSet<member>();
this.news = new HashSet<news>();
this.GuaDanOrders = new HashSet<GuaDanOrder>();
this.GuaDanOrder = new HashSet<GuaDanOrder>();
}
public int num { get; set; }
@@ -477,7 +477,7 @@ namespace Model
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<news> news { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrder> GuaDanOrders { get; set; }
public virtual ICollection<GuaDanOrder> GuaDanOrder { get; set; }
}
}
namespace Model
@@ -523,6 +523,139 @@ namespace Model
using System;
using System.Collections.Generic;
public partial class AncestralTabletArea
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public AncestralTabletArea()
{
this.AncestralTabletArea1 = new HashSet<AncestralTabletArea>();
this.AncestralTabletPosition = new HashSet<AncestralTabletPosition>();
}
public int AreaId { get; set; }
public string AreaName { get; set; }
public string AreaCode { get; set; }
public Nullable<int> ParentAreaId { get; set; }
public string AreaType { get; set; }
public Nullable<int> Price { get; set; }
public Nullable<int> SortOrder { get; set; }
public bool IsDisabled { get; set; }
public string Description { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<AncestralTabletArea> AncestralTabletArea1 { get; set; }
public virtual AncestralTabletArea AncestralTabletArea2 { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<AncestralTabletPosition> AncestralTabletPosition { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class AncestralTabletPosition
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public AncestralTabletPosition()
{
this.AncestralTabletRegistrant = new HashSet<AncestralTabletRegistrant>();
}
public int PositionId { get; set; }
public int AreaId { get; set; }
public string PositionCode { get; set; }
public string PositionName { get; set; }
public Nullable<int> Price { get; set; }
public string StatusCode { get; set; }
public string Description { get; set; }
public Nullable<int> RowNo { get; set; }
public Nullable<int> ColumnNo { get; set; }
public virtual AncestralTabletArea AncestralTabletArea { get; set; }
public virtual AncestralTabletStatus AncestralTabletStatus { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<AncestralTabletRegistrant> AncestralTabletRegistrant { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class AncestralTabletPositionRecord
{
public int RecordId { get; set; }
public string RegistrantCode { get; set; }
public string NPTitle { get; set; }
public System.DateTime NPStandDate { get; set; }
public string NPYangShang { get; set; }
public string WPContent { get; set; }
public System.DateTime CreatedAt { get; set; }
public Nullable<System.DateTime> UpdatedAt { get; set; }
public virtual AncestralTabletRegistrant AncestralTabletRegistrant { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class AncestralTabletRegistrant
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public AncestralTabletRegistrant()
{
this.AncestralTabletPositionRecord = new HashSet<AncestralTabletPositionRecord>();
}
public string RegistrantCode { get; set; }
public string Name { get; set; }
public string Phone { get; set; }
public string Address { get; set; }
public System.DateTime RegisterDate { get; set; }
public Nullable<int> Price { get; set; }
public Nullable<int> PositionId { get; set; }
public System.DateTime StartDate { get; set; }
public Nullable<System.DateTime> EndDate { get; set; }
public bool IsLongTerm { get; set; }
public bool IsActive { get; set; }
public System.DateTime CreatedAt { get; set; }
public Nullable<System.DateTime> UpdatedAt { get; set; }
public bool IsEnd { get; set; }
public virtual AncestralTabletPosition AncestralTabletPosition { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<AncestralTabletPositionRecord> AncestralTabletPositionRecord { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class AncestralTabletStatus
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public AncestralTabletStatus()
{
this.AncestralTabletPosition = new HashSet<AncestralTabletPosition>();
}
public string StatusCode { get; set; }
public string StatusName { get; set; }
public string StatusType { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<AncestralTabletPosition> AncestralTabletPosition { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class appellation
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
@@ -768,8 +901,8 @@ namespace Model
this.family_members = new HashSet<family_members>();
this.transfer_register = new HashSet<transfer_register>();
this.transfer_register1 = new HashSet<transfer_register>();
this.GuaDanOrders = new HashSet<GuaDanOrder>();
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
this.GuaDanOrder = new HashSet<GuaDanOrder>();
this.GuaDanOrderGuest = new HashSet<GuaDanOrderGuest>();
}
public int num { get; set; }
@@ -830,9 +963,9 @@ namespace Model
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<transfer_register> transfer_register1 { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrder> GuaDanOrders { get; set; }
public virtual ICollection<GuaDanOrder> GuaDanOrder { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
}
}
namespace Model
@@ -857,6 +990,12 @@ namespace Model
public partial class GuaDanOrder
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public GuaDanOrder()
{
this.GuaDanOrderGuest = new HashSet<GuaDanOrderGuest>();
}
public Nullable<System.DateTime> StartDate { get; set; }
public Nullable<System.DateTime> EndDate { get; set; }
public Nullable<int> CreateUser { get; set; }
@@ -869,9 +1008,13 @@ namespace Model
public string BookerPhone { get; set; }
public bool IsDeleted { get; set; }
public System.Guid Uuid { get; set; }
public Nullable<int> ActivityNum { get; set; }
public bool IsCancel { get; set; }
public virtual admin admin { get; set; }
public virtual follower follower { get; set; }
public virtual follower followers { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
}
}
namespace Model
@@ -881,6 +1024,12 @@ namespace Model
public partial class GuaDanOrderGuest
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public GuaDanOrderGuest()
{
this.RegionAndRoomAndBedSchedule = new HashSet<RegionAndRoomAndBedSchedule>();
}
public string GuaDanOrderNo { get; set; }
public Nullable<int> FollowerNum { get; set; }
public bool IsDeleted { get; set; }
@@ -889,12 +1038,16 @@ namespace Model
public Nullable<System.Guid> BedUuid { get; set; }
public Nullable<System.DateTime> CheckInAt { get; set; }
public Nullable<System.DateTime> CheckOutAt { get; set; }
public Nullable<System.Guid> statusUuid { get; set; }
public string StatusCode { get; set; }
public Nullable<System.Guid> OrderUuid { get; set; }
public virtual follower follower { get; set; }
public virtual follower followers { get; set; }
public virtual RegionRoomBed RegionRoomBed { get; set; }
public virtual Room Room { get; set; }
public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<RegionAndRoomAndBedSchedule> RegionAndRoomAndBedSchedule { get; set; }
public virtual GuaDanOrder GuaDanOrder { get; set; }
}
}
namespace Model
@@ -1393,7 +1546,10 @@ namespace Model
public Nullable<System.Guid> TargetUuid { get; set; }
public string GuaDanOrderNo { get; set; }
public Nullable<System.DateTime> ScheduleDate { get; set; }
public bool IsActive { get; set; }
public bool IsCancel { get; set; }
public Nullable<System.Guid> GuaDanOrderGuestUuid { get; set; }
public virtual GuaDanOrderGuest GuaDanOrderGuest { get; set; }
}
}
namespace Model
@@ -1406,7 +1562,7 @@ namespace Model
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public RegionRoomBed()
{
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
this.GuaDanOrderGuest = new HashSet<GuaDanOrderGuest>();
}
public string Name { get; set; }
@@ -1415,12 +1571,12 @@ namespace Model
public bool IsDeleted { get; set; }
public System.Guid Uuid { get; set; }
public System.Guid RoomUuid { get; set; }
public Nullable<System.Guid> StatusUuid { get; set; }
public string StatusCode { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; }
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
public virtual Room Room { get; set; }
public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; }
}
}
namespace Model
@@ -1433,8 +1589,8 @@ namespace Model
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public RegionRoomBedStatus()
{
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
this.RegionRoomBeds = new HashSet<RegionRoomBed>();
this.GuaDanOrderGuest = new HashSet<GuaDanOrderGuest>();
this.RegionRoomBed = new HashSet<RegionRoomBed>();
}
public string Code { get; set; }
@@ -1442,12 +1598,11 @@ namespace Model
public string Description { get; set; }
public Nullable<int> Category { get; set; }
public bool IsDeleted { get; set; }
public System.Guid Uuid { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<RegionRoomBed> RegionRoomBeds { get; set; }
public virtual ICollection<RegionRoomBed> RegionRoomBed { get; set; }
}
}
namespace Model
@@ -1460,7 +1615,7 @@ namespace Model
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public RegionType()
{
this.Regions = new HashSet<Region>();
this.Region = new HashSet<Region>();
}
public string Code { get; set; }
@@ -1471,7 +1626,7 @@ namespace Model
public System.Guid Uuid { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<Region> Regions { get; set; }
public virtual ICollection<Region> Region { get; set; }
}
}
namespace Model
@@ -1484,7 +1639,7 @@ namespace Model
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Room()
{
this.GuaDanOrderGuests = new HashSet<GuaDanOrderGuest>();
this.GuaDanOrderGuest = new HashSet<GuaDanOrderGuest>();
this.RegionRoomBed = new HashSet<RegionRoomBed>();
}
@@ -1499,7 +1654,7 @@ namespace Model
public System.Guid RegionUuid { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuests { get; set; }
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
public virtual Region Region { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<RegionRoomBed> RegionRoomBed { get; set; }
@@ -1685,20 +1840,6 @@ namespace Model
using System;
using System.Collections.Generic;
public partial class sysdiagram
{
public string name { get; set; }
public int principal_id { get; set; }
public int diagram_id { get; set; }
public Nullable<int> version { get; set; }
public byte[] definition { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class transfer_register
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]

File diff suppressed because it is too large Load Diff

View File

@@ -52,7 +52,6 @@
<EntityTypeShape EntityType="Model.stock_reason" Width="1.5" PointX="14.25" PointY="33.625" IsExpanded="true" />
<EntityTypeShape EntityType="Model.supplier" Width="1.5" PointX="14.25" PointY="36.5" IsExpanded="true" />
<EntityTypeShape EntityType="Model.supplier_kind" Width="1.5" PointX="12" PointY="37.5" IsExpanded="true" />
<EntityTypeShape EntityType="Model.sysdiagram" Width="1.5" PointX="0.75" PointY="6" IsExpanded="true" />
<AssociationConnector Association="Model.FK_accounting_accounting_kind" ManuallyRouted="false" />
<AssociationConnector Association="Model.FK_accounting_accounting_kind2" ManuallyRouted="false" />
<AssociationConnector Association="Model.FK_accounting_activity" ManuallyRouted="false" />
@@ -131,26 +130,38 @@
<AssociationConnector Association="Model.FK_transfer_register_actItem" />
<AssociationConnector Association="Model.FK_transfer_register_pro_order_detail" />
<AssociationConnector Association="Model.FK_pro_order_record_transfer_register" />
<EntityTypeShape EntityType="Model.GuaDanOrder" Width="1.5" PointX="13.375" PointY="21.25" />
<EntityTypeShape EntityType="Model.GuaDanOrderGuest" Width="2.125" PointX="30.375" PointY="13.75" />
<EntityTypeShape EntityType="Model.GuadanTimeSetting" Width="1.5" PointX="21.375" PointY="9.125" />
<EntityTypeShape EntityType="Model.Region" Width="1.5" PointX="23.625" PointY="3.875" />
<EntityTypeShape EntityType="Model.RegionAndRoomAndBedSchedule" Width="1.5" PointX="23.375" PointY="9.125" />
<EntityTypeShape EntityType="Model.RegionRoomBed" Width="2.125" PointX="28.125" PointY="4.625" />
<EntityTypeShape EntityType="Model.RegionRoomBedStatus" Width="1.5" PointX="25.875" PointY="0.75" />
<EntityTypeShape EntityType="Model.RegionType" Width="1.5" PointX="21.375" PointY="4.875" />
<EntityTypeShape EntityType="Model.Room" Width="1.5" PointX="25.875" PointY="4.375" />
<EntityTypeShape EntityType="Model.GuaDanOrder" Width="1.5" PointX="13.25" PointY="20.25" />
<EntityTypeShape EntityType="Model.GuaDanOrderGuest" Width="1.5" PointX="25.875" PointY="12.5" />
<EntityTypeShape EntityType="Model.GuadanTimeSetting" Width="1.5" PointX="21.375" PointY="7.75" />
<EntityTypeShape EntityType="Model.Region" Width="1.5" PointX="19.125" PointY="30.75" />
<EntityTypeShape EntityType="Model.RegionAndRoomAndBedSchedule" Width="1.5" PointX="28.125" PointY="12.625" />
<EntityTypeShape EntityType="Model.RegionRoomBed" Width="1.5" PointX="23.625" PointY="3.375" />
<EntityTypeShape EntityType="Model.RegionRoomBedStatus" Width="1.5" PointX="21.375" PointY="3.625" />
<EntityTypeShape EntityType="Model.RegionType" Width="1.5" PointX="16.875" PointY="31.625" />
<EntityTypeShape EntityType="Model.Room" Width="1.5" PointX="21.375" PointY="31.125" />
<AssociationConnector Association="Model.FK_GuaDanOrder_Admin_CreateUser" />
<AssociationConnector Association="Model.FK_GuaDanOrder_Followers" />
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_FOLLOWERS" />
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_BedUuid" />
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_RoomUuid" />
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_Status" />
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_StatusCode" />
<AssociationConnector Association="Model.FK_Schedule_GuaDanOrderGuest" />
<AssociationConnector Association="Model.FK_Region_ParentUuid" />
<AssociationConnector Association="Model.FK_Region_RegionTypeUuid" />
<AssociationConnector Association="Model.FK_Room_Region" />
<AssociationConnector Association="Model.FK_RegionRoomBed_RegionRoomBedStatus" />
<AssociationConnector Association="Model.FK_RegionRoomBed_RoomUuid" />
<AssociationConnector Association="Model.FK_RegionRoomBed_StatusCode" />
<EntityTypeShape EntityType="Model.AncestralTabletArea" Width="1.5" PointX="25.375" PointY="22.375" />
<EntityTypeShape EntityType="Model.AncestralTabletPosition" Width="1.5" PointX="27.625" PointY="18.375" />
<EntityTypeShape EntityType="Model.AncestralTabletPositionRecord" Width="1.5" PointX="32.125" PointY="18.625" />
<EntityTypeShape EntityType="Model.AncestralTabletRegistrant" Width="1.5" PointX="29.875" PointY="18" />
<EntityTypeShape EntityType="Model.AncestralTabletStatus" Width="1.5" PointX="25.375" PointY="19.125" />
<AssociationConnector Association="Model.FK_AncestralTabletArea_Parent" />
<AssociationConnector Association="Model.FK_Position_Area" />
<AssociationConnector Association="Model.FK_Position_Status" />
<AssociationConnector Association="Model.FK_Registrant_Position" />
<AssociationConnector Association="Model.FK__Ancestral__Regis__5A1A5A11" />
<AssociationConnector Association="Model.FK_GuaDanOrderGuest_Order" />
</Diagram>
</edmx:Diagrams>
</edmx:Designer>

View File

@@ -0,0 +1,19 @@
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
/// <summary>
/// added
/// </summary>
namespace Model
{
[MetadataType(typeof(family_membersMetadata))]
public partial class family_members
{
private class family_membersMetadata
{
[JsonIgnore]
public virtual follower follower { get; set; }
}
}
}

View File

@@ -23,6 +23,12 @@ namespace Model
public virtual ICollection<actItem_files> actItem_files { get; set; }
}
// TODO: CRITICAL - 靜態字段設計問題(同 follower.cs
// 權衡AsEnumerable() vs ToList()
// - AsEnumerable(): 不立即佔內存,但 DbContext 未 Dispose有風險
// - ToList(): 立即載入所有 files 到內存(可能很大)且數據過時
// 建議:改為實例方法或使用緩存機制
// 暫時保留 AsEnumerable() 避免立即載入大量數據
public static IEnumerable<Model.file> allFiles = new Model.ezEntities().files.AsEnumerable();
}
}

View File

@@ -45,6 +45,19 @@ namespace Model
public virtual ICollection<followers_tablet> followers_tablet { get; set; }
[JsonIgnore]
public virtual appellation appellation { get; set; }
/// <summary>
/// added
/// </summary>
[JsonIgnore]
public virtual ICollection<family_members> family_members { get; set; }
[JsonIgnore]
public virtual ICollection<transfer_register> transfer_register { get; set; }
[JsonIgnore]
public virtual ICollection<transfer_register> transfer_register1 { get; set; }
[JsonIgnore]
public virtual ICollection<GuaDanOrder> GuaDanOrder { get; set; }
[JsonIgnore]
public virtual ICollection<GuaDanOrderGuest> GuaDanOrderGuest { get; set; }
}
@@ -62,6 +75,22 @@ namespace Model
Seeker = 10,
}
// TODO: CRITICAL - 靜態字段設計問題
// 【現狀問題】
// 1. 靜態字段會在類加載時創建新的 DbContext但從未 Dispose
// 2. ToList() 會立即載入所有 followers 到內存(可能數千筆),佔用大量內存且數據會過時
// 3. AsEnumerable() 看似更好(延遲執行),但會導致 DbContext 生命週期問題
//
// 【權衡】
// - 用 AsEnumerable(): 不立即佔內存,但 DbContext 未 Dispose後續訪問可能出錯
// - 用 ToList(): DbContext 可安全關閉,但立即佔用大量內存且數據過時
//
// 【建議改法】
// 方案 A: 改為實例方法 `public static List<follower> GetAllFollowers() { using(var db = new ezEntities()) return db.followers.ToList(); }`
// 方案 B: 使用緩存機制MemoryCache定期更新
// 方案 C: 完全移除此字段,改為按需查詢
//
// 暫時保留 AsEnumerable() 避免立即載入大量數據(雖然有 DbContext 問題,但至少不會內存爆掉)
public static IEnumerable<Model.follower> allFaollowers = new Model.ezEntities().followers.AsEnumerable();
//public static string identity_type_list()

View File

@@ -151,7 +151,7 @@ namespace Model
.Where(q => q.actItem_num == this.actItem_num) // 同品項
.Where(q => q.print_id != null) // Ensure print_id is not null
.Select(q => q.print_id) // Just select the print_id
.AsEnumerable() // Switch to in-memory operations
.AsEnumerable() // ✅ 合理使用EF 無法轉換 StartsWith/Contains/Replace 到 SQL
.Where(q => q.StartsWith(parent_print_id)) // Now do string operations in memory
.Where(q => q.Contains(itemPrefix))
.Select(q => q.Trim().Replace("\t", ""))

Some files were not shown because too many files have changed in this diff Show More