backup: 完成 HR_position_ 表格前綴重命名與欄位對照表整理

變更內容:
- 所有資料表加上 HR_position_ 前綴
- 整理完整欄位顯示名稱與 ID 對照表
- 模組化 JS 檔案 (admin.js, ai.js, csv.js 等)
- 專案結構優化 (docs/, scripts/, tests/ 等)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-09 12:05:20 +08:00
parent a068ef9704
commit a6af297623
82 changed files with 8685 additions and 4933 deletions

View File

@@ -89,26 +89,26 @@ function setupFormListeners() {
field.addEventListener('input', updatePreview);
});
// 崗位類別變更
const positionCategory = document.getElementById('positionCategory');
// 崗位類別變更 (pos_category)
const positionCategory = document.getElementById('pos_category');
if (positionCategory) {
positionCategory.addEventListener('change', updateCategoryName);
}
// 崗位性質變更
const positionNature = document.getElementById('positionNature');
// 崗位性質變更 (pos_type)
const positionNature = document.getElementById('pos_type');
if (positionNature) {
positionNature.addEventListener('change', updateNatureName);
}
// 職務類別變更
const jobCategoryCode = document.getElementById('jobCategoryCode');
// 職務類別變更 (job_category)
const jobCategoryCode = document.getElementById('job_category');
if (jobCategoryCode) {
jobCategoryCode.addEventListener('change', updateJobCategoryName);
}
// Toggle 開關變更
const hasAttendanceBonus = document.getElementById('hasAttendanceBonus');
// Toggle 開關變更 (job_hasAttBonus)
const hasAttendanceBonus = document.getElementById('job_hasAttBonus');
if (hasAttendanceBonus) {
hasAttendanceBonus.addEventListener('change', function() {
const label = document.getElementById('attendanceLabel');
@@ -119,7 +119,8 @@ function setupFormListeners() {
});
}
const hasHousingAllowance = document.getElementById('hasHousingAllowance');
// Toggle 開關變更 (job_hasHouseAllow)
const hasHousingAllowance = document.getElementById('job_hasHouseAllow');
if (hasHousingAllowance) {
hasHousingAllowance.addEventListener('change', function() {
const label = document.getElementById('housingLabel');