mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 00:48:56 +03:30
'3.1.1'
This commit is contained in:
@@ -238,7 +238,7 @@ class ItemProvider extends ChangeNotifier {
|
||||
items = [];
|
||||
searchBoxValue = value;
|
||||
originalItems!.forEach((result) {
|
||||
if (result.id.toString().contains(searchBoxValue)) {
|
||||
if (result.udi.toString().contains(searchBoxValue)) {
|
||||
items!.add(result);
|
||||
}
|
||||
});
|
||||
@@ -312,10 +312,20 @@ class ItemProvider extends ChangeNotifier {
|
||||
createdAt: '2019-09-18 10:02:03',
|
||||
udi: 'null',
|
||||
status: 0,
|
||||
filePath: [],
|
||||
);
|
||||
}
|
||||
var data = json.decode(response.body)['data'];
|
||||
print(data);
|
||||
|
||||
List<String> mediaList = [];
|
||||
|
||||
if (data['filesPath'] != null) {
|
||||
for (var file in data['filesPath']) {
|
||||
mediaList.add(Url.showItemImage(file));
|
||||
}
|
||||
}
|
||||
|
||||
result = ItemDetailObject(
|
||||
id: data['id'].toString(),
|
||||
description: data['note'] != null ? data['note'] : '',
|
||||
@@ -328,6 +338,7 @@ class ItemProvider extends ChangeNotifier {
|
||||
createdAt: data['created_at'] != null ? data['created_at'] : '',
|
||||
udi: data['udi'] != null ? data['udi'] : '',
|
||||
status: data['status'],
|
||||
filePath: mediaList,
|
||||
);
|
||||
return result!;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ class MyItemProvider extends ChangeNotifier {
|
||||
myItems = [];
|
||||
searchBoxValue = value;
|
||||
originalMyItems!.forEach((result) {
|
||||
if (result.id.toString().contains(searchBoxValue)) {
|
||||
if (result.udi.toString().contains(searchBoxValue)) {
|
||||
myItems!.add(result);
|
||||
}
|
||||
});
|
||||
@@ -56,7 +56,7 @@ class MyItemProvider extends ChangeNotifier {
|
||||
hospitalItems = [];
|
||||
searchBoxValue = value;
|
||||
originalHospitalItems!.forEach((result) {
|
||||
if (result.id.toString().contains(searchBoxValue)) {
|
||||
if (result.udi.toString().contains(searchBoxValue)) {
|
||||
hospitalItems!.add(result);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -312,8 +312,10 @@ class PackageProvider extends ChangeNotifier {
|
||||
var data = json.decode(response.body)['data'];
|
||||
List<String> itemsList = [];
|
||||
for (var item in data['items']) {
|
||||
itemsList
|
||||
.add("${item['name']} - ${item['udi'] != null ? item['udi'] : ''}");
|
||||
// itemsList
|
||||
// .add("${item['name']} - ${item['udi'] != null ? item['udi'] : ''}");
|
||||
itemsList
|
||||
.add("${item['id']} ${item['name']}");
|
||||
}
|
||||
print(data);
|
||||
result = PackageDetailObject(
|
||||
|
||||
Reference in New Issue
Block a user