GitHub(nextgroup2706/ken_nogi)は今後使わず自社Gitea運用に切替え。 NodeSrvは旧リポジトリの履歴を破棄しファイルのみ統合(Dokploy用サービスアカウントは 別途mygit-admin/NodeSrv.gitに履歴あり)。notepmエクスポート(12GB)とPleasanter インストーラzip(208MB)はサイズが大きいため.gitignoreで除外。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
別記資料 スクリプト(Scripts)全文 (6/28)
// ...(前ファイルからの続き)
$p.judgeClassS = function () {
let classYVal = $('#Results_ClassY').val();
let classZVal = $('#Results_ClassZ').val();
let judged = (!classYVal || classZVal === '9999AAABB') ? '0' : '1';
$p.set($('#Results_ClassS'), judged);
}
//----------------------------------------------------------------------
//Class022(エリア、SiteId:210699)→ ClassM(エリア記号)転記
//Class022自身は重複チェックキーのため、この項目自体はロック対象・必須のまま
$p.applyAreaMasterLookup = function (wasEmpty) {
let newVal = $('#Results_Class022').val();
if (newVal && areaMasterData[newVal] !== undefined) {
$p.applyLookupValue('ClassM', areaMasterData[newVal], wasEmpty);
}
}
$p.on('change', 'Class022', function () {
let wasEmpty = !previousLookupValues.Class022;
$p.applyAreaMasterLookup(wasEmpty);
previousLookupValues.Class022 = $('#Results_Class022').val();
});
//----------------------------------------------------------------------
//Class023(契約ブランド、SiteId:109100)選択時の転記 → ClassN(ブランド記号)
$p.on('change', 'Class023', function () {
let newVal = $('#Results_Class023').val();
let wasEmpty = !previousLookupValues.Class023;
if (newVal && brandMasterData[newVal] !== undefined) {
$p.applyLookupValue('ClassN', brandMasterData[newVal], wasEmpty);
}
previousLookupValues.Class023 = newVal;
});
//----------------------------------------------------------------------
//Class031(契約営業所、SiteId:96243)選択時の転記 → Class038(所属長)
$p.on('change', 'Class031', function () {
let newVal = $('#Results_Class031').val();
let wasEmpty = !previousLookupValues.Class031;
if (newVal && officeMasterData[newVal] !== undefined) {
$p.applyLookupValue('Class038', officeMasterData[newVal], wasEmpty);
}
previousLookupValues.Class031 = newVal;
});