|
|
|
@ -146,7 +146,9 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
|
|
|
|
getPRNotification();
|
|
|
|
getPRNotification();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
controller.jumpToPage(0);
|
|
|
|
if(controller.hasClients) {
|
|
|
|
|
|
|
|
controller.jumpToPage(0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// List dataToFetch = await Future.wait([
|
|
|
|
// List dataToFetch = await Future.wait([
|
|
|
|
//
|
|
|
|
//
|
|
|
|
@ -214,9 +216,9 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
myTab(LocaleKeys.info.tr(), 0),
|
|
|
|
(workListData!.iTEMTYPE == "HRSSA" || workListData!.iTEMTYPE == "STAMP") ? myTab(LocaleKeys.details.tr(), 0) : myTab(LocaleKeys.request.tr(), 0),
|
|
|
|
(workListData!.iTEMTYPE == "HRSSA" || workListData!.iTEMTYPE == "STAMP") ? myTab(LocaleKeys.details.tr(), 1) : myTab(LocaleKeys.request.tr(), 1),
|
|
|
|
myTab(LocaleKeys.actions.tr(), 1),
|
|
|
|
myTab(LocaleKeys.actions.tr(), 2),
|
|
|
|
myTab(LocaleKeys.info.tr(), 2),
|
|
|
|
myTab(LocaleKeys.attachments.tr(), 3),
|
|
|
|
myTab(LocaleKeys.attachments.tr(), 3),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -230,6 +232,23 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
|
|
|
|
(workListData!.iTEMTYPE == "HRSSA" || workListData!.iTEMTYPE == "STAMP")
|
|
|
|
|
|
|
|
? DetailFragment(workListData, memberInformationListModel)
|
|
|
|
|
|
|
|
: RequestFragment(
|
|
|
|
|
|
|
|
moNotificationBodyList: getMoNotificationBodyList,
|
|
|
|
|
|
|
|
poLinesList: getPoNotificationBody?.pOLines ?? [],
|
|
|
|
|
|
|
|
itemCreationLines: getItemCreationNtfBody?.itemCreationLines ?? [],
|
|
|
|
|
|
|
|
prLinesList: getPrNotificationBody?.pRLines ?? [],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
isActionHistoryLoaded
|
|
|
|
|
|
|
|
? actionHistoryList.isEmpty
|
|
|
|
|
|
|
|
? Utils.getNoDataWidget(context)
|
|
|
|
|
|
|
|
: ActionsFragment(
|
|
|
|
|
|
|
|
workListData!.nOTIFICATIONID,
|
|
|
|
|
|
|
|
actionHistoryList,
|
|
|
|
|
|
|
|
voidCallback: reloadWorkList,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: showLoadingAnimation(),
|
|
|
|
InfoFragment(
|
|
|
|
InfoFragment(
|
|
|
|
poHeaderList: getPoNotificationBody?.pOHeader ?? [],
|
|
|
|
poHeaderList: getPoNotificationBody?.pOHeader ?? [],
|
|
|
|
workListData: workListData,
|
|
|
|
workListData: workListData,
|
|
|
|
@ -243,23 +262,6 @@ class _WorkListDetailScreenState extends State<WorkListDetailScreen> {
|
|
|
|
getContactNotificationBodyList: getContactNotificationBodyList,
|
|
|
|
getContactNotificationBodyList: getContactNotificationBodyList,
|
|
|
|
getPrNotificationBodyList: getPrNotificationBody,
|
|
|
|
getPrNotificationBodyList: getPrNotificationBody,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(workListData!.iTEMTYPE == "HRSSA" || workListData!.iTEMTYPE == "STAMP")
|
|
|
|
|
|
|
|
? DetailFragment(workListData, memberInformationListModel)
|
|
|
|
|
|
|
|
: RequestFragment(
|
|
|
|
|
|
|
|
moNotificationBodyList: getMoNotificationBodyList,
|
|
|
|
|
|
|
|
poLinesList: getPoNotificationBody?.pOLines ?? [],
|
|
|
|
|
|
|
|
itemCreationLines: getItemCreationNtfBody?.itemCreationLines ?? [],
|
|
|
|
|
|
|
|
prLinesList: getPrNotificationBody?.pRLines ?? [],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
isActionHistoryLoaded
|
|
|
|
|
|
|
|
? actionHistoryList.isEmpty
|
|
|
|
|
|
|
|
? Utils.getNoDataWidget(context)
|
|
|
|
|
|
|
|
: ActionsFragment(
|
|
|
|
|
|
|
|
workListData!.nOTIFICATIONID,
|
|
|
|
|
|
|
|
actionHistoryList,
|
|
|
|
|
|
|
|
voidCallback: reloadWorkList,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: showLoadingAnimation(),
|
|
|
|
|
|
|
|
isAttachmentLoaded
|
|
|
|
isAttachmentLoaded
|
|
|
|
? getAttachmentList.isEmpty
|
|
|
|
? getAttachmentList.isEmpty
|
|
|
|
? Utils.getNoDataWidget(context)
|
|
|
|
? Utils.getNoDataWidget(context)
|
|
|
|
|