mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:58:56 +03:30
beta commit
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
enum ConnectionStatus{
|
||||
Wifi,
|
||||
Calcular,
|
||||
Offline
|
||||
}
|
||||
@@ -1,52 +1,90 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class CycleResultObject {
|
||||
final String id;
|
||||
final List<String> label;
|
||||
final String createdAt;
|
||||
|
||||
CycleResultObject({
|
||||
@required this.id,
|
||||
@required this.label,
|
||||
@required this.createdAt,
|
||||
});
|
||||
}
|
||||
|
||||
class CycleDetailObject {
|
||||
final String id;
|
||||
final String description;
|
||||
final String createDate;
|
||||
final String hospitalName;
|
||||
|
||||
final String date;
|
||||
final String sterileId;
|
||||
final String cycleNumber;
|
||||
final List<String> labels;
|
||||
|
||||
CycleDetailObject({
|
||||
@required this.id,
|
||||
@required this.description,
|
||||
@required this.createDate,
|
||||
@required this.hospitalName,
|
||||
@required this.date,
|
||||
@required this.sterileId,
|
||||
@required this.cycleNumber,
|
||||
@required this.labels,
|
||||
});
|
||||
}
|
||||
|
||||
class CycleFilterObject {
|
||||
final String id;
|
||||
final String cycleNumber;
|
||||
final String sterilizerId;
|
||||
final String hospital;
|
||||
final String date;
|
||||
|
||||
CycleFilterObject({
|
||||
@required this.id,
|
||||
@required this.cycleNumber,
|
||||
@required this.sterilizerId,
|
||||
@required this.hospital,
|
||||
@required this.date,
|
||||
});
|
||||
}
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class CycleResultObject extends Equatable {
|
||||
final String id;
|
||||
final List<String> label;
|
||||
final String createdAt;
|
||||
|
||||
CycleResultObject({
|
||||
required this.id,
|
||||
required this.label,
|
||||
required this.createdAt,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [id, label, createdAt];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class CycleDetailObject extends Equatable {
|
||||
final String id;
|
||||
final String description;
|
||||
final String createDate;
|
||||
final String hospitalName;
|
||||
|
||||
final String date;
|
||||
final String sterileId;
|
||||
final String cycleNumber;
|
||||
final List<String> labels;
|
||||
|
||||
CycleDetailObject({
|
||||
required this.id,
|
||||
required this.description,
|
||||
required this.createDate,
|
||||
required this.hospitalName,
|
||||
required this.date,
|
||||
required this.sterileId,
|
||||
required this.cycleNumber,
|
||||
required this.labels,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
description,
|
||||
createDate,
|
||||
hospitalName,
|
||||
date,
|
||||
sterileId,
|
||||
cycleNumber,
|
||||
labels,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class CycleFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String cycleNumber;
|
||||
final String sterilizerId;
|
||||
final String hospital;
|
||||
final String date;
|
||||
|
||||
CycleFilterObject({
|
||||
required this.id,
|
||||
required this.cycleNumber,
|
||||
required this.sterilizerId,
|
||||
required this.hospital,
|
||||
required this.date,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
cycleNumber,
|
||||
sterilizerId,
|
||||
hospital,
|
||||
date,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class ItemResultObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String size;
|
||||
final String userName;
|
||||
final int status;
|
||||
final String? batchId;
|
||||
|
||||
ItemResultObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.size,
|
||||
required this.userName,
|
||||
required this.status,
|
||||
this.batchId,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [
|
||||
id,
|
||||
name,
|
||||
size,
|
||||
userName,
|
||||
status,
|
||||
batchId!,
|
||||
];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class ItemDetailObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String userName;
|
||||
final String size;
|
||||
final String specific;
|
||||
final String hospital;
|
||||
final String description;
|
||||
final String createdAt;
|
||||
final String udi;
|
||||
final int status;
|
||||
|
||||
ItemDetailObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.userName,
|
||||
required this.size,
|
||||
required this.specific,
|
||||
required this.hospital,
|
||||
required this.description,
|
||||
required this.createdAt,
|
||||
required this.udi,
|
||||
required this.status,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
userName,
|
||||
size,
|
||||
specific,
|
||||
hospital,
|
||||
description,
|
||||
createdAt,
|
||||
udi,
|
||||
status,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class ItemFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String udi;
|
||||
final String hospital;
|
||||
final String size;
|
||||
final String specific;
|
||||
|
||||
ItemFilterObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.udi,
|
||||
required this.hospital,
|
||||
required this.size,
|
||||
required this.specific,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
udi,
|
||||
hospital,
|
||||
size,
|
||||
specific,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
@@ -1,56 +1,88 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class LabelResultObject {
|
||||
final String id;
|
||||
final String package;
|
||||
final String packageId;
|
||||
final String expireDate;
|
||||
|
||||
LabelResultObject({
|
||||
@required this.id,
|
||||
@required this.package,
|
||||
@required this.packageId,
|
||||
@required this.expireDate,
|
||||
});
|
||||
}
|
||||
|
||||
class LabelDetailsObject {
|
||||
final String id;
|
||||
final String package;
|
||||
final String packageId;
|
||||
final String hospitalName;
|
||||
|
||||
final String createDate;
|
||||
final String expireDate;
|
||||
final String sterileDate;
|
||||
final String sterileId;
|
||||
final String cycleNumber;
|
||||
final String lotNumber;
|
||||
|
||||
LabelDetailsObject({
|
||||
@required this.id,
|
||||
@required this.package,
|
||||
@required this.packageId,
|
||||
@required this.hospitalName,
|
||||
@required this.createDate,
|
||||
@required this.expireDate,
|
||||
@required this.sterileDate,
|
||||
@required this.sterileId,
|
||||
@required this.cycleNumber,
|
||||
@required this.lotNumber,
|
||||
});
|
||||
}
|
||||
|
||||
class LabelFilterObject {
|
||||
final String id;
|
||||
final String cycleNumber;
|
||||
final String sterilizerId;
|
||||
final String hospital;
|
||||
|
||||
LabelFilterObject({
|
||||
@required this.id,
|
||||
@required this.cycleNumber,
|
||||
@required this.sterilizerId,
|
||||
@required this.hospital,
|
||||
});
|
||||
}
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class LabelResultObject extends Equatable {
|
||||
final String id;
|
||||
final String package;
|
||||
final String packageId;
|
||||
final String expireDate;
|
||||
|
||||
LabelResultObject({
|
||||
required this.id,
|
||||
required this.package,
|
||||
required this.packageId,
|
||||
required this.expireDate,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [id, package, packageId, expireDate];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class LabelDetailsObject extends Equatable {
|
||||
final String id;
|
||||
final String package;
|
||||
final String packageId;
|
||||
final String hospitalName;
|
||||
|
||||
final String createDate;
|
||||
final String expireDate;
|
||||
final String sterileDate;
|
||||
final String sterileId;
|
||||
final String cycleNumber;
|
||||
final String lotNumber;
|
||||
|
||||
LabelDetailsObject({
|
||||
required this.id,
|
||||
required this.package,
|
||||
required this.packageId,
|
||||
required this.hospitalName,
|
||||
required this.createDate,
|
||||
required this.expireDate,
|
||||
required this.sterileDate,
|
||||
required this.sterileId,
|
||||
required this.cycleNumber,
|
||||
required this.lotNumber,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
package,
|
||||
packageId,
|
||||
hospitalName,
|
||||
createDate,
|
||||
expireDate,
|
||||
sterileDate,
|
||||
sterileId,
|
||||
cycleNumber,
|
||||
lotNumber,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class LabelFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String cycleNumber;
|
||||
final String sterilizerId;
|
||||
final String hospital;
|
||||
|
||||
LabelFilterObject({
|
||||
required this.id,
|
||||
required this.cycleNumber,
|
||||
required this.sterilizerId,
|
||||
required this.hospital,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [id, cycleNumber, sterilizerId, hospital];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class MyItemResultObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String size;
|
||||
final String? userName;
|
||||
final String? fromDate;
|
||||
final String? toDate;
|
||||
|
||||
MyItemResultObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.size,
|
||||
this.userName,
|
||||
this.fromDate,
|
||||
this.toDate,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [
|
||||
id,
|
||||
name,
|
||||
size,
|
||||
userName!,
|
||||
fromDate!,
|
||||
toDate!,
|
||||
];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class MyItemFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String udi;
|
||||
final String size;
|
||||
final String specific;
|
||||
|
||||
MyItemFilterObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.udi,
|
||||
required this.size,
|
||||
required this.specific,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
udi,
|
||||
size,
|
||||
specific,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class MyPackageResultObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String? userName;
|
||||
final String? fromDate;
|
||||
final String? toDate;
|
||||
|
||||
MyPackageResultObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
this.userName,
|
||||
this.fromDate,
|
||||
this.toDate,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [
|
||||
id,
|
||||
name,
|
||||
userName!,
|
||||
fromDate!,
|
||||
toDate!,
|
||||
];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class MyPackageFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String udi;
|
||||
|
||||
MyPackageFilterObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.udi,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
udi,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class PackageResultObject extends Equatable {
|
||||
final String id;
|
||||
final String createdAt;
|
||||
final String name;
|
||||
|
||||
PackageResultObject({
|
||||
required this.id,
|
||||
required this.createdAt,
|
||||
required this.name,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [
|
||||
id,
|
||||
createdAt,
|
||||
name,
|
||||
];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class PackageDetailObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String description;
|
||||
final String createDate;
|
||||
final String hospitalName;
|
||||
final String udi;
|
||||
final List<String> items;
|
||||
|
||||
PackageDetailObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.description,
|
||||
required this.createDate,
|
||||
required this.hospitalName,
|
||||
required this.udi,
|
||||
required this.items,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
description,
|
||||
createDate,
|
||||
hospitalName,
|
||||
udi,
|
||||
items,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class PackageFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String hospital;
|
||||
final String udi;
|
||||
|
||||
PackageFilterObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.hospital,
|
||||
required this.udi,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
hospital,
|
||||
udi,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
@@ -1,41 +1,74 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TestResultObject {
|
||||
final String id;
|
||||
final String name;
|
||||
final String deviceId;
|
||||
final String result;
|
||||
final String date;
|
||||
final String hospital;
|
||||
final String verified;
|
||||
|
||||
TestResultObject({
|
||||
@required this.id,
|
||||
@required this.name,
|
||||
@required this.deviceId,
|
||||
@required this.result,
|
||||
@required this.date,
|
||||
@required this.hospital,
|
||||
@required this.verified,
|
||||
});
|
||||
}
|
||||
|
||||
class TestResultFilterObject {
|
||||
final String id;
|
||||
final String labelID;
|
||||
final String userName;
|
||||
final String hospital;
|
||||
final String testType;
|
||||
final String fDate;
|
||||
final String uDate;
|
||||
|
||||
TestResultFilterObject({
|
||||
@required this.id,
|
||||
@required this.labelID,
|
||||
@required this.userName,
|
||||
@required this.hospital,
|
||||
@required this.testType,
|
||||
@required this.fDate,
|
||||
@required this.uDate,
|
||||
});
|
||||
}
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class TestResultObject extends Equatable {
|
||||
final String id;
|
||||
final String name;
|
||||
final String deviceId;
|
||||
final String result;
|
||||
final String date;
|
||||
final String hospital;
|
||||
final String verified;
|
||||
|
||||
TestResultObject({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.deviceId,
|
||||
required this.result,
|
||||
required this.date,
|
||||
required this.hospital,
|
||||
required this.verified,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
name,
|
||||
deviceId,
|
||||
result,
|
||||
date,
|
||||
hospital,
|
||||
verified,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
class TestResultFilterObject extends Equatable {
|
||||
final String id;
|
||||
final String labelID;
|
||||
final String userName;
|
||||
final String hospital;
|
||||
final String testType;
|
||||
final String fDate;
|
||||
final String uDate;
|
||||
|
||||
TestResultFilterObject({
|
||||
required this.id,
|
||||
required this.labelID,
|
||||
required this.userName,
|
||||
required this.hospital,
|
||||
required this.testType,
|
||||
required this.fDate,
|
||||
required this.uDate,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
return [
|
||||
id,
|
||||
labelID,
|
||||
userName,
|
||||
hospital,
|
||||
testType,
|
||||
fDate,
|
||||
uDate,
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
class Users extends Equatable {
|
||||
final String id;
|
||||
final String userName;
|
||||
final String phoneNumber;
|
||||
|
||||
const Users({
|
||||
required this.userName,
|
||||
required this.phoneNumber,
|
||||
required this.id,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
userName,
|
||||
phoneNumber,
|
||||
id,
|
||||
];
|
||||
|
||||
@override
|
||||
bool get stringify => true;
|
||||
}
|
||||
Reference in New Issue
Block a user