{
  "initiative": {
    "key": "hinanjo-saigai-kanri",
    "name": "避難所・災害対応拠点管理"
  },
  "app": {
    "key": "buppin-master",
    "name": "物品マスタ",
    "category": "防災安全部",
    "tags": [
      "マスタ管理",
      "貸出管理"
    ],
    "description": "避難所に備蓄する食料・生活用品等の物品を施設単位で管理し、貸出履歴をサブテーブルで記録する。現在の貸出状況はメインフィールドで把握できる。",
    "status": "完了",
    "appId": 615
  },
  "source": "kintone (live)",
  "exportedAt": "2026-08-18T05:49:55.490Z",
  "fields": [
    {
      "type": "CALC",
      "code": "kashidashichuu_suuryou",
      "label": "貸出中数量",
      "noLabel": false,
      "required": false,
      "expression": "SUM(kashidashichuu_h)",
      "format": "NUMBER",
      "displayScale": "",
      "hideExpression": false,
      "unit": "",
      "unitPosition": "BEFORE"
    },
    {
      "type": "CALC",
      "code": "genzai_joukyou",
      "label": "現在の貸出状況",
      "noLabel": false,
      "required": false,
      "expression": "IF(zansuu <= 0, \"貸出中(在庫なし)\", IF(zansuu = souryou, \"在庫あり\", \"一部貸出中\"))",
      "format": "NUMBER",
      "displayScale": "",
      "hideExpression": false,
      "unit": "",
      "unitPosition": "BEFORE"
    },
    {
      "type": "MULTI_LINE_TEXT",
      "code": "biko",
      "label": "備考",
      "noLabel": false,
      "required": false,
      "defaultValue": ""
    },
    {
      "type": "DROP_DOWN",
      "code": "buppin_shubetsu",
      "label": "カテゴリ",
      "noLabel": false,
      "required": false,
      "options": {
        "寝具": {
          "label": "寝具",
          "index": "3"
        },
        "生活用品": {
          "label": "生活用品",
          "index": "1"
        },
        "食料": {
          "label": "食料",
          "index": "0"
        },
        "医療": {
          "label": "医療",
          "index": "4"
        },
        "その他": {
          "label": "その他",
          "index": "5"
        },
        "衛生用品": {
          "label": "衛生用品",
          "index": "2"
        }
      },
      "defaultValue": ""
    },
    {
      "type": "GROUP",
      "code": "group_1",
      "label": "在庫状況",
      "noLabel": false,
      "openGroup": true
    },
    {
      "type": "SINGLE_LINE_TEXT",
      "code": "buppin_id",
      "label": "物品ID",
      "noLabel": false,
      "required": true,
      "minLength": "",
      "maxLength": "64",
      "expression": "",
      "hideExpression": false,
      "unique": true,
      "defaultValue": ""
    },
    {
      "type": "GROUP",
      "code": "group_0",
      "label": "物品情報",
      "noLabel": false,
      "openGroup": true
    },
    {
      "type": "GROUP",
      "code": "group_2",
      "label": "その他",
      "noLabel": false,
      "openGroup": true
    },
    {
      "type": "CALC",
      "code": "zansuu",
      "label": "残数",
      "noLabel": false,
      "required": false,
      "expression": "souryou - kashidashichuu_suuryou",
      "format": "NUMBER",
      "displayScale": "",
      "hideExpression": false,
      "unit": "",
      "unitPosition": "BEFORE"
    },
    {
      "type": "SINGLE_LINE_TEXT",
      "code": "taisho_shisetsu",
      "label": "対象施設",
      "noLabel": false,
      "required": true,
      "lookup": {
        "relatedApp": {
          "app": "340",
          "code": ""
        },
        "relatedKeyField": "shisetsu_bangou",
        "fieldMappings": [],
        "lookupPickerFields": [
          "shisetsu_bangou",
          "shisetsu_mei"
        ],
        "filterCond": "",
        "sort": "Record_number desc"
      }
    },
    {
      "type": "SINGLE_LINE_TEXT",
      "code": "hinmei",
      "label": "品名",
      "noLabel": false,
      "required": true,
      "minLength": "",
      "maxLength": "",
      "expression": "",
      "hideExpression": false,
      "unique": false,
      "defaultValue": ""
    },
    {
      "type": "NUMBER",
      "code": "souryou",
      "label": "総数",
      "noLabel": false,
      "required": true,
      "minValue": "",
      "maxValue": "",
      "digit": false,
      "unique": false,
      "defaultValue": "",
      "displayScale": "",
      "unit": "",
      "unitPosition": "BEFORE"
    },
    {
      "type": "SINGLE_LINE_TEXT",
      "code": "tan_i",
      "label": "単位",
      "noLabel": false,
      "required": false,
      "minLength": "",
      "maxLength": "",
      "expression": "",
      "hideExpression": false,
      "unique": false,
      "defaultValue": ""
    },
    {
      "type": "SUBTABLE",
      "code": "kashidashi_rireki",
      "noLabel": false,
      "label": "貸出履歴",
      "fields": {
        "henkyaku_yotei_bi_h": {
          "type": "DATE",
          "code": "henkyaku_yotei_bi_h",
          "label": "返却予定日",
          "noLabel": false,
          "required": false,
          "unique": false,
          "defaultValue": "",
          "defaultNowValue": false
        },
        "status_h": {
          "type": "DROP_DOWN",
          "code": "status_h",
          "label": "ステータス",
          "noLabel": false,
          "required": true,
          "options": {
            "貸与中": {
              "label": "貸与中",
              "index": "0"
            },
            "返却済": {
              "label": "返却済",
              "index": "1"
            }
          },
          "defaultValue": ""
        },
        "kashidashichuu_h": {
          "type": "CALC",
          "code": "kashidashichuu_h",
          "label": "貸出中数量(集計用)",
          "noLabel": false,
          "required": false,
          "expression": "IF(status_h = \"貸与中\", suuryou_h, 0)",
          "format": "NUMBER",
          "displayScale": "",
          "hideExpression": false,
          "unit": "",
          "unitPosition": "BEFORE"
        },
        "henkyaku_nichiji_h": {
          "type": "DATETIME",
          "code": "henkyaku_nichiji_h",
          "label": "返却日時",
          "noLabel": false,
          "required": false,
          "unique": false,
          "defaultValue": "",
          "defaultNowValue": false
        },
        "kariyousha_h": {
          "type": "SINGLE_LINE_TEXT",
          "code": "kariyousha_h",
          "label": "借用世帯(受付ID)",
          "noLabel": false,
          "required": true,
          "minLength": "",
          "maxLength": "",
          "expression": "",
          "hideExpression": false,
          "unique": false,
          "defaultValue": ""
        },
        "kashidashi_nichiji_h": {
          "type": "DATETIME",
          "code": "kashidashi_nichiji_h",
          "label": "貸与日時",
          "noLabel": false,
          "required": true,
          "unique": false,
          "defaultValue": "",
          "defaultNowValue": false
        },
        "suuryou_h": {
          "type": "NUMBER",
          "code": "suuryou_h",
          "label": "数量",
          "noLabel": false,
          "required": true,
          "minValue": "",
          "maxValue": "",
          "digit": false,
          "unique": false,
          "defaultValue": "1",
          "displayScale": "",
          "unit": "",
          "unitPosition": "BEFORE"
        }
      }
    }
  ],
  "layout": [
    {
      "type": "GROUP",
      "code": "group_0",
      "layout": [
        {
          "type": "ROW",
          "fields": [
            {
              "type": "SINGLE_LINE_TEXT",
              "code": "buppin_id",
              "size": {
                "width": "193"
              }
            },
            {
              "type": "SINGLE_LINE_TEXT",
              "code": "taisho_shisetsu",
              "size": {
                "width": "193"
              }
            }
          ]
        },
        {
          "type": "ROW",
          "fields": [
            {
              "type": "SINGLE_LINE_TEXT",
              "code": "hinmei",
              "size": {
                "width": "193"
              }
            },
            {
              "type": "DROP_DOWN",
              "code": "buppin_shubetsu",
              "size": {
                "width": "196"
              }
            }
          ]
        },
        {
          "type": "ROW",
          "fields": [
            {
              "type": "SINGLE_LINE_TEXT",
              "code": "tan_i",
              "size": {
                "width": "193"
              }
            }
          ]
        }
      ]
    },
    {
      "type": "GROUP",
      "code": "group_1",
      "layout": [
        {
          "type": "ROW",
          "fields": [
            {
              "type": "NUMBER",
              "code": "souryou",
              "size": {
                "width": "193"
              }
            },
            {
              "type": "CALC",
              "code": "kashidashichuu_suuryou",
              "size": {
                "width": "193"
              }
            }
          ]
        },
        {
          "type": "ROW",
          "fields": [
            {
              "type": "CALC",
              "code": "zansuu",
              "size": {
                "width": "193"
              }
            },
            {
              "type": "CALC",
              "code": "genzai_joukyou",
              "size": {
                "width": "193"
              }
            }
          ]
        }
      ]
    },
    {
      "type": "GROUP",
      "code": "group_2",
      "layout": [
        {
          "type": "ROW",
          "fields": [
            {
              "type": "MULTI_LINE_TEXT",
              "code": "biko",
              "size": {
                "width": "315",
                "innerHeight": "125"
              }
            }
          ]
        }
      ]
    },
    {
      "type": "SUBTABLE",
      "code": "kashidashi_rireki",
      "fields": [
        {
          "type": "DATETIME",
          "code": "kashidashi_nichiji_h",
          "size": {
            "width": "185"
          }
        },
        {
          "type": "SINGLE_LINE_TEXT",
          "code": "kariyousha_h",
          "size": {
            "width": "193"
          }
        },
        {
          "type": "NUMBER",
          "code": "suuryou_h",
          "size": {
            "width": "193"
          }
        },
        {
          "type": "DATE",
          "code": "henkyaku_yotei_bi_h",
          "size": {
            "width": "117"
          }
        },
        {
          "type": "DATETIME",
          "code": "henkyaku_nichiji_h",
          "size": {
            "width": "185"
          }
        },
        {
          "type": "DROP_DOWN",
          "code": "status_h",
          "size": {
            "width": "196"
          }
        },
        {
          "type": "CALC",
          "code": "kashidashichuu_h",
          "size": {
            "width": "193"
          }
        }
      ]
    }
  ]
}