AccidentCases.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "accident_cases".
  6. *
  7. * @property int $id
  8. * @property string|null $title 案例名称
  9. * @property int|null $level 事件性质(等级)
  10. * @property string $type_base 事件类型—基本选项
  11. * @property string $type_first 事件类型-一级字段
  12. * @property string $type_second 事件类型-二级字段
  13. * @property string $type_third 事件类型-三级字段
  14. * @property string $type_extra 事件类型—复合选项
  15. * @property string $duty_category 责任专业—事件归因
  16. * @property string $duty_reason 责任专业—原因
  17. * @property int|null $start_time 发生时间(具体日期、时间)
  18. * @property int|null $elimination_time 故障/外部影响消除时间
  19. * @property int|null $recovery_time 运营基本恢复时间
  20. * @property int|null $day_type 日期特征
  21. * @property int|null $time_type 时间特征
  22. * @property int|null $line 所属线路
  23. * @property int|null $automation_level 自动化程度
  24. * @property int|null $signal_supplier 信号供应商
  25. * @property int|null $train_number 车号
  26. * @property int|null $train_group 列车编组
  27. * @property int|null $train_model 列车型号
  28. * @property string|null $position_start 车站进站位置(起始位置)
  29. * @property string|null $position_end 车站进站位置(终止位置)
  30. * @property int|null $no_parking_area 车站进站位置(终止位置)
  31. * @property string|null $position_no_parking_area 车站进站位置(终止位置)
  32. * @property string|null $position 发生位置
  33. * @property string $position_base_first 发生位置-基本分类
  34. * @property int|null $position_base_second 发生位置-基本分类-二级字段
  35. * @property int|null $position_extra_first 发生位置-派生
  36. * @property int|null $position_extra_second 发生位置-派生-二级字段
  37. * @property string|null $signal_concentration_station 信号集中站/区域站
  38. * @property string|null $fault_switch_number 故障道岔编号
  39. * @property string|null $foreign_body_location 异物位置
  40. * @property string|null $power_supply_zoning 供电分区
  41. * @property string|null $substation_in_the_fault_section 故障区段内变电站
  42. * @property string|null $substation_type 变电站类型
  43. * @property int|null $headway 行车间隔
  44. * @property int|null $online_trains_number 在线列车数
  45. * @property int|null $incidence 影响范围
  46. * @property int|null $affect_trains_number 直接影响列车数
  47. * @property int|null $emergency_duration 故障持续时长
  48. * @property int|null $operation_duration 运营事件持续时长(分钟)
  49. * @property int|null $maximum_delay 最大晚点
  50. * @property int|null $train_delayed_two_minutes 2分钟晚点列次
  51. * @property int|null $train_delayed_five_minutes 5分钟晚点列次
  52. * @property int|null $get_off_trains_number 清客列次
  53. * @property int|null $skip_stop_trains_number 跳停列次
  54. * @property int|null $handle_person_dispatch 路网调度
  55. * @property int|null $handle_person_leader 班组长(1人)
  56. * @property int|null $handle_person_principal 运营正职(1人)
  57. * @property int|null $handle_person_principal_device 设备正职(1人)
  58. * @property int|null $handle_person_deputy 运营副职(可多人)
  59. * @property int|null $handle_person_deputy_device 设备副职(可多人)
  60. * @property int|null $command_area 指挥区域
  61. * @property int|null $team_serial_number 班组序号
  62. * @property int|null $delete_time 数据删除时间
  63. * @property string|null $images 事件图片(封面图片)
  64. * @property string|null $images_add 事件图片(额外)
  65. * @property string|null $images_duibi 事件图片(对比)
  66. * @property object $totalScore 事件图片(额外)
  67. * @property string|null $update_time
  68. * @property int $status 状态 0-待审核 1-已发布 2已提交 3已审核 4驳回
  69. * @property String create_by 创建人工号
  70. * @property String create_name 创建人姓名
  71. * @property String create_remark 创建人备注
  72. * @property String check_list 可审核人列表 默认为空则所有审核人都能看到,不为空则只有指定人可以审核
  73. * @property String check_name_list 可审核人姓名列表
  74. * @property String check_by 审核人
  75. * @property String check_name 审核人姓名
  76. * @property String check_remark 审核人备注
  77. */
  78. class AccidentCases extends \yii\db\ActiveRecord
  79. {
  80. public $totalScore;
  81. /**
  82. * {@inheritdoc}
  83. */
  84. public static function tableName()
  85. {
  86. return 'accident_cases';
  87. }
  88. /**
  89. * {@inheritdoc}
  90. */
  91. public function rules()
  92. {
  93. return [
  94. // [['level', 'type_base', 'type_first', 'duty_category', 'duty_reason', 'start_time', 'day_type', 'time_type', 'line', 'automation_level', 'signal_supplier', 'train_number', 'train_group', 'train_model', 'position_base_first', 'position_base_second', 'position_extra_first', 'position_extra_second', 'substation_type', 'headway', 'online_trains_number', 'incidence', 'affect_trains_number', 'get_off_trains_number', 'skip stop_trains_number'], 'integer'],
  95. // [['emergency_duration', 'maximum_delay'], 'number'],
  96. // [['title', 'images'], 'string', 'max' => 512],
  97. // [['type_second', 'type_third', 'type_extra'], 'string', 'max' => 50],
  98. // [['position', 'train_delayed_two_minutes', 'train_delayed_five_minutes'], 'string', 'max' => 128],
  99. ];
  100. }
  101. /**
  102. * {@inheritdoc}
  103. */
  104. public function attributeLabels()
  105. {
  106. return [
  107. 'id' => 'ID',
  108. 'title' => 'Title',
  109. 'level' => 'Level',
  110. 'type_base' => 'Type Base',
  111. 'type_first' => 'Type First',
  112. 'type_second' => 'Type Second',
  113. 'type_third' => 'Type Third',
  114. 'type_extra' => 'Type Extra',
  115. 'duty_category' => 'Duty Category',
  116. 'duty_reason' => 'Duty Reason',
  117. 'start_time' => 'Start Time',
  118. 'day_type' => 'Day Type',
  119. 'time_type' => 'Time Type',
  120. 'line' => 'Line',
  121. 'automation_level' => 'Automation Level',
  122. 'signal_supplier' => 'Signal Supplier',
  123. 'train_number' => 'Train Number',
  124. 'train_group' => 'Train Group',
  125. 'train_model' => 'Train Model',
  126. 'position' => 'Position',
  127. 'position_base_first' => 'Position Base First',
  128. 'position_base_second' => 'Position Base Second',
  129. 'position_extra_first' => 'Position Extra First',
  130. 'position_extra_second' => 'Position Extra Second',
  131. 'substation_type' => 'Substation Type',
  132. 'headway' => 'Headway',
  133. 'online_trains_number' => 'Online Trains Number',
  134. 'incidence' => 'Incidence',
  135. 'affect_trains_number' => 'Affect Trains Number',
  136. 'emergency_duration' => 'Emergency Duration',
  137. 'maximum_delay' => 'Maximum Delay',
  138. 'train_delayed_two_minutes' => 'Train Delayed Two Minutes',
  139. 'train_delayed_five_minutes' => 'Train Delayed Five Minutes',
  140. 'get_off_trains_number' => 'Get Off Trains Number',
  141. 'skip stop_trains_number' => 'Skip Stop Trains Number',
  142. 'images' => 'Images',
  143. ];
  144. }
  145. }