|
|
|
@ -42,21 +42,38 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
this.getContactNotificationBodyList,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
double itemHeight = 0;
|
|
|
|
|
double itemWidth = 0;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
var size = MediaQuery.of(context).size;
|
|
|
|
|
itemHeight = (size.height - kToolbarHeight - 24) / 9;
|
|
|
|
|
itemWidth = size.width / 2;
|
|
|
|
|
|
|
|
|
|
List<Widget> uiList = [
|
|
|
|
|
if ((workListData?.iTEMTYPE ?? "") == "INVMOA")
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailView(LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.to.tr(), workListData!.tOUSER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.subject.tr(), workListData!.sUBJECT ?? ""),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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 ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.responder.tr(), workListData!.rESPONDER ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.subject.tr(), workListData!.sUBJECT ?? ""),
|
|
|
|
|
Container(),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
if (getStampMsNotifications?.isNotEmpty ?? false) getStampMsNotificationsListView(getStampMsNotifications ?? []).objectContainerView(title: "Stamp Notifications"),
|
|
|
|
@ -89,32 +106,68 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailView(LocaleKeys.description.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.from.tr(), workListData!.fROMUSER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.to.tr(), workListData!.tOUSER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.sent.tr(), workListData!.bEGINDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.closed.tr(), workListData!.eNDDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.id.tr(), workListData!.nOTIFICATIONID?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.supplier.tr(), poHeaderList[index].vENDORNAME ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.site.tr(), poHeaderList[index].vENDORSITECODE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.buyer.tr(), poHeaderList[index].bUYER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.preparer.tr(), poHeaderList[index].pREPARER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.creationDate.tr(), poHeaderList[index].cREATIONDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.shipToLocation.tr(), poHeaderList[index].sHIPTOLOCATIONNAME ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.quotationNumber.tr(), poHeaderList[index].qUOTATIONNUMBER ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.quotationDate.tr(), poHeaderList[index].qUOTATIONDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.paymentTerms.tr(), poHeaderList[index].pAYMENTTERMS ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.currency.tr(), poHeaderList[index].cURRENCYNAME ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.grossAmount.tr(), poHeaderList[index].gROSSAMOUNT?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.discountAmount.tr(), poHeaderList[index].dISCOUNTAMOUNT?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.customDuty.tr(), poHeaderList[index].cUSTOMDUTY?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.shipHandle.tr(), poHeaderList[index].sHIPHANDLE?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.otherCharges.tr(), poHeaderList[index].oTHERCHARGES?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.totalPOAmountWithVAT.tr(), poHeaderList[index].qUOTATIONDATE ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.totalPOAmountInWords.tr(), poHeaderList[index].tOTPOAMTWORD ?? ""),
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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 ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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 ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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 ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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 ?? ""),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(title: LocaleKeys.info_detail.tr()),
|
|
|
|
|
12.height,
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.otherCharges.tr(), poHeaderList[index].oTHERCHARGES?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.totalPOAmountWithVAT.tr(), poHeaderList[index].qUOTATIONDATE ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.totalPOAmountInWords.tr(), poHeaderList[index].tOTPOAMTWORD ?? ""),
|
|
|
|
|
Container(),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(title: LocaleKeys.amount_detail.tr()),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 1.divider,
|
|
|
|
|
),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemCount: poHeaderList.length);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -135,19 +188,35 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailView(LocaleKeys.employeeNumber.tr(), list[index].eMPLOYEENUMBER.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.assignmentNumber.tr(), list[index].aSSIGNMENTNUMBER.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.employeeName.tr(), list[index].eMPLOYEENAME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.scheduleDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(list[index].sCHEDULEDATE.toString()), false)),
|
|
|
|
|
ItemDetailView(LocaleKeys.shiftType.tr(), list[index].sHTTYPEDESC.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.shift.tr(), list[index].sHTNAME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.breakText.tr(), list[index].bREAKNAME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.actualSwipeStart.tr(), list[index].sHTACTUALSTARTTIME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.actualSwipeEnd.tr(), list[index].sHTACTUALENDTIME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.approvedSwipeStart.tr(), list[index].aPPROVEDSTARTTIME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.approvedSwipeStartReason.tr(), list[index].aPPROVEDSTARTREASON.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.approvedSwipeEnd.tr(), ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.approvedSwipeEndReason.tr(), list[index].aPPROVEDENDREASONDESC.toString()),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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)),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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()),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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.approvedSwipeEnd.tr(), ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.approvedSwipeEndReason.tr(), list[index].aPPROVEDENDREASONDESC.toString()),
|
|
|
|
|
Container(),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
separatorBuilder: (cxt, index) => 1.divider.paddingOnly(top: 8, bottom: 8),
|
|
|
|
@ -161,10 +230,15 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailView(LocaleKeys.employeeNumber.tr(), list[index].eMPLOYEENUMBER.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.assignmentNumber.tr(), list[index].aSSIGNMENTNUMBER.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.name.tr(), list[index].eMPLOYEENAME.toString()),
|
|
|
|
|
ItemDetailView(LocaleKeys.scheduleDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(list[index].sCHEDULEDATE.toString()), false)),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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)),
|
|
|
|
|
isItLast: true,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
separatorBuilder: (cxt, index) => 1.divider.paddingOnly(top: 8, bottom: 8),
|
|
|
|
@ -178,16 +252,26 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
itemBuilder: (cxt, index) => Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
ItemDetailView(LocaleKeys.operatingUnit.tr(), itemCreationHeader[index].oPERATINGUNIT?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.category.tr(), itemCreationHeader[index].cATEGORY?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.requester.tr(), itemCreationHeader[index].rEQUESTER?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.analyzedBy.tr(), itemCreationHeader[index].aNALYZEDBY?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.approvedDate.tr(), itemCreationHeader[index].aPPROVEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.itemType.tr(), itemCreationHeader[index].iTEMTYPE?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.relatedTo.tr(), itemCreationHeader[index].rELATEDTO?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.requestDate.tr(), DateUtil.formatDateToDate(DateUtil.convertStringToDate(itemCreationHeader[index].rEQUESTDATE.toString()), false)),
|
|
|
|
|
ItemDetailView(LocaleKeys.analyzedDate.tr(), itemCreationHeader[index].aNALYZEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailView(LocaleKeys.urgent.tr(), itemCreationHeader[index].uRGENTFLAGDISP?.toString() ?? ""),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
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)),
|
|
|
|
|
),
|
|
|
|
|
ItemDetailGrid(
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.analyzedDate.tr(), itemCreationHeader[index].aNALYZEDDATE?.toString() ?? ""),
|
|
|
|
|
ItemDetailViewCol(LocaleKeys.urgent.tr(), itemCreationHeader[index].uRGENTFLAGDISP?.toString() ?? ""),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
).objectContainerView(),
|
|
|
|
|
separatorBuilder: (cxt, index) => 18.height,
|
|
|
|
@ -201,13 +285,31 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
List<CollectionNotificationEit> dataList = list.isEmpty ? [] : (list[index].collectionNotification ?? []);
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => dataList[index].displayFlag == "Y" ? ItemDetailView(dataList[index].segmentPrompt!, dataList[index].segmentValueDsp!) : Container(),
|
|
|
|
|
separatorBuilder: (cxt, index) => dataList[index].displayFlag == "Y" ? 4.height : 0.height,
|
|
|
|
|
itemCount: dataList.length)
|
|
|
|
|
.objectContainerView();
|
|
|
|
|
dataList = dataList.where((o) => o.displayFlag == "Y").toList();
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (dataList.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
dataList.add(new CollectionNotificationEit());
|
|
|
|
|
}
|
|
|
|
|
return GridView.builder(
|
|
|
|
|
itemCount: dataList.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
dataList[index].segmentPrompt,
|
|
|
|
|
dataList[index].segmentValueDsp,
|
|
|
|
|
isNeedToShowEmptyDivider: (dataList.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
|
: false,
|
|
|
|
|
),
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
childAspectRatio: (itemWidth / itemHeight),
|
|
|
|
|
),
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
},
|
|
|
|
|
separatorBuilder: (cxt, index) => 12.height,
|
|
|
|
|
itemCount: list.length,
|
|
|
|
@ -215,21 +317,75 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getPhonesNotificationBodyListWidget(List<GetPhonesNotificationBodyList> list) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailView(LocaleKeys.subject.tr(), list[index].proposedPhoneNumber ?? ""),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemCount: list.length);
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (list.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
list.add(new GetPhonesNotificationBodyList());
|
|
|
|
|
}
|
|
|
|
|
return GridView.builder(
|
|
|
|
|
itemCount: list.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
LocaleKeys.subject.tr(),
|
|
|
|
|
list[index].proposedPhoneNumber ?? "",
|
|
|
|
|
isNeedToShowEmptyDivider: (list.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
|
: false,
|
|
|
|
|
),
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
childAspectRatio: (itemWidth / itemHeight),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
return Container(
|
|
|
|
|
color: Colors.yellow,
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailViewCol(LocaleKeys.subject.tr(), list[index].proposedPhoneNumber ?? ""),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemCount: list.length),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getBasicDetNtfBodyListWidget(List<GetBasicDetNtfBodyList> list) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailView(list[index].segmentPrompt!, list[index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemCount: list.length);
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (list.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
list.add(new GetBasicDetNtfBodyList());
|
|
|
|
|
}
|
|
|
|
|
return GridView.builder(
|
|
|
|
|
itemCount: list.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
list[index].segmentPrompt,
|
|
|
|
|
list[index].segmentValueDsp,
|
|
|
|
|
isNeedToShowEmptyDivider: (list.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
|
: false,
|
|
|
|
|
),
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
childAspectRatio: (itemWidth / itemHeight),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
return Container(
|
|
|
|
|
color: Colors.pink,
|
|
|
|
|
child: ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailViewCol(list[index].segmentPrompt!, list[index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemCount: list.length),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getAbsenceCollectionNotificationBodyListWidget(List<GetAbsenceCollectionNotificationBodyList> list) {
|
|
|
|
@ -238,10 +394,36 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) {
|
|
|
|
|
List<CollectionNotificationAbsence> dataList = list.isEmpty ? [] : (list[index].collectionNotification ?? []);
|
|
|
|
|
dataList = dataList.where((o) => o.dISPLAYFLAG == "Y").toList();
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
if (dataList.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
dataList.add(new CollectionNotificationAbsence());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return GridView.builder(
|
|
|
|
|
itemCount: dataList.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
dataList[index].sEGMENTPROMPT,
|
|
|
|
|
dataList[index].sEGMENTVALUEDSP,
|
|
|
|
|
isNeedToShowEmptyDivider: (dataList.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
|
: false,
|
|
|
|
|
),
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
childAspectRatio: (itemWidth / itemHeight),
|
|
|
|
|
),
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => dataList[index].dISPLAYFLAG == "Y" ? ItemDetailView(dataList[index].sEGMENTPROMPT!, dataList[index].sEGMENTVALUEDSP!) : Container(),
|
|
|
|
|
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,
|
|
|
|
|
itemCount: dataList.length)
|
|
|
|
|
.objectContainerView();
|
|
|
|
@ -252,11 +434,41 @@ class InfoFragment extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget getContactNotificationBodyListWidget(GetContactNotificationBodyList data) {
|
|
|
|
|
return ListView.separated(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (cxt, index) => ItemDetailView(data.contactNotificationBody![index].segmentPrompt!, data.contactNotificationBody![index].segmentValueDsp!),
|
|
|
|
|
separatorBuilder: (cxt, index) => 4.height,
|
|
|
|
|
itemCount: data.contactNotificationBody!.length);
|
|
|
|
|
bool isOdd = false;
|
|
|
|
|
try {
|
|
|
|
|
if (data.contactNotificationBody!.length % 2 != 0) {
|
|
|
|
|
isOdd = true;
|
|
|
|
|
data.contactNotificationBody!.add(new ContactNotificationBody());
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {}
|
|
|
|
|
|
|
|
|
|
return GridView.builder(
|
|
|
|
|
itemCount: data.contactNotificationBody!.length,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) => ItemDetailViewGridItem(
|
|
|
|
|
index,
|
|
|
|
|
data.contactNotificationBody![index].segmentPrompt,
|
|
|
|
|
data.contactNotificationBody![index].segmentValueDsp,
|
|
|
|
|
isNeedToShowEmptyDivider: (data.contactNotificationBody!.length == index + 1)
|
|
|
|
|
? isOdd
|
|
|
|
|
? true
|
|
|
|
|
: false
|
|
|
|
|
: false,
|
|
|
|
|
),
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
childAspectRatio: (itemWidth / itemHeight),
|
|
|
|
|
),
|
|
|
|
|
).objectContainerView();
|
|
|
|
|
return Container(
|
|
|
|
|
color: Colors.orange,
|
|
|
|
|
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,
|
|
|
|
|
itemCount: data.contactNotificationBody!.length),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|