一次大的提交
This commit is contained in:
@@ -0,0 +1,167 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class WorkOrderEntity extends Equatable {
|
||||
final int? id;
|
||||
final String? orderNo;
|
||||
final String? orderTitle;
|
||||
final int? sourceType;
|
||||
final int? orderType;
|
||||
final int? priorityLevel;
|
||||
final int? deviceId;
|
||||
final String? deviceName;
|
||||
final int? deviceType;
|
||||
final int? siteId;
|
||||
final String? siteName;
|
||||
final int? orgId;
|
||||
final int? assigneeId;
|
||||
final String? assigneeName;
|
||||
final String? collaboratorIds;
|
||||
final String? collaboratorNames;
|
||||
final String? planStartTime;
|
||||
final String? planEndTime;
|
||||
final String? deadlineTime;
|
||||
final String? actualStartTime;
|
||||
final String? actualEndTime;
|
||||
final int? orderStatus;
|
||||
final int? alarmId;
|
||||
final String? alarmNo;
|
||||
final String? taskDescription;
|
||||
final String? aiSuggestion;
|
||||
final String? requiredEquipment;
|
||||
final double? estimatedImpact;
|
||||
final String? handleResult;
|
||||
final String? handleRemark;
|
||||
|
||||
const WorkOrderEntity({
|
||||
this.id,
|
||||
this.orderNo,
|
||||
this.orderTitle,
|
||||
this.sourceType,
|
||||
this.orderType,
|
||||
this.priorityLevel,
|
||||
this.deviceId,
|
||||
this.deviceName,
|
||||
this.deviceType,
|
||||
this.siteId,
|
||||
this.siteName,
|
||||
this.orgId,
|
||||
this.assigneeId,
|
||||
this.assigneeName,
|
||||
this.collaboratorIds,
|
||||
this.collaboratorNames,
|
||||
this.planStartTime,
|
||||
this.planEndTime,
|
||||
this.deadlineTime,
|
||||
this.actualStartTime,
|
||||
this.actualEndTime,
|
||||
this.orderStatus,
|
||||
this.alarmId,
|
||||
this.alarmNo,
|
||||
this.taskDescription,
|
||||
this.aiSuggestion,
|
||||
this.requiredEquipment,
|
||||
this.estimatedImpact,
|
||||
this.handleResult,
|
||||
this.handleRemark,
|
||||
});
|
||||
|
||||
WorkOrderEntity copyWith({
|
||||
int? id,
|
||||
String? orderNo,
|
||||
String? orderTitle,
|
||||
int? sourceType,
|
||||
int? orderType,
|
||||
int? priorityLevel,
|
||||
int? deviceId,
|
||||
String? deviceName,
|
||||
int? deviceType,
|
||||
int? siteId,
|
||||
String? siteName,
|
||||
int? orgId,
|
||||
int? assigneeId,
|
||||
String? assigneeName,
|
||||
String? collaboratorIds,
|
||||
String? collaboratorNames,
|
||||
String? planStartTime,
|
||||
String? planEndTime,
|
||||
String? deadlineTime,
|
||||
String? actualStartTime,
|
||||
String? actualEndTime,
|
||||
int? orderStatus,
|
||||
int? alarmId,
|
||||
String? alarmNo,
|
||||
String? taskDescription,
|
||||
String? aiSuggestion,
|
||||
String? requiredEquipment,
|
||||
double? estimatedImpact,
|
||||
String? handleResult,
|
||||
String? handleRemark,
|
||||
}) {
|
||||
return WorkOrderEntity(
|
||||
id: id ?? this.id,
|
||||
orderNo: orderNo ?? this.orderNo,
|
||||
orderTitle: orderTitle ?? this.orderTitle,
|
||||
sourceType: sourceType ?? this.sourceType,
|
||||
orderType: orderType ?? this.orderType,
|
||||
priorityLevel: priorityLevel ?? this.priorityLevel,
|
||||
deviceId: deviceId ?? this.deviceId,
|
||||
deviceName: deviceName ?? this.deviceName,
|
||||
deviceType: deviceType ?? this.deviceType,
|
||||
siteId: siteId ?? this.siteId,
|
||||
siteName: siteName ?? this.siteName,
|
||||
orgId: orgId ?? this.orgId,
|
||||
assigneeId: assigneeId ?? this.assigneeId,
|
||||
assigneeName: assigneeName ?? this.assigneeName,
|
||||
collaboratorIds: collaboratorIds ?? this.collaboratorIds,
|
||||
collaboratorNames: collaboratorNames ?? this.collaboratorNames,
|
||||
planStartTime: planStartTime ?? this.planStartTime,
|
||||
planEndTime: planEndTime ?? this.planEndTime,
|
||||
deadlineTime: deadlineTime ?? this.deadlineTime,
|
||||
actualStartTime: actualStartTime ?? this.actualStartTime,
|
||||
actualEndTime: actualEndTime ?? this.actualEndTime,
|
||||
orderStatus: orderStatus ?? this.orderStatus,
|
||||
alarmId: alarmId ?? this.alarmId,
|
||||
alarmNo: alarmNo ?? this.alarmNo,
|
||||
taskDescription: taskDescription ?? this.taskDescription,
|
||||
aiSuggestion: aiSuggestion ?? this.aiSuggestion,
|
||||
requiredEquipment: requiredEquipment ?? this.requiredEquipment,
|
||||
estimatedImpact: estimatedImpact ?? this.estimatedImpact,
|
||||
handleResult: handleResult ?? this.handleResult,
|
||||
handleRemark: handleRemark ?? this.handleRemark,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
id,
|
||||
orderNo,
|
||||
orderTitle,
|
||||
sourceType,
|
||||
orderType,
|
||||
priorityLevel,
|
||||
deviceId,
|
||||
deviceName,
|
||||
deviceType,
|
||||
siteId,
|
||||
siteName,
|
||||
orgId,
|
||||
assigneeId,
|
||||
assigneeName,
|
||||
collaboratorIds,
|
||||
collaboratorNames,
|
||||
planStartTime,
|
||||
planEndTime,
|
||||
deadlineTime,
|
||||
actualStartTime,
|
||||
actualEndTime,
|
||||
orderStatus,
|
||||
alarmId,
|
||||
alarmNo,
|
||||
taskDescription,
|
||||
aiSuggestion,
|
||||
requiredEquipment,
|
||||
estimatedImpact,
|
||||
handleResult,
|
||||
handleRemark,
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user