end user status added.

design_3.0_demo_module
Sikander Saleem 3 months ago
parent b20f42848b
commit af1680e575

@ -98,11 +98,11 @@ class _DemoDetailViewPageState extends State<DemoDetailViewPage> {
children: [ children: [
if (demoData.status != null) ...[ if (demoData.status != null) ...[
StatusLabel( StatusLabel(
label: demoData.status?.name, label: context.userProvider.isNurse ? demoData.endUserStatus?.name : demoData.status?.name,
id: demoData.status?.value, id: demoData.status?.value,
radius: 4, radius: 4,
textColor: AppColor.demoRequestStatusTextColor(context, demoData.status!.value!), textColor: AppColor.demoRequestStatusTextColor(context, context.userProvider.isNurse ? demoData.endUserStatus!.value! : demoData.status!.value!),
backgroundColor: AppColor.demoRequestStatus(context, demoData.status!.value!), backgroundColor: AppColor.demoRequestStatus(context, context.userProvider.isNurse ? demoData.endUserStatus!.value! : demoData.status!.value!),
), ),
8.height, 8.height,
], ],

@ -28,6 +28,7 @@ class DemoRequestModel {
SupplierDetails? supplier; SupplierDetails? supplier;
SuppEngineerWorkOrders? suppPerson; SuppEngineerWorkOrders? suppPerson;
Lookup? status; Lookup? status;
Lookup? endUserStatus;
List<DemoAttachments>? demoAttachments; List<DemoAttachments>? demoAttachments;
List<DemoAttachments>? supplierDemoAttachments; List<DemoAttachments>? supplierDemoAttachments;
dynamic demoAsset; dynamic demoAsset;
@ -58,6 +59,7 @@ class DemoRequestModel {
this.supplier, this.supplier,
this.suppPerson, this.suppPerson,
this.status, this.status,
this.endUserStatus,
this.demoAttachments, this.demoAttachments,
this.supplierDemoAttachments, this.supplierDemoAttachments,
this.demoAsset, this.demoAsset,
@ -89,6 +91,7 @@ class DemoRequestModel {
supplier = json['supplier'] != null ? (SupplierDetails.fromJson(json['supplier'])) : null; supplier = json['supplier'] != null ? (SupplierDetails.fromJson(json['supplier'])) : null;
suppPerson = json['suppPerson'] != null ? (SuppEngineerWorkOrders.fromJson(json['suppPerson'])) : null; suppPerson = json['suppPerson'] != null ? (SuppEngineerWorkOrders.fromJson(json['suppPerson'])) : null;
status = json['status'] != null ? (Lookup.fromJson(json['status'])) : null; status = json['status'] != null ? (Lookup.fromJson(json['status'])) : null;
endUserStatus = json['endUserStatus'] != null ? (Lookup.fromJson(json['endUserStatus'])) : null;
demoAttachments = json['demoAttachments'] != null ? (json['demoAttachments'] as List).map((e) => DemoAttachments.fromJson(e)).toList() : null; demoAttachments = json['demoAttachments'] != null ? (json['demoAttachments'] as List).map((e) => DemoAttachments.fromJson(e)).toList() : null;
supplierDemoAttachments = json['supplierDemoAttachments'] != null ? (json['supplierDemoAttachments'] as List).map((e) => DemoAttachments.fromJson(e)).toList() : null; supplierDemoAttachments = json['supplierDemoAttachments'] != null ? (json['supplierDemoAttachments'] as List).map((e) => DemoAttachments.fromJson(e)).toList() : null;
demoAsset = json['demoAsset']; demoAsset = json['demoAsset'];

Loading…
Cancel
Save