| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- import 'dart:ui';
-
- /// 调度数据模型
- class DispatchModel {
- final List<ShiftInfo> shiftOverview;
- final List<PersonnelInfo> dutyPersonnel;
- final List<CommandInfo> dispatchCommands;
- final List<ContactInfo> emergencyContacts;
-
- DispatchModel({
- required this.shiftOverview,
- required this.dutyPersonnel,
- required this.dispatchCommands,
- required this.emergencyContacts,
- });
- }
-
- /// 班次信息
- class ShiftInfo {
- final String shiftName;
- final String status;
- final Color color;
-
- ShiftInfo({
- required this.shiftName,
- required this.status,
- required this.color,
- });
- }
-
- /// 人员信息
- class PersonnelInfo {
- final String name;
- final String role;
- final String station;
- final String status;
- final String phone;
-
- PersonnelInfo({
- required this.name,
- required this.role,
- required this.station,
- required this.status,
- required this.phone,
- });
- }
-
- /// 指令信息
- class CommandInfo {
- final String id;
- final String type;
- final String target;
- final String status;
- final String operator;
- final String time;
-
- CommandInfo({
- required this.id,
- required this.type,
- required this.target,
- required this.status,
- required this.operator,
- required this.time,
- });
- }
-
- /// 联系人信息
- class ContactInfo {
- final String name;
- final String phone;
- final String type;
-
- ContactInfo({
- required this.name,
- required this.phone,
- required this.type,
- });
- }
|