Files
kintone-attendance-system/src/学期反省・評価/main.js
2025-02-17 21:18:24 +08:00

26 lines
899 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function () {
"use strict";
const statusFieldMap = {
'主幹確認中1学期': '指導1',
'園長確認中1学期': '主幹1',
'完了1学期': '園長1',
'担任作成中2学期': '園長1',
'主幹確認中2学期': '指導2',
'園長確認中2学期': '主幹2',
'完了2学期': '園長2',
'担任作成中3学期': '園長2',
'主幹確認中3学期': '指導3',
'園長確認中3学期': '主幹3',
'完了3学期': '園長3',
}
kintone.events.on("app.record.detail.process.proceed", (event) => {
const field = statusFieldMap[event.nextStatus.value];
if (field) {
event.record[field].value = kintone.getLoginUser().name;
}
return event;
});
})();