入退坑DX ユーザーマニュアル

👨‍💼 現場管理者向け:初期セットアップ・運用手順

管理者は、新しい現場が開設された際に setup.html を使用して以下の初期設定を行います。

手順 1: 現場情報の入力

① 現場名

「現場名」の入力欄に、新設する工事名称を正確に入力します(例:◯◯トンネル作業所、◯◯高架橋工事)。

② 元請会社名

「元請会社名」の入力欄に、施工を行う元請業者名を入力します。

③ 一次下請け会社名の登録

最初の入力欄に1社目の会社名を入力します。2社目以降がある場合は、+ 下請け会社を追加 ボタンをクリックすると入力欄が増えます。出入りするすべての一次下請け会社を入力してください。

※「元請職員」「立会者」「来客」の3つは、システム側で自動的に選択肢に追加されるため、ここで入力する必要はありません。
手順 2: マスタ登録とQRコードの発行

すべての入力が完了したら、登録する ボタンをクリックします。

ボタンクリック後に発生する処理:

  1. 「マスタを登録しました。」というアラートが表示されます。
  2. 画面下部に、作業員さんが、入力画面へアクセスするための専用QRコードが生成されます。
  3. 入力した現場名と元請会社名は、ブラウザ(LocalStorage)に自動保存され、次回起動時も保持されます。

掲示の準備:

生成されたQRコードを印刷して、作業員さんが安全に読み取れる「入退坑口」に掲示してください。

【重要】QRコードは「一度発行されると、一次下請け会社名の追加登録などを実行しても変更されない」ので、「QRコードを貼り変えなくても大丈夫です」

手順 3: 現場IDの管理・復元(重要)

現場ごとに一意の「現場ID」が発行され、画面上部に表示されます。

■ 現場IDの保存

端末の故障や、別のパソコン・タブレットで管理画面(setup.html)を操作・編集できるように、表示されている現場IDをメモ等に控えておいてください。

■ 他の端末での編集(復元)

新しい端末で setup.html を開いた際は、控えておいた現場IDを「【他の端末での編集用】」欄に入力し、復元 ボタンを押すことで、その現場の管理を引き継ぐことができます。

※ChromeやEdgeなどのブラウザで「別のアカウント(プロファイル)」を作成してアプリファイルを開くと、データ保存領域が独立するため、同じ端末でも別の現場IDでアプリを同時使用・管理することができます。

手順 4: 稼働中の運用(確認とデータ出力)

■ 現在入坑中の確認と手動退坑

現在入坑中を確認する ボタンをクリックすると、その時点で「入坑」を記録し、まだ「退坑」を記録していない作業員がリアルタイムで一覧表示されます。退坑の押し忘れがあった場合は、リスト右側の「退坑させる」ボタンから管理者が手動で退坑処理を行うことができます。

時間所属/下請け雇用会社氏名操作
13:15◯◯建設(株)(有)△△工業現場 太郎

■ 記録データのダウンロード

期間(開始日〜終了日)を指定し、記録をCSVでダウンロード ボタンをクリックすると、指定期間のログが取得され、Excel等で開けるCSVファイルとしてダウンロードされます。※期間を未指定でクリックした場合は、過去1ヶ月分の記録がダウンロードされます。

手順 5: 現場終了時・トラブル時のリセット処理

画面最下部にあるリセットボタンは、端末内のデータをリセットするための機能です。

新しい現場を作成する(現場IDリセット)

  • 目的: 現在の端末(ブラウザ)から現在の現場設定を切り離し、新しく別の現場を作り直すための準備をします。
  • 消去されるもの: 端末内のローカルストレージ(現在の現場IDや現場名の入力データ)のみ。
  • 結果: 現場IDが新しくなり、入力欄が空になります。※サーバー上のデータ(マスタやログ)は一切消去されません。そのため、以前の現場IDを控えておけば、いつでも「復元」機能を使って元の現場管理に戻ることができます。

👷 作業員向け:毎日の入退坑手順

手順 1: QRコードのスキャン

スマホ標準の「カメラアプリ」(iPhoneなら標準カメラ、Androidなら標準カメラまたはGoogleレンズ等)で読み取ります。

【重要】画面が開いた後、iPhoneの場合は右下のコンパスアイコン等をタップし、デフォルトのSafariブラウザで開き直すことを推奨します(ホーム画面への追加がスムーズに行えます)。
※LINE等のアプリ内ブラウザで読み取ると、セキュリティ制限によりカメラが起動せず顔認証が使えないため避けてください。

手順 2: 顔認証による打刻

本システムは顔認証での入退坑に採用しており、画面上部のカメラ映像を使用して打刻できます。

① 初回のみ:顔データの登録

画面下部にある「初回のみ:顔と属性を登録」エリアで、「氏名」「雇用会社名」「一次下請け会社」を入力し、カメラに顔を向けた状態で(画面に顔が表示されてなくても、カメらは顔を捉えています)「顔データをサーバーに登録する」ボタンを押します。

② 日々の打刻

登録完了後は、カメラに顔を向けて 顔認証で【入坑】する または 顔認証で【退坑】する ボタンを押すだけで、自動で本人確認と打刻が完了します。

⚠️ 注意:通信環境について
本システムはインターネット通信を使用します。電波の届かない場所(圏外)では打刻ボタンを押してもデータは送信・記録されません。必ず電波のある場所で「記録しました」のアラートが表示されるまで確認を行ってください。
手順 3: 現在の入坑者状況の確認

画面中央の 現在の入坑者を確認する ボタンをタップすると、閲覧専用ページが開きます。現在坑内に入っている作業員の一覧をリアルタイムで確認できるため、現場内の安全確認や人員把握に役立ちます。

📱 ホーム画面への追加(ショートカットとアイコン化)

⚠️ アイコン化すると「その時の現場限定」になります
このアプリはスマホでアイコン化(アプリとしてインストール)できますが、アイコン化すると「アイコン化した時の現場専用」になります。複数の現場に行く方は、以下のいずれかの方法でご対応ください。
方法①:「ショートカット」として追加する

スマホのホーム画面に「ショートカット」を設定すれば、他の現場名称のショートカットをいくつでも作ることができます。

方法②:現場が変わるたびにアイコンインストールを「作り直す」

スマホで「アイコン化」して使う場合は、他の現場に行くようになったら、必ず前の現場のアイコンを削除してください。
その後、新しい現場のQRコードを読み取って開いた時に、改めてアイコンインストールすれば、新しい現場のアイコンになります。

【iPhone (Safari) の場合】

  1. ブラウザ(Safari)の画面下部にある「共有ボタン(四角から上矢印)」をタップします。
  2. メニューから「ホーム画面に追加」を選択します。
  3. アイコンの名前を現場名に変更して「追加」をタップします。

※iPhoneの場合は「ホーム画面に追加」を選ぶと自動的にアイコン化されることがあります。別の現場へ行く時は「方法②(削除して作り直す)」の手順を行ってください。

【Android (Chrome) の場合】

  1. ブラウザ(Chrome)の画面右上にある「メニュー(点が3つ)」をタップします。
  2. 方法①の場合は「ホーム画面に追加」(=ショートカット)を選択します。
  3. 方法②の場合は「アプリをインストール」(=アイコン化)を選択します。
  4. 名前を現場名に変更して「追加」をタップします。

❓ 管理者向けトラブルシューティング (FAQ)

Q. 顔認証でエラー(未登録の顔です)と出る
A. 登録時と大幅に環境(明るさ、ヘルメットの影、マスク等)が異なる場合、または顔がカメラに近すぎる/遠すぎる場合に発生します。明るい場所で、顔全体が画面に収まるようにして再度試してください。改善しない場合は、顔データを再登録してください。
Q. 下請け会社名を誤って登録してしまった、または追加・変更したい
A. 修正済みの正しい内容を再度入力し、もう一度 登録する ボタンを押してください。既存の現場IDのままマスタデータが上書き更新されます。現場IDは変わりませんので、発行済みのQRコードはそのまま使えます。
Q. 現場名や元請会社名を変更したい、または下請け会社を追加登録したら、現場IDやQRコードは変わりますか?
A. 変わりません。現在の現場ID(QRコード)が維持されたまま、サーバー側の登録データのみが上書き更新されます。そのため、掲示済みのQRコードを貼り替える必要はありません。
Q. 復元ボタンを押すと「該当する現場データが見つかりません」とエラーが出ます
A. 入力した現場IDが間違っている(スペースが含まれているなど)か、あるいは入力した現場IDに対してまだ一度も 登録する ボタンが押されておらず、サーバー側にマスタが作成されていない可能性があります。IDに間違いがないか確認し、初回は必ず「登録する」を実行してください。
Q. 作業員が「退坑」を押し忘れて帰宅してしまい、現在入坑中リストに残り続けています
A. 現在入坑中を確認する ボタンでリストを表示し、該当作業員の行にある「退坑させる」ボタンを押すことで、管理者が手動で退坑記録をつけることができます。次回該当の作業員が「入坑」または「退坑」を打刻したタイミングでも最新の状態に自動更新されます。
Q. 現場IDを紛失し、メモ等にも控えていませんでした。元に戻せますか?
A. ブラウザのキャッシュ(LocalStorage)が残っていれば画面上部に表示されますが、端末故障やブラウザ履歴の削除等で完全に紛失した場合は、セキュリティの仕様上、古いIDを外部から特定して復元することはできません。その場合は、諦めて 新しい現場を作成する(現場IDリセット) を行い、新しい現場IDでQRコードを再発行し、掲示し直してください。
Q. CSVファイルが文字化けする
A. 本システムが出力するCSVには、Excelでの文字化けを防ぐためのBOM(Byte Order Mark)コードを自動で付与しています。それでも文字化けする場合は、Excelの「データ」タブから「テキストまたはCSVから」を選択し、文字コード「UTF-8」を指定して取り込んでください。
Q. 同じパソコンで複数の現場(別の現場ID)を同時に管理できますか?
A. はい、可能です。ChromeやEdgeなどのブラウザで「別のアカウント(プロファイル)」を作成してアプリファイルを開くことで、データ保存領域(LocalStorage)が完全に独立します。これにより、同じパソコンであっても別々の現場IDでアプリを同時に使用・管理できます。

自分自身のクラウドを使用したい方は、PayPay送金チャットで、ID「papa58」に500円寄付して、手段を送金チャットで質問してください。

Entry & Exit DX User Manual

👨‍💼 For Site Managers: Initial Setup & Operation Steps

Managers perform the following initial configuration using setup.html when a new site is established.

Step 1: Enter Site Information

1. Site Name (現場名)

Enter the exact name of the construction project in the "現場名" field.

2. Prime Contractor (元請会社名)

Enter the name of the prime contractor company in the "元請会社名" field.

3. Register First-tier Subcontractors (一次下請け会社名)

Enter the first subcontractor's name in the initial field. If there are more companies, click the + 下請け会社を追加 button to increase the input fields. Enter all first-tier subcontractors entering the site.

* "Prime Staff", "Inspector", and "Guest" are automatically added by the system, so there is no need to enter them here.
Step 2: Master Registration & QR Code Generation

Once all inputs are complete, click the 登録する button.

What happens after clicking:

  1. An alert saying "マスタを登録しました。" (Master registered.) will appear.
  2. A dedicated QR code for workers to access the entry screen will be generated at the bottom of the screen.
  3. The entered Site Name and Prime Contractor name are auto-saved in the browser (LocalStorage) and retained for the next launch.

Preparation for Posting:

Print the generated QR code and post it at the "Entry/Exit Gate" where workers can scan it safely.

[Important] Once the QR code is generated, it will not change even if you add or register more first-tier subcontractor names. There is no need to replace the posted QR code.

Step 3: Site ID Management & Recovery (Important)

A unique "Site ID" is issued for each site and displayed at the top of the screen.

■ Saving the Site ID

Please note down this Site ID in a memo or email. This is necessary in case of device failure or if you need to operate/edit the management screen (setup.html) on another PC or tablet.

■ Editing on Another Device (Recovery)

When opening setup.html on a new device, enter the noted Site ID in the recovery field and press the 復元 (Restore) button to take over the management of that site.

* If you open the app file using a different account (profile) in browsers like Chrome or Edge, the storage area becomes independent, allowing you to use and manage the app with a different Site ID on the same computer.

Step 4: Operations During Construction (Verification & Data Output)

■ Check Currently Active Workers & Manual Exit

Click the 現在入坑中を確認する button to display a real-time list of workers who have recorded "Entry" but not "Exit". If a worker forgets to record their exit, the manager can manually process their exit by clicking the "退坑させる" (Force Exit) button on the right side of the list.

■ Download Recorded Data

Specify the period (Start Date - End Date) and click the 記録をCSVでダウンロード button to fetch logs for the specified period. It downloads as a CSV file which can be opened directly in Excel. *If no dates are specified, the logs for the past month will be downloaded.

Step 5: Reset Processing for Site Closure or Troubleshooting

The reset button at the very bottom of the screen involves resetting data within your device. Ensure you understand its function before use.

新しい現場を作成する(現場IDリセット)

  • Purpose: Detach the current site settings from this device (browser) to prepare for creating a new site.
  • What is deleted: Only the local storage on the device (current Site ID and input data).
  • Result: A new Site ID is generated, and the input fields are emptied. *Data on the server (Master and Logs) is NOT deleted. As long as you have the previous Site ID, you can always return to managing the old site using the "Restore" function.

💡 For Workers: Daily Steps

Step 1: Scan QR Code

Scan using the smartphone's standard "Camera app" (e.g., standard Camera on iPhone, standard Camera or Google Lens on Android).

[Important] Once the screen opens, if you are using an iPhone, tap the compass icon at the bottom right to reopen the page in the default Safari browser (this makes adding it to the home screen smoother).
* Avoid using in-app browsers like LINE, as they restrict camera access and prevent facial recognition.

Step 2: Facial Recognition Entry (Recommended)

This system supports facial recognition, allowing you to record your entry and exit quickly using the camera footage at the top of the screen.

1. First Time: Register Face Data

Enter your details in the registration area at the bottom of the screen, face the camera, and press the "Register face data to server" button.

2. Daily Entry/Exit

Once registered, face the camera and press 顔認証で【入坑】する (Enter via Face) or 顔認証で【退坑】する (Exit via Face).

⚠️ Important: Internet Connection
This system requires an internet connection. If you are in an offline area, your entry/exit will NOT be recorded. Please ensure you have a connection and wait for the confirmation alert.
Step 3: Check Currently Active Workers

Tap the 現在の入坑者を確認する button in the middle of the screen to open the read-only page. You can check the real-time list of active workers inside the site, which helps in safety management and monitoring personnel.

📱 Adding to Home Screen (Shortcut vs Iconify)

⚠️ Note: "Iconifying" locks the app to a single site
You can "Iconify" (install as an app) on your smartphone, but doing so will lock the app strictly to the site where it was created. To avoid this, please use one of the following methods.
Method 1: Set a "Shortcut"

By adding a "Shortcut" to your home screen, you can create as many shortcuts for different sites as you need.

Method 2: Iconify and Recreate when changing sites

If you prefer to "Iconify", when you move to a different site, you must delete the previous site's icon first.
Then, scan the new site's QR code and iconify it again to create the new site's icon.

[iPhone (Safari)]

  1. Tap the "Share" button at the bottom of the screen.
  2. Select "Add to Home Screen".
  3. Change the name to a recognizable site name, then tap "Add".

*On iPhone, this may automatically Iconify the app. If you move to a new site, please use Method 2 (Delete and Recreate) to be safe.

[Android (Chrome)]

  1. Tap the "Menu" button (three dots) at the top right.
  2. For Method 1, select "Add to Home screen" (Shortcut).
  3. For Method 2, select "Install app" (Iconify).
  4. Change the name to a recognizable site name, then tap "Add".

❓ Troubleshooting for Managers (FAQ)

Q. Face recognition fails (Unregistered Face Error).
A. This happens if the environment (lighting, shadows, masks) differs significantly from when you registered, or if your face is too close/far. Try again in good lighting. If it persists, re-register your face data.
Q. I misspelled a subcontractor name, or want to add/change companies.
A. Enter the correct or updated information on the setup screen and click the 登録する button again. The master data will be overwritten and updated while maintaining the existing Site ID.
Q. If I modify the Site Name or Prime Contractor, or add new subcontractors, will the Site ID or QR code change?
A. No, they will not change. The current Site ID (QR code) is maintained, and only the registered data on the server side is overwritten. Therefore, there is no need to replace the posted QR code.
Q. When I click the restore button, I get an error saying "該当する現場データが見つかりません" (No matching site data found).
A. The entered Site ID might be incorrect (e.g., contains spaces), or the 登録する button has never been pressed for this Site ID, meaning no master data exists on the server. Please verify the ID and ensure registration is completed at least once initially.
Q. A worker forgot to press "Exit" before going home, and remains on the active list.
A. The manager can manually process the exit by displaying the list with the 現在入坑中を確認する button and clicking the "退坑させる" (Force Exit) button for that worker. The list will also automatically adjust to the correct state the next time the worker records an "Entry" or "Exit".
Q. I lost the Site ID and did not write it down. Can it be recovered?
A. If the browser cache (LocalStorage) is still intact, it will appear at the top of the screen. However, if it is completely lost due to device failure or clearing browser history, the old ID cannot be retrieved from the outside due to security specifications. In this case, use 新しい現場を作成する(現場IDリセット) to generate a new ID, reissue the QR code, and repost it.
Q. Can I manage multiple sites (use different Site IDs) on the same computer?
A. Yes. If you create and switch to a different account (profile) in a browser like Chrome or Edge and open the app file, the storage area (LocalStorage) becomes completely independent. This allows you to use and manage the app with a different Site ID on the same device simultaneously.

If you would like to use your own spreadsheet, please donate 500 yen to ID "papa58" via PayPay remittance chat and ask about the method in the remittance chat.