本文記錄使用 ASP.NET (C#) + SQL Server 2000 開發企業內部員工績效評測系統,採用傳統三層架構,重點闡述資料庫設計、跨部門評測規則建模與關鍵頁面實作。
| 表名 | 用途 | 關鍵欄位 |
|---|---|---|
| Employee | 員工/主管基本資料 | employID (PK)、departID (FK)、leaderID、realName、userName、userPass、email、telephone |
| Department | 部門資訊 | departID (PK)、LeaderID、dName、dDescription |
| bigRules | 評測大分類 | bigID (PK)、content(如「專業技能」)、totalScore |
| smallRules | 具體評測細則 | smallID (PK)、bigID (FK)、departID (FK)、simpleDiscription、fullDescription、score |
| Score | 月度評測分數 | testPersonID、testedPersonID、smallID (FK)、score、month(無 PK,複合鍵邏輯) |
核心設計:smallRules 同時關聯 bigRules(分類)與 Department(所屬部門)。
smallRules 關聯同一 bigID,但 departID 不同Department 加入記錄,對應 smallRules 即可Score 表以「評測人、被測人、細則、月份」為維度記錄分數,支援:
所有 ID、分數、月份使用 int,描述欄位用 varchar。