|
|
|
@ -19,8 +19,8 @@ import 'package:mohem_flutter_app/models/worklist/hr/get_contact_notification_bo
|
|
|
|
|
import 'package:mohem_flutter_app/models/worklist/hr/get_phones_notification_body_list_model.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/models/worklist_response_model.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/widgets/item_detail_view_widget.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:mohem_flutter_app/models/termination/termination_notification_body.dart';
|
|
|
|
|
import 'package:mohem_flutter_app/models/worklist/payment_details_list.dart';
|
|
|
|
|
|
|
|
|
|
class InfoFragment extends StatelessWidget {
|
|
|
|
|
WorkListResponseModel? workListData;
|
|
|
|
@ -28,14 +28,18 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
List<GetStampMsNotificationBodyList>? getStampMsNotifications;
|
|
|
|
|
List<GetStampNsNotificationBodyList>? getStampNsNotifications;
|
|
|
|
|
List<ItemCreationHeader> itemCreationHeader;
|
|
|
|
|
List<GetEitCollectionNotificationBodyList>? getEitCollectionNotificationBodyList;
|
|
|
|
|
List<GetEitCollectionNotificationBodyList>?
|
|
|
|
|
getEitCollectionNotificationBodyList;
|
|
|
|
|
List<GetPhonesNotificationBodyList>? getPhonesNotificationBodyList;
|
|
|
|
|
List<GetBasicDetNtfBodyList>? getBasicDetNtfBodyList;
|
|
|
|
|
List<GetAbsenceCollectionNotificationBodyList>? getAbsenceCollectionNotificationBodyList;
|
|
|
|
|
List<GetAbsenceCollectionNotificationBodyList>?
|
|
|
|
|
getAbsenceCollectionNotificationBodyList;
|
|
|
|
|
GetContactNotificationBodyList? getContactNotificationBodyList;
|
|
|
|
|
GetPrNotificationBodyList? getPrNotificationBodyList;
|
|
|
|
|
List<GetAddressNotificationBodyList>? getAddressNotificationBodyList = [];
|
|
|
|
|
List<TerminationNotificationBody>? getTerminationNotificationBodyList = [];
|
|
|
|
|
GetPaymentNotificationBodyList? getPaymentNotificationBodyList;
|
|
|
|
|
|
|
|
|
|
InfoFragment(
|
|
|
|
|
{this.workListData,
|
|
|
|
|
this.poHeaderList = const <POHeader>[],
|
|
|
|
@ -49,15 +53,18 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
this.getContactNotificationBodyList,
|
|
|
|
|
this.getPrNotificationBodyList,
|
|
|
|
|
this.getAddressNotificationBodyList,
|
|
|
|
|
this.getTerminationNotificationBodyList
|
|
|
|
|
});
|
|
|
|
|
this.getTerminationNotificationBodyList,
|
|
|
|
|
this.getPaymentNotificationBodyList});
|
|
|
|
|
|
|
|
|
|
double itemHeight = 0;
|
|
|
|
|
double itemWidth = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
var size = MediaQuery.of(context).size;
|
|
|
|
|
Size size = MediaQuery.of(context).size;
|
|
|
|
|
itemHeight = (size.height - kToolbarHeight - 24) / 9;
|
|
|
|
|
itemWidth = size.width / 2;
|
|
|
|
|
|
|
|
|
@ -68,36 +75,62 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.to.tr(), workListData!.tOUSER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(),
|
|
|
|
|
workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.subject.tr(), workListData!.sUBJECT ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.subject.tr(), workListData!.sUBJECT ?? ""),
|
|
|
|
|
Container(),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
if (getPrNotificationBodyList != null) getPRNotificationBodyListWidget(getPrNotificationBodyList!),
|
|
|
|
|
if (getStampMsNotifications?.isNotEmpty ?? false) getStampMsNotificationsListView(getStampMsNotifications ?? []),
|
|
|
|
|
if (getStampNsNotifications?.isNotEmpty ?? false) getStampNsNotificationsListView(getStampNsNotifications ?? []),
|
|
|
|
|
if (getPrNotificationBodyList != null)
|
|
|
|
|
getPRNotificationBodyListWidget(getPrNotificationBodyList!),
|
|
|
|
|
if (getStampMsNotifications?.isNotEmpty ?? false)
|
|
|
|
|
getStampMsNotificationsListView(getStampMsNotifications ?? []),
|
|
|
|
|
if (getStampNsNotifications?.isNotEmpty ?? false)
|
|
|
|
|
getStampNsNotificationsListView(getStampNsNotifications ?? []),
|
|
|
|
|
if (poHeaderList.isNotEmpty) getPoNotificationsListView(),
|
|
|
|
|
if (itemCreationHeader.isNotEmpty) getItemCreationHeaderView(),
|
|
|
|
|
if (getEitCollectionNotificationBodyList?.isNotEmpty ?? false) getEitNotificationsListView(getEitCollectionNotificationBodyList ?? []),
|
|
|
|
|
if (getPhonesNotificationBodyList?.isNotEmpty ?? false) getPhonesNotificationBodyListWidget(getPhonesNotificationBodyList ?? []).objectContainerView(title: "Mobile Numbers"),
|
|
|
|
|
if (getBasicDetNtfBodyList?.isNotEmpty ?? false) getBasicDetNtfBodyListWidget(getBasicDetNtfBodyList ?? []).objectContainerView(title: "Basic Information"),
|
|
|
|
|
if (getAbsenceCollectionNotificationBodyList?.isNotEmpty ?? false) getAbsenceCollectionNotificationBodyListWidget(getAbsenceCollectionNotificationBodyList ?? []),
|
|
|
|
|
if (getContactNotificationBodyList != null) getContactNotificationBodyListWidget(getContactNotificationBodyList ?? GetContactNotificationBodyList()).objectContainerView(),
|
|
|
|
|
if (getAddressNotificationBodyList?.isNotEmpty ?? false) getAddressNotificationBodyListWidget(getAddressNotificationBodyList!),
|
|
|
|
|
if (getTerminationNotificationBodyList?.isNotEmpty ?? false) getTerminationNotificationBodyListWidget(getTerminationNotificationBodyList!),
|
|
|
|
|
if (getEitCollectionNotificationBodyList?.isNotEmpty ?? false)
|
|
|
|
|
getEitNotificationsListView(getEitCollectionNotificationBodyList ?? []),
|
|
|
|
|
if (getPhonesNotificationBodyList?.isNotEmpty ?? false)
|
|
|
|
|
getPhonesNotificationBodyListWidget(getPhonesNotificationBodyList ?? [])
|
|
|
|
|
.objectContainerView(title: "Mobile Numbers"),
|
|
|
|
|
if (getBasicDetNtfBodyList?.isNotEmpty ?? false)
|
|
|
|
|
getBasicDetNtfBodyListWidget(getBasicDetNtfBodyList ?? [])
|
|
|
|
|
.objectContainerView(title: "Basic Information"),
|
|
|
|
|
if (getAbsenceCollectionNotificationBodyList?.isNotEmpty ?? false)
|
|
|
|
|
getAbsenceCollectionNotificationBodyListWidget(
|
|
|
|
|
getAbsenceCollectionNotificationBodyList ?? []),
|
|
|
|
|
if (getContactNotificationBodyList != null)
|
|
|
|
|
getContactNotificationBodyListWidget(getContactNotificationBodyList ??
|
|
|
|
|
GetContactNotificationBodyList())
|
|
|
|
|
.objectContainerView(),
|
|
|
|
|
if (getAddressNotificationBodyList?.isNotEmpty ?? false)
|
|
|
|
|
getAddressNotificationBodyListWidget(getAddressNotificationBodyList!),
|
|
|
|
|
if (getTerminationNotificationBodyList?.isNotEmpty ?? false)
|
|
|
|
|
getTerminationNotificationBodyListWidget(
|
|
|
|
|
getTerminationNotificationBodyList!),
|
|
|
|
|
if (getPaymentNotificationBodyList != null)
|
|
|
|
|
getPaymentNotificationBodyListWidget(getPaymentNotificationBodyList ??
|
|
|
|
|
GetPaymentNotificationBodyList())
|
|
|
|
|
.objectContainerView(),
|
|
|
|
|
];
|
|
|
|
|
return Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
@ -115,43 +148,59 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.description.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.description.tr(),
|
|
|
|
|
workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.to.tr(), workListData!.tOUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.to.tr(), workListData!.tOUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(),
|
|
|
|
|
workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplier.tr(), poHeaderList[index].vENDORNAME ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.site.tr(), poHeaderList[index].vENDORSITECODE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplier.tr(),
|
|
|
|
|
poHeaderList[index].vENDORNAME ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.site.tr(),
|
|
|
|
|
poHeaderList[index].vENDORSITECODE ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.buyer.tr(), poHeaderList[index].bUYER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.preparer.tr(), poHeaderList[index].pREPARER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.buyer.tr(),
|
|
|
|
|
poHeaderList[index].bUYER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.preparer.tr(),
|
|
|
|
|
poHeaderList[index].pREPARER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.creationDate.tr(), poHeaderList[index].cREATIONDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shipToLocation.tr(), poHeaderList[index].sHIPTOLOCATIONNAME ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.creationDate.tr(),
|
|
|
|
|
poHeaderList[index].cREATIONDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shipToLocation.tr(),
|
|
|
|
|
poHeaderList[index].sHIPTOLOCATIONNAME ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.quotationNumber.tr(), poHeaderList[index].qUOTATIONNUMBER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.quotationDate.tr(), poHeaderList[index].qUOTATIONDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.quotationNumber.tr(),
|
|
|
|
|
poHeaderList[index].qUOTATIONNUMBER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.quotationDate.tr(),
|
|
|
|
|
poHeaderList[index].qUOTATIONDATE ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.paymentTerms.tr(), poHeaderList[index].pAYMENTTERMS ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.currency.tr(), poHeaderList[index].cURRENCYNAME ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.paymentTerms.tr(),
|
|
|
|
|
poHeaderList[index].pAYMENTTERMS ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.currency.tr(),
|
|
|
|
|
poHeaderList[index].cURRENCYNAME ?? ""),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
@ -160,19 +209,26 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.grossAmount.tr(), poHeaderList[index].gROSSAMOUNT?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.discountAmount.tr(), poHeaderList[index].dISCOUNTAMOUNT?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.grossAmount.tr(),
|
|
|
|
|
poHeaderList[index].gROSSAMOUNT?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.discountAmount.tr(),
|
|
|
|
|
poHeaderList[index].dISCOUNTAMOUNT?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.customDuty.tr(), poHeaderList[index].cUSTOMDUTY?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shipHandle.tr(), poHeaderList[index].sHIPHANDLE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.customDuty.tr(),
|
|
|
|
|
poHeaderList[index].cUSTOMDUTY?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shipHandle.tr(),
|
|
|
|
|
poHeaderList[index].sHIPHANDLE?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.otherCharges.tr(), poHeaderList[index].oTHERCHARGES?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.totalPOAmountWithVAT.tr(), poHeaderList[index].lOCCURTOTPOAMT.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.otherCharges.tr(),
|
|
|
|
|
poHeaderList[index].oTHERCHARGES?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.totalPOAmountWithVAT.tr(),
|
|
|
|
|
poHeaderList[index].lOCCURTOTPOAMT.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.totalPOAmountInWords.tr(), poHeaderList[index].tOTPOAMTWORD ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.totalPOAmountInWords.tr(),
|
|
|
|
|
poHeaderList[index].tOTPOAMTWORD ?? ""),
|
|
|
|
|
Container(),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
@ -180,7 +236,7 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
).objectContainerView(title: LocaleKeys.amount_detail.tr()),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 4.height,
|
|
|
|
|
itemCount: poHeaderList.length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -194,67 +250,95 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
// itemCount: dataList.length);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
Widget getStampMsNotificationsListView(List<GetStampMsNotificationBodyList> list) {
|
|
|
|
|
Widget getStampMsNotificationsListView(
|
|
|
|
|
List<GetStampMsNotificationBodyList> list) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeNumber.tr(), list[index].eMPLOYEENUMBER.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.assignmentNumber.tr(), list[index].aSSIGNMENTNUMBER.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeNumber.tr(),
|
|
|
|
|
list[index].eMPLOYEENUMBER.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.assignmentNumber.tr(),
|
|
|
|
|
list[index].aSSIGNMENTNUMBER.toString()),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeName.tr(), list[index].eMPLOYEENAME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.scheduleDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(list[index].sCHEDULEDATE.toString()), false)),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeName.tr(),
|
|
|
|
|
list[index].eMPLOYEENAME.toString()),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.scheduleDate.tr(),
|
|
|
|
|
DateUtil.formatDateToDate(
|
|
|
|
|
DateUtil.convertStringToDate(
|
|
|
|
|
list[index].sCHEDULEDATE.toString()),
|
|
|
|
|
false)),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shiftType.tr(), list[index].sHTTYPEDESC.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shift.tr(), list[index].sHTNAME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.shiftType.tr(),
|
|
|
|
|
list[index].sHTTYPEDESC.toString()),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.shift.tr(), list[index].sHTNAME.toString()),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.breakText.tr(), list[index].bREAKNAME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.actualSwipeStart.tr(), list[index].sHTACTUALSTARTTIME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.breakText.tr(),
|
|
|
|
|
list[index].bREAKNAME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.actualSwipeStart.tr(),
|
|
|
|
|
list[index].sHTACTUALSTARTTIME.toString()),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.actualSwipeEnd.tr(), list[index].sHTACTUALENDTIME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeStart.tr(), list[index].aPPROVEDSTARTTIME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.actualSwipeEnd.tr(),
|
|
|
|
|
list[index].sHTACTUALENDTIME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeStart.tr(),
|
|
|
|
|
list[index].aPPROVEDSTARTTIME.toString()),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeStartReason.tr(), list[index].aPPROVEDSTARTREASON.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeStartReason.tr(),
|
|
|
|
|
list[index].aPPROVEDSTARTREASON.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeEnd.tr(), ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeEndReason.tr(), list[index].aPPROVEDENDREASONDESC.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeEndReason.tr(),
|
|
|
|
|
list[index].aPPROVEDENDREASONDESC.toString()),
|
|
|
|
|
Container(),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 1.height.paddingOnly(top: 8, bottom: 8),
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) =>
|
|
|
|
|
1.height.paddingOnly(top: 8, bottom: 8),
|
|
|
|
|
itemCount: list.length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getStampNsNotificationsListView(List<GetStampNsNotificationBodyList> list) {
|
|
|
|
|
Widget getStampNsNotificationsListView(
|
|
|
|
|
List<GetStampNsNotificationBodyList> list) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeNumber.tr(), list[index].eMPLOYEENUMBER.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.assignmentNumber.tr(), list[index].aSSIGNMENTNUMBER.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeNumber.tr(),
|
|
|
|
|
list[index].eMPLOYEENUMBER.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.assignmentNumber.tr(),
|
|
|
|
|
list[index].aSSIGNMENTNUMBER.toString()),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeName.tr(), list[index].eMPLOYEENAME.toString()),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.scheduleDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(list[index].sCHEDULEDATE.toString()), false)),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.employeeName.tr(),
|
|
|
|
|
list[index].eMPLOYEENAME.toString()),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.scheduleDate.tr(),
|
|
|
|
|
DateUtil.formatDateToDate(
|
|
|
|
|
DateUtil.convertStringToDate(
|
|
|
|
|
list[index].sCHEDULEDATE.toString()),
|
|
|
|
|
false)),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 1.height.paddingOnly(top: 8, bottom: 8),
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) =>
|
|
|
|
|
1.height.paddingOnly(top: 8, bottom: 8),
|
|
|
|
|
itemCount: list.length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -262,43 +346,65 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.operatingUnit.tr(), itemCreationHeader[index].oPERATINGUNIT?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.category.tr(), itemCreationHeader[index].cATEGORY?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.operatingUnit.tr(),
|
|
|
|
|
itemCreationHeader[index].oPERATINGUNIT?.toString() ??
|
|
|
|
|
""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.category.tr(),
|
|
|
|
|
itemCreationHeader[index].cATEGORY?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.requester.tr(), itemCreationHeader[index].rEQUESTER?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.analyzedBy.tr(), itemCreationHeader[index].aNALYZEDBY?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.requester.tr(),
|
|
|
|
|
itemCreationHeader[index].rEQUESTER?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.analyzedBy.tr(),
|
|
|
|
|
itemCreationHeader[index].aNALYZEDBY?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedDate.tr(), itemCreationHeader[index].aPPROVEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.itemType.tr(), itemCreationHeader[index].iTEMTYPE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedDate.tr(),
|
|
|
|
|
itemCreationHeader[index].aPPROVEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.itemType.tr(),
|
|
|
|
|
itemCreationHeader[index].iTEMTYPE?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.relatedTo.tr(), itemCreationHeader[index].rELATEDTO?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.requestDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(itemCreationHeader[index].rEQUESTDATE.toString()), false)),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.relatedTo.tr(),
|
|
|
|
|
itemCreationHeader[index].rELATEDTO?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.requestDate.tr(),
|
|
|
|
|
DateUtil.formatDateToDate(
|
|
|
|
|
DateUtil.convertStringToDate(
|
|
|
|
|
itemCreationHeader[index].rEQUESTDATE.toString()),
|
|
|
|
|
false)),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.analyzedDate.tr(), itemCreationHeader[index].aNALYZEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.urgent.tr(), itemCreationHeader[index].uRGENTFLAGDISP?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.analyzedDate.tr(),
|
|
|
|
|
itemCreationHeader[index].aNALYZEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.urgent.tr(),
|
|
|
|
|
itemCreationHeader[index].uRGENTFLAGDISP?.toString() ??
|
|
|
|
|
""),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 18.height,
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 18.height,
|
|
|
|
|
itemCount: itemCreationHeader.length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//HR multiple type requests
|
|
|
|
|
Widget getEitNotificationsListView(List<GetEitCollectionNotificationBodyList> list) {
|
|
|
|
|
Widget getEitNotificationsListView(
|
|
|
|
|
List<GetEitCollectionNotificationBodyList> list) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
List<CollectionNotificationEit> dataList = list.isEmpty ? [] : (list[index].collectionNotification ?? []);
|
|
|
|
|
dataList = dataList.where((o) => o.displayFlag == "Y").toList();
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) {
|
|
|
|
|
List<CollectionNotificationEit> dataList =
|
|
|
|
|
list.isEmpty ? [] : (list[index].collectionNotification ?? []);
|
|
|
|
|
dataList = dataList
|
|
|
|
|
.where((CollectionNotificationEit o) => o.displayFlag == "Y")
|
|
|
|
|
.toList();
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (dataList.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
@ -308,7 +414,8 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: dataList.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) =>
|
|
|
|
|
ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
dataList[index].segmentPrompt,
|
|
|
|
|
dataList[index].segmentValueDsp,
|
|
|
|
@ -324,12 +431,13 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 12.height,
|
|
|
|
|
itemCount: list.length,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getPhonesNotificationBodyListWidget(List<GetPhonesNotificationBodyList> list) {
|
|
|
|
|
Widget getPhonesNotificationBodyListWidget(
|
|
|
|
|
List<GetPhonesNotificationBodyList> list) {
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (list.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
@ -339,7 +447,7 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: list.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
LocaleKeys.subject.tr(),
|
|
|
|
|
list[index].proposedPhoneNumber ?? "",
|
|
|
|
@ -359,8 +467,9 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailViewCol(LocaleKeys.subject.tr(), list[index].proposedPhoneNumber ?? ""),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.subject.tr(), list[index].proposedPhoneNumber ?? ""),
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 4.height,
|
|
|
|
|
itemCount: list.length),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
@ -375,7 +484,7 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: list.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
list[index].segmentPrompt,
|
|
|
|
|
list[index].segmentValueDsp,
|
|
|
|
@ -395,19 +504,24 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailViewCol(list[index].segmentPrompt!, list[index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => ItemDetailViewCol(
|
|
|
|
|
list[index].segmentPrompt!, list[index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 4.height,
|
|
|
|
|
itemCount: list.length),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getAbsenceCollectionNotificationBodyListWidget(List<GetAbsenceCollectionNotificationBodyList> list) {
|
|
|
|
|
Widget getAbsenceCollectionNotificationBodyListWidget(
|
|
|
|
|
List<GetAbsenceCollectionNotificationBodyList> list) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
List<CollectionNotificationAbsence> dataList = list.isEmpty ? [] : (list[index].collectionNotification ?? []);
|
|
|
|
|
dataList = dataList.where((o) => o.dISPLAYFLAG == "Y").toList();
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) {
|
|
|
|
|
List<CollectionNotificationAbsence> dataList =
|
|
|
|
|
list.isEmpty ? [] : (list[index].collectionNotification ?? []);
|
|
|
|
|
dataList = dataList
|
|
|
|
|
.where((CollectionNotificationAbsence o) => o.dISPLAYFLAG == "Y")
|
|
|
|
|
.toList();
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (dataList.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
@ -418,7 +532,8 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: dataList.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) =>
|
|
|
|
|
ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
dataList[index].sEGMENTPROMPT,
|
|
|
|
|
dataList[index].sEGMENTVALUEDSP,
|
|
|
|
@ -436,34 +551,50 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => dataList[index].dISPLAYFLAG == "Y" ? ItemDetailViewCol(dataList[index].sEGMENTPROMPT!, dataList[index].sEGMENTVALUEDSP!) : Container(),
|
|
|
|
|
separatorBuilder: (cxt, index) => dataList[index].dISPLAYFLAG == "Y" ? 4.height : 0.height,
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) =>
|
|
|
|
|
dataList[index].dISPLAYFLAG == "Y"
|
|
|
|
|
? ItemDetailViewCol(dataList[index].sEGMENTPROMPT!,
|
|
|
|
|
dataList[index].sEGMENTVALUEDSP!)
|
|
|
|
|
: Container(),
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) =>
|
|
|
|
|
dataList[index].dISPLAYFLAG == "Y" ? 4.height : 0.height,
|
|
|
|
|
itemCount: dataList.length)
|
|
|
|
|
.objectContainerView();
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 12.height,
|
|
|
|
|
itemCount: list.length,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getPRNotificationBodyListWidget(GetPrNotificationBodyList getPrNotificationBodyList) {
|
|
|
|
|
Widget getPRNotificationBodyListWidget(
|
|
|
|
|
GetPrNotificationBodyList getPrNotificationBodyList) {
|
|
|
|
|
return Column(
|
|
|
|
|
children: [
|
|
|
|
|
getPrNotificationBodyList.pINFORMATION != null ? getPrNotificationBodyList.pINFORMATION.toString().toText14(color: MyColors.textMixColor).objectContainerView() : Container(),
|
|
|
|
|
getPrNotificationBodyList.pINFORMATION != null
|
|
|
|
|
? getPrNotificationBodyList.pINFORMATION
|
|
|
|
|
.toString()
|
|
|
|
|
.toText14(color: MyColors.textMixColor)
|
|
|
|
|
.objectContainerView()
|
|
|
|
|
: Container(),
|
|
|
|
|
12.height,
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.to.tr(), workListData!.tOUSER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(),
|
|
|
|
|
workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
Column(
|
|
|
|
|
children: getPRHeaderValues(),
|
|
|
|
@ -474,12 +605,14 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getAddressNotificationBodyListWidget(List<GetAddressNotificationBodyList> getAddressNotificationBodyList) {
|
|
|
|
|
Widget getAddressNotificationBodyListWidget(
|
|
|
|
|
List<GetAddressNotificationBodyList> getAddressNotificationBodyList) {
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
try {
|
|
|
|
|
if (getAddressNotificationBodyList.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
getAddressNotificationBodyList.add(GetAddressNotificationBodyList(sEGMENTPROMPT: "--", sEGMENTVALUEDSP: "--"));
|
|
|
|
|
getAddressNotificationBodyList.add(GetAddressNotificationBodyList(
|
|
|
|
|
sEGMENTPROMPT: "--", sEGMENTVALUEDSP: "--"));
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
|
@ -487,11 +620,12 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: getAddressNotificationBodyList!.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
getAddressNotificationBodyList[index].sEGMENTPROMPT,
|
|
|
|
|
getAddressNotificationBodyList[index].sEGMENTVALUEDSP,
|
|
|
|
|
isNeedToShowEmptyDivider: (getAddressNotificationBodyList.length == index + 1)
|
|
|
|
|
isNeedToShowEmptyDivider:
|
|
|
|
|
(getAddressNotificationBodyList.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
@ -504,13 +638,14 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget getTerminationNotificationBodyListWidget(List<TerminationNotificationBody> getterminationNotificationBodyList) {
|
|
|
|
|
Widget getTerminationNotificationBodyListWidget(
|
|
|
|
|
List<TerminationNotificationBody> getterminationNotificationBodyList) {
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
try {
|
|
|
|
|
if (getterminationNotificationBodyList.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
getterminationNotificationBodyList.add(TerminationNotificationBody(sEGMENTPROMPT: "--", sEGMENTVALUEDSP: "--"));
|
|
|
|
|
getterminationNotificationBodyList.add(TerminationNotificationBody(
|
|
|
|
|
sEGMENTPROMPT: "--", sEGMENTVALUEDSP: "--"));
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
|
@ -518,11 +653,12 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: getterminationNotificationBodyList!.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
getterminationNotificationBodyList[index].sEGMENTPROMPT,
|
|
|
|
|
getterminationNotificationBodyList[index].sEGMENTVALUEDSP,
|
|
|
|
|
isNeedToShowEmptyDivider: (getterminationNotificationBodyList.length == index + 1)
|
|
|
|
|
isNeedToShowEmptyDivider:
|
|
|
|
|
(getterminationNotificationBodyList.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
@ -535,22 +671,25 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Widget> getPRHeaderValues() {
|
|
|
|
|
List<Widget> pRHeaders = [];
|
|
|
|
|
getPrNotificationBodyList!.pRHeader!.forEach((element) {
|
|
|
|
|
pRHeaders.add(ItemDetailGrid(ItemDetailViewCol(element.hDRATTRIBUTENAME!, element.hDRATTRIBUTEVALUE!), Container()));
|
|
|
|
|
getPrNotificationBodyList!.pRHeader!.forEach((PRHeader element) {
|
|
|
|
|
pRHeaders.add(ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
element.hDRATTRIBUTENAME!, element.hDRATTRIBUTEVALUE!),
|
|
|
|
|
Container()));
|
|
|
|
|
});
|
|
|
|
|
return pRHeaders;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getContactNotificationBodyListWidget(GetContactNotificationBodyList data) {
|
|
|
|
|
Widget getContactNotificationBodyListWidget(
|
|
|
|
|
GetContactNotificationBodyList data) {
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
try {
|
|
|
|
|
if (data.contactNotificationBody!.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
data.contactNotificationBody!.add(ContactNotificationBody(segmentPrompt: "--", segmentValueDsp: "--"));
|
|
|
|
|
data.contactNotificationBody!.add(ContactNotificationBody(
|
|
|
|
|
segmentPrompt: "--", segmentValueDsp: "--"));
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
|
@ -558,11 +697,12 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemCount: data.contactNotificationBody!.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
itemBuilder: (BuildContext context, int index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
data.contactNotificationBody![index].segmentPrompt,
|
|
|
|
|
data.contactNotificationBody![index].segmentValueDsp,
|
|
|
|
|
isNeedToShowEmptyDivider: (data.contactNotificationBody!.length == index + 1)
|
|
|
|
|
isNeedToShowEmptyDivider:
|
|
|
|
|
(data.contactNotificationBody!.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
@ -578,9 +718,194 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailViewCol(data.contactNotificationBody![index].segmentPrompt!, data.contactNotificationBody![index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemBuilder: (BuildContext cxt, int index) => ItemDetailViewCol(
|
|
|
|
|
data.contactNotificationBody![index].segmentPrompt!,
|
|
|
|
|
data.contactNotificationBody![index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (BuildContext cxt, int index) => 4.height,
|
|
|
|
|
itemCount: data.contactNotificationBody!.length),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getPaymentNotificationBodyListWidget(
|
|
|
|
|
GetPaymentNotificationBodyList? data) {
|
|
|
|
|
return Column(
|
|
|
|
|
children: [
|
|
|
|
|
12.height,
|
|
|
|
|
if (data!.paymentDetailsList!.isNotEmpty)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.paymentDetails.tr().toText14(color: MyColors.textMixColor),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.requestNumber.tr(), data.paymentDetailsList![0].requestNumber ?? ""),
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.requesterEmpNum.tr(),
|
|
|
|
|
data.paymentDetailsList![0].requesterEmployeeNumber ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.requestDate.tr(),
|
|
|
|
|
DateUtil.formatDateToDate(
|
|
|
|
|
DateUtil.convertStringToDate(data.paymentDetailsList![0].requestDate!), false) ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.requesterEmpName.tr(), data.paymentDetailsList![0].requesterEmployeeName ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.prepareEmpNum.tr(),
|
|
|
|
|
data.paymentDetailsList![0].prepareEmployeeNumber ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.requesterPositionName.tr(), data.paymentDetailsList![0].requesterPositionName ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.prepareEmpName.tr(),
|
|
|
|
|
data.paymentDetailsList![0].prepareEmployeeName ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.requesterPayrollName.tr(), data.paymentDetailsList![0].requesterPayrollName ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.preparePositionName.tr(),
|
|
|
|
|
data.paymentDetailsList![0].preparePositionName ?? ""),
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.requesterOperatingUnit.tr(),
|
|
|
|
|
data.paymentDetailsList![0].requesterOperatingUnits ?? "")
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
if (data!.paymentDetailsList!.isNotEmpty)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.general.tr().toText14(color: MyColors.textMixColor),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.payingORGName.tr(), data.paymentDetailsList![0].payingOrganizationName ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.requestAmount.tr(),
|
|
|
|
|
data.paymentDetailsList![0].requestAmount ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.paymentMethodName.tr(),
|
|
|
|
|
data.paymentDetailsList![0].paymentMethodName ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.currency.tr(), data.paymentDetailsList![0].currency ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.typeofPayment.tr(),
|
|
|
|
|
data.paymentDetailsList![0].typeOfPayment ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.paymentDetails.tr(), data.paymentDetailsList![0].paymentDetails ?? ""),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
|
|
|
|
|
if (data!.beneficieryList!.isNotEmpty)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.beneficiaryDetails.tr().toText14(color: MyColors.textMixColor),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.beneficiaryName.tr(), data.beneficieryList![0].beneficiaryName ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.idIqama.tr(),
|
|
|
|
|
data.beneficieryList![0].iqamaNumber ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.beneficiaryBankName.tr(),
|
|
|
|
|
data.beneficieryList![0] .beneficiaryBankName ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.sadadNumber.tr(), data.beneficieryList![0].saddadNumber ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.beneficiaryIBAN.tr(),
|
|
|
|
|
data.beneficieryList![0].beneficiaryIban ?? ""),
|
|
|
|
|
Container(),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
|
|
|
|
|
if (data!.purchaseOrdersList!.isNotEmpty && data.purchaseOrdersList![0].poAmount !=null)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.purchaseOrders.tr().toText14(color: MyColors.textMixColor),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.poNumber.tr(), data.purchaseOrdersList![0].poNumber ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.pOAmount.tr(),
|
|
|
|
|
data.purchaseOrdersList![0].poAmount.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplierName.tr(),
|
|
|
|
|
data.purchaseOrdersList![0].supplierName ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.approvalDate.tr(), data.purchaseOrdersList![0].poApprovalDate!=null ? DateUtil.formatDateToDate(
|
|
|
|
|
DateUtil.convertStringToDate(data.purchaseOrdersList![0].poApprovalDate), false) :"" ),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.requestNumber.tr(),
|
|
|
|
|
data.purchaseOrdersList![0].prNumber?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.versionStatus.tr(),
|
|
|
|
|
data.purchaseOrdersList![0].versionStatus?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplierNo.tr(),
|
|
|
|
|
data.purchaseOrdersList![0].supplierNumber?? ""),
|
|
|
|
|
Container(),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
|
|
|
|
|
if (data!.supplierInformationList!.isNotEmpty && data.supplierInformationList![0].supplierNumber !="")
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.supplierInfo.tr().toText14(color: MyColors.textMixColor),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.supplierNo.tr(), data.supplierInformationList![0].supplierNumber ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplierName.tr(),
|
|
|
|
|
data.supplierInformationList![0].supplierName.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplierAcNo.tr(),
|
|
|
|
|
data.supplierInformationList![0].supplierBankAccountNumber ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.supplierAcName.tr(), data.supplierInformationList![0].supplierBankAccountName ??
|
|
|
|
|
"" ),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.supplierCRNo.tr(),
|
|
|
|
|
data.supplierInformationList![0].crNumber?? ""),
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.supplierIBAN.tr(), data.supplierInformationList![0].supplierBankIban ??
|
|
|
|
|
"" ),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
//
|
|
|
|
|
if (data!.refundInvoiceList!.isNotEmpty && data.refundInvoiceList![0].patientNumber !="" )
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.patientRefundInvoice.tr().toText14(color: MyColors.textMixColor),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.patientNumber.tr(), data.refundInvoiceList![0].patientNumber?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.hospitalClinic.tr(),
|
|
|
|
|
data.refundInvoiceList![0].hospitalClinic.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.patientName.tr(),
|
|
|
|
|
data.refundInvoiceList![0].patientName ?? ""),
|
|
|
|
|
ItemDetailViewCol(
|
|
|
|
|
LocaleKeys.amount.tr(), data.refundInvoiceList![0].amount.toString() ??
|
|
|
|
|
"" ),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.invoiceDate.tr(),
|
|
|
|
|
DateUtil.formatDateToDate(
|
|
|
|
|
DateUtil.convertStringToDate( data.refundInvoiceList![0].invoicedDate), false)?? ""),
|
|
|
|
|
ItemDetailViewCol( LocaleKeys.refundInvoice.tr(), data.refundInvoiceList![0].invoiceNumber ??
|
|
|
|
|
"" ),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|