# 创建自定义检查单

{% hint style="info" %}
检查单是一个 CSV 文件，本文将说明 CSV 格式的要求。你可以使用任意 CSV 编辑器来创建，例如 Microsoft Excel 或 WPS。如果你觉得直接编辑 CSV 内容比较容易出错，也可以使用在线编辑器 [https://web.simflypad.app](https://web.simflypad.app/) 进行快速创建。
{% endhint %}

## 获取模板文件 <a href="#get-template-file" id="get-template-file"></a>

在创建检查单之前，我们 **强烈建议** 你先下载一个检查单作为模板，再在此基础上进行修改。

#### 从 iOS 版 SimFly Pad 导出 <a href="#from-simfly-pad-ios-version" id="from-simfly-pad-ios-version"></a>

进入 “Checklist Selection” 页面，点击 “Export” 按钮即可导出所有内置检查单。

#### 从网页编辑器下载 <a href="#download-from-web-editor" id="download-from-web-editor"></a>

打开 <https://web.simflypad.app> ，设置 name、author 和 unique ID 后，点击 Save 按钮将内容保存为 csv 文件。

<figure><img src="https://content.gitbook.com/content/fP3cCWKYuK5Zvo63eKgb/blobs/CneIAgQgkp8PfuUaHJow/checklist1.png" alt=""><figcaption></figcaption></figure>

## **关于 CSV 模板文件的格式** <a href="#about-the-format-of-the-csv-template-file" id="about-the-format-of-the-csv-template-file"></a>

{% hint style="warning" %}
**CSV 文件本质上就是一张表格。你可以使用任意办公软件打开并修改，例如 Office 365、Numbers、WPS。创建检查单文件时，请不要修改表头（header row）中的内容。**
{% endhint %}

### 列标题 <a href="#header" id="header"></a>

* **unique\_id**：该文件的唯一 ID。如果你已经存在相同 unique\_id 的检查单，将会覆盖旧文件。“simflypad\_” 前缀仅保留给内置检查单使用；创建自定义检查单时请更换为其他前缀。
* **template\_version**：模板文件版本号。目前应为 "0.1"。
* **Name**：检查单名称（例如 A321 Neo）。
* **from**：你收集该检查单内容的来源。
* **procedure & section & item\_content & item\_check & item\_note**：组合使用，用于描述检查单中的每一行。
* **item\_ident**：设置为 “Y” 表示该条目需要缩进显示。

### **内容** <a href="#item-column" id="item-column"></a>

#### **procedure:** <a href="#item-column" id="item-column"></a>

定义检查单的各个阶段（例如：Before TO、TAXI……）。

<figure><img src="https://content.gitbook.com/content/fP3cCWKYuK5Zvo63eKgb/blobs/r8Qt7cQvxHPvxq0TGbGy/checklist2.png" alt=""><figcaption></figcaption></figure>

#### **section:**

用于在同一阶段内分组/分隔内容。

<figure><img src="https://content.gitbook.com/content/fP3cCWKYuK5Zvo63eKgb/blobs/7cBwPlkz8ViXhg3pfjDf/checklist3.png" alt=""><figcaption></figcaption></figure>

#### **item\_content & item\_check**

<figure><img src="https://content.gitbook.com/content/fP3cCWKYuK5Zvo63eKgb/blobs/cNUNScnc5DGCnnSerRLJ/checklist4.png" alt=""><figcaption></figcaption></figure>

#### **item\_note**

可以与 item\_content 和 item\_check 同一行填写。

<figure><img src="https://content.gitbook.com/content/fP3cCWKYuK5Zvo63eKgb/blobs/STARbALyXFwqW7CqYDS0/checklist5.png" alt=""><figcaption></figcaption></figure>

也可以单独占一行。

<figure><img src="https://content.gitbook.com/content/fP3cCWKYuK5Zvo63eKgb/blobs/CfqArKLhn4IKrNIOCcHG/checklist6.png" alt=""><figcaption></figcaption></figure>

### 导入 <a href="#import" id="import"></a>

{% hint style="danger" %}
请确保 CSV 文件使用 <mark style="color:red;">**UTF-8**</mark> 编码，否则可能无法正确导入。
{% endhint %}

将 CSV 检查单文件传输到移动设备后，进入 SimFly Pad 的 “Checklist Selection” 页面，点击 “Import” 按钮即可导入你的自定义检查单文件。
