オーダーメイド栄養価計算シート生成サービス Nucalgen について
2022/03/08 3:45
この CGI のバックで動かしている Excel ファイル生成プログラムは、 Java で書きました。
ソースコードは GitWeb で公開しています。
ライセンス
Copyright 2020-2022 FUKUDA Satomi (https://satomichan.jp/)Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
実行方法の例
java -jar nucalgen.jar -std-food-comp-table 20201225-mxt_kagsei-mext_01110_012.xlsx [-use-processed-table] -columns columns.xml -output output.xlsx -lines 20 -bright-colored-vegetables-list bright-colored-vegetables.xml [-sheets 朝食 昼食 夕食 集計] [-addition addition.xml] [-set-protect]
-std-food-comp-table <filename> | 必須 | 日本食品標準成分表 Excel ファイル |
-use-processed-table | 任意 | 日本食品標準成分表 Excel ファイルの加工をしない |
-columns <filename> | 必須 | 列定義ファイル |
-output <filename> | 必須 | 出力ファイル |
-lines <n> | 必須 | 行数 |
-bright-colored-vegetables-list <filename> | 必須 | 緑黄色野菜定義ファイル |
-sheets <sheet_name_1> <sheet_name_2> ... <sheet_name_n> <sheet_name_sum> | 任意(複数可) | 複数シート(食事区分+集計)を生成する |
-addition <filename> | 任意(複数可) | 付加行構成ファイル |
-set-protect | 任意 | 入力可能セル(「食品番号」「摂取量」)以外のセルをロックする |