Browse Source

show Warehouse Name

phase2_apinhatky
Đại Võ 1 year ago
parent
commit
c506a58a97
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      lib/custom_model/Supply.dart
  2. +1
    -1
      lib/presentation/screens/resources/sc_resource_helper.dart

+ 4
- 0
lib/custom_model/Supply.dart View File

String? tbWarehouseName; String? tbWarehouseName;
String? tbSuppliesName; String? tbSuppliesName;
int? tbSuppliesId; int? tbSuppliesId;
String? tbEntityName;
bool? isSelected; bool? isSelected;


Supply({ Supply({
this.tbWarehouseName, this.tbWarehouseName,
this.tbSuppliesName, this.tbSuppliesName,
this.tbSuppliesId, this.tbSuppliesId,
this.tbEntityName,
this.isSelected, this.isSelected,
}); });


unit = json['unit']; unit = json['unit'];
tbWarehouseId = json['tbWarehouseId']; tbWarehouseId = json['tbWarehouseId'];
tbWarehouseName = json['tbWarehouseName']; tbWarehouseName = json['tbWarehouseName'];
tbEntityName = json['tbEntityName'];
tbSuppliesName = json['tbSuppliesName']; tbSuppliesName = json['tbSuppliesName'];
tbSuppliesId = json['tbSuppliesId']; tbSuppliesId = json['tbSuppliesId'];
isSelected = false; isSelected = false;
data['unit'] = this.unit; data['unit'] = this.unit;
data['tbWarehouseId'] = this.tbWarehouseId; data['tbWarehouseId'] = this.tbWarehouseId;
data['tbWarehouseName'] = this.tbWarehouseName; data['tbWarehouseName'] = this.tbWarehouseName;
data['tbEntityName'] = this.tbEntityName;
data['tbSuppliesName'] = this.tbSuppliesName; data['tbSuppliesName'] = this.tbSuppliesName;
data['tbSuppliesId'] = this.tbSuppliesId; data['tbSuppliesId'] = this.tbSuppliesId;
return data; return data;

+ 1
- 1
lib/presentation/screens/resources/sc_resource_helper.dart View File

title: Row( title: Row(
children: [Expanded(child: Text(item.tbSuppliesName.toString())), Text("${item.quantity?.formatNumtoStringDecimal()} ${item.unit}")], children: [Expanded(child: Text(item.tbSuppliesName.toString())), Text("${item.quantity?.formatNumtoStringDecimal()} ${item.unit}")],
), ),
subtitle: Text(item.tbWarehouseName.toString()),
subtitle: Text(item.tbEntityName.toString()),
value: item, value: item,
groupValue: item.isSelected == false ? null : item, groupValue: item.isSelected == false ? null : item,
onChanged: (Supply? value) { onChanged: (Supply? value) {

Loading…
Cancel
Save