PVC追加コード追加

This commit is contained in:
2025-04-04 11:04:46 +09:00
parent cce2673ada
commit 80cbf5227e
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
(function () {
"use strict";
var events = [
"app.record.create.show",
"app.record.edit.show",
"app.record.create.change.担当",
"app.record.edit.change.担当"
];
kintone.events.on(events, function(event) {
var record = event.record;
record.担任.value = record.担当.value.map(function(user) {return user.name}).join(",");
return event;
});
})();

View File

@@ -0,0 +1,17 @@
(function () {
"use strict";
var events = [
"app.record.create.show",
"app.record.edit.show",
"app.record.create.change.担任",
"app.record.edit.change.担任"
];
kintone.events.on(events, function(event) {
var record = event.record;
record.担任_帳票用.value = record.担任.value.map(function(user) {return user.name}).join(",");
return event;
});
})();

View File

@@ -0,0 +1,30 @@
(function () {
"use strict";
kintone.events.on(["app.record.create.show","app.record.edit.show"], function(event) {
var record = event.record;
record.担任1.value = record.担当1.value.map(function(user) {return user.name}).join(",");
record.担任2.value = record.担当2.value.map(function(user) {return user.name}).join(",");
record.担任3.value = record.担当3.value.map(function(user) {return user.name}).join(",");
return event;
});
kintone.events.on(["app.record.create.change.担当1","app.record.edit.change.担当1"], function(event) {
var record = event.record;
record.担任1.value = record.担当1.value.map(function(user) {return user.name}).join(",");
return event;
});
kintone.events.on(["app.record.create.change.担当2","app.record.edit.change.担当2"], function(event) {
var record = event.record;
record.担任2.value = record.担当2.value.map(function(user) {return user.name}).join(",");
return event;
});
kintone.events.on(["app.record.create.change.担当3","app.record.edit.change.担当3"], function(event) {
var record = event.record;
record.担任3.value = record.担当3.value.map(function(user) {return user.name}).join(",");
return event;
});
})();