@ -13,7 +13,8 @@ import 'package:mohem_flutter_app/models/get_item_creation_ntf_body_list_model.d
import ' package:mohem_flutter_app/models/get_mo_notification_body_list_model.dart ' ;
import ' package:mohem_flutter_app/models/get_mo_notification_body_list_model.dart ' ;
import ' package:mohem_flutter_app/models/get_po_notification_body_list_model.dart ' ;
import ' package:mohem_flutter_app/models/get_po_notification_body_list_model.dart ' ;
import ' package:mohem_flutter_app/models/get_pr_information_list.dart ' ;
import ' package:mohem_flutter_app/models/get_pr_information_list.dart ' ;
import ' package:mohem_flutter_app/models/get_pr_notification_body_list_model.dart ' as get_pr_notification_body_list_model ;
import ' package:mohem_flutter_app/models/get_pr_notification_body_list_model.dart '
as get_pr_notification_body_list_model ;
import ' package:mohem_flutter_app/ui/work_list/item_history_screen.dart ' ;
import ' package:mohem_flutter_app/ui/work_list/item_history_screen.dart ' ;
import ' package:mohem_flutter_app/widgets/button/default_button.dart ' ;
import ' package:mohem_flutter_app/widgets/button/default_button.dart ' ;
import ' package:mohem_flutter_app/widgets/item_detail_view_widget.dart ' ;
import ' package:mohem_flutter_app/widgets/item_detail_view_widget.dart ' ;
@ -51,250 +52,465 @@ class RequestFragment extends StatelessWidget {
Widget poLinesDataView ( BuildContext context ) {
Widget poLinesDataView ( BuildContext context ) {
return ExpandableNotifier (
return ExpandableNotifier (
child: ListView . separated (
child: ListView . separated (
shrinkWrap: true ,
shrinkWrap: true ,
physics: const NeverScrollableScrollPhysics ( ) ,
physics: const NeverScrollableScrollPhysics ( ) ,
itemBuilder: ( cxt , index ) = > ExpandablePanel (
itemBuilder:
header: poLinesList [ index ] . iTEMDESCRIPTION ! . toText14 ( ) ,
( cxt , index ) = >
collapsed: Column (
ExpandablePanel (
crossAxisAlignment: CrossAxisAlignment . start ,
header: poLinesList [ index ] . iTEMDESCRIPTION ! . toText14 ( ) ,
mainAxisSize: MainAxisSize . min ,
collapsed: Column (
children: [
crossAxisAlignment: CrossAxisAlignment . start ,
ItemDetailGrid (
mainAxisSize: MainAxisSize . min ,
ItemDetailViewCol ( LocaleKeys . code . tr ( ) , poLinesList [ index ] . iTEMCODE ? ? " " ) ,
children: [
ItemDetailViewCol ( LocaleKeys . mfg . tr ( ) , poLinesList [ index ] . mFG ? ? " " ) ,
ItemDetailGrid (
) ,
ItemDetailViewCol (
ItemDetailGrid (
LocaleKeys . code . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . lineType . tr ( ) , poLinesList [ index ] . lINETYPE ? . toString ( ) ? ? " " ) ,
poLinesList [ index ] . iTEMCODE ? ? " " ,
ItemDetailViewCol ( LocaleKeys . unit . tr ( ) , poLinesList [ index ] . uOM ? ? " " ) ,
) ,
) ,
ItemDetailViewCol (
ItemDetailGrid (
LocaleKeys . mfg . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . price . tr ( ) , poLinesList [ index ] . uNITPRICE ? . toString ( ) ? ? " " ) ,
poLinesList [ index ] . mFG ? ? " " ,
ItemDetailViewCol ( LocaleKeys . lineAmount . tr ( ) , poLinesList [ index ] . lINEAMOUNT ? . toString ( ) ? ? " " ) ,
) ,
) ,
) ,
ItemDetailGrid (
ItemDetailGrid (
ItemDetailViewCol ( LocaleKeys . quantity . tr ( ) , poLinesList [ index ] . qUANTITY ? . toString ( ) ? ? " " ) ,
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . lineDiscount . tr ( ) , poLinesList [ index ] . lINEDISCPERCENTAGE ? . toString ( ) ? ? " " ) ,
LocaleKeys . lineType . tr ( ) ,
) ,
poLinesList [ index ] . lINETYPE ? . toString ( ) ? ? " " ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( LocaleKeys . needByDate . tr ( ) , poLinesList [ index ] . nEEDBYDATE ? ? " " ) ,
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . promisedDate . tr ( ) , poLinesList [ index ] . pROMISEDDATE ? ? " " ) ,
LocaleKeys . unit . tr ( ) ,
) ,
poLinesList [ index ] . uOM ? ? " " ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( LocaleKeys . deliverToLocation . tr ( ) , poLinesList [ index ] . dELIVERTOLOCATION ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . requisitionNumber . tr ( ) , poLinesList [ index ] . pRNUM ? ? " " ) ,
ItemDetailGrid (
) ,
ItemDetailViewCol (
ItemDetailGrid (
LocaleKeys . price . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . requester . tr ( ) , poLinesList [ index ] . rEQUESTOR ? ? " " ) ,
poLinesList [ index ] . uNITPRICE ? . toString ( ) ? ? " " ,
Container ( ) ,
) ,
) ,
ItemDetailViewCol (
12. height ,
LocaleKeys . lineAmount . tr ( ) ,
Row (
poLinesList [ index ] . lINEAMOUNT ? . toString ( ) ? ? " " ,
children: [
) ,
DefaultButton (
) ,
LocaleKeys . itemHistory . tr ( ) ,
ItemDetailGrid (
( ) {
ItemDetailViewCol (
LocaleKeys . quantity . tr ( ) ,
poLinesList [ index ] . qUANTITY ? . toString ( ) ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . lineDiscount . tr ( ) ,
poLinesList [ index ] . lINEDISCPERCENTAGE ? . toString ( ) ? ?
" " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . needByDate . tr ( ) ,
poLinesList [ index ] . nEEDBYDATE ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . promisedDate . tr ( ) ,
poLinesList [ index ] . pROMISEDDATE ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . deliverToLocation . tr ( ) ,
poLinesList [ index ] . dELIVERTOLOCATION ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . requisitionNumber . tr ( ) ,
poLinesList [ index ] . pRNUM ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . requester . tr ( ) ,
poLinesList [ index ] . rEQUESTOR ? ? " " ,
) ,
Container ( ) ,
) ,
12. height ,
Row (
children: [
DefaultButton ( LocaleKeys . itemHistory . tr ( ) , ( ) {
Navigator . pushNamed (
Navigator . pushNamed (
cxt ,
cxt ,
AppRoutes . itemHistory ,
AppRoutes . itemHistory ,
arguments: ItemHistoryScreenParams ( title: LocaleKeys . itemHistory . tr ( ) , isMO: false , pItemId: poLinesList [ index ] . iTEMID ) ,
arguments: ItemHistoryScreenParams (
title: LocaleKeys . itemHistory . tr ( ) ,
isMO: false ,
pItemId: poLinesList [ index ] . iTEMID ,
) ,
) ;
) ;
} ,
} , fontSize: 13 ) . expanded ,
fontSize: 13 ,
12. width ,
) . expanded ,
DefaultButton ( LocaleKeys . quotationAnalysis . tr ( ) , ( ) {
12. width ,
DefaultButton (
LocaleKeys . quotationAnalysis . tr ( ) ,
( ) {
Navigator . pushNamed (
Navigator . pushNamed (
cxt ,
cxt ,
AppRoutes . itemHistory ,
AppRoutes . itemHistory ,
arguments: ItemHistoryScreenParams (
arguments: ItemHistoryScreenParams (
isItemHistory: false , isMO: false , title: LocaleKeys . quotationAnalysis . tr ( ) , pItemId: poLinesList [ index ] . iTEMID , pPoHeaderId: poLinesList [ index ] . pOHEADERID ) ,
isItemHistory: false ,
isMO: false ,
title: LocaleKeys . quotationAnalysis . tr ( ) ,
pItemId: poLinesList [ index ] . iTEMID ,
pPoHeaderId: poLinesList [ index ] . pOHEADERID ,
) ,
) ;
} , fontSize: 13 ) . expanded ,
12. width ,
DefaultButton ( " PR Details " , ( ) {
getPRDetails (
context ,
poLinesList [ index ] . pOLINEID . toString ( ) ,
) ;
) ;
} ,
} , fontSize: 13 ) . expanded ,
fontSize: 13 ,
] ,
) . expanded ,
) ,
12. width ,
] ,
DefaultButton (
) ,
" PR Details " ,
expanded: const SizedBox ( ) ,
( ) {
) . objectContainerView ( ) ,
getPRDetails ( context , poLinesList [ index ] . pOLINEID . toString ( ) ) ;
separatorBuilder: ( cxt , index ) = > 12. height ,
} ,
itemCount: poLinesList . length ,
fontSize: 13 ,
) ,
) . expanded ,
] ,
)
] ,
) ,
expanded: const SizedBox ( ) ,
) . objectContainerView ( ) ,
separatorBuilder: ( cxt , index ) = > 12. height ,
itemCount: poLinesList . length ) ,
) ;
) ;
}
}
Widget prLinesDataView ( ) {
Widget prLinesDataView ( ) {
return ExpandableNotifier (
return ExpandableNotifier (
child: ListView . separated (
child: ListView . separated (
shrinkWrap: true ,
shrinkWrap: true ,
physics: const NeverScrollableScrollPhysics ( ) ,
physics: const NeverScrollableScrollPhysics ( ) ,
itemBuilder: ( cxt , index ) = > ExpandablePanel (
itemBuilder:
header: prLinesList [ index ] . dESCRIPTION . toString ( ) . toText14 ( color: MyColors . textMixColor ) ,
( cxt , index ) = >
collapsed: Column (
ExpandablePanel (
children: [
header: prLinesList [ index ] . dESCRIPTION . toString ( ) . toText14 (
ItemDetailGrid (
color: MyColors . textMixColor ,
ItemDetailViewCol ( " Cost Center " , prLinesList [ index ] . cOSTCENTER ? ? " " ) ,
) ,
ItemDetailViewCol ( " Code " , prLinesList [ index ] . iTEMCODE ? ? " " ) ,
collapsed: Column (
) ,
children: [
ItemDetailGrid (
ItemDetailGrid (
ItemDetailViewCol ( " Unit " , prLinesList [ index ] . uOM ? ? " " ) ,
ItemDetailViewCol (
ItemDetailViewCol ( " Price (SAR) " , prLinesList [ index ] . uNITPRICE . toString ( ) ? ? " " ) ,
LocaleKeys . costCenter . tr ( ) ,
) ,
prLinesList [ index ] . cOSTCENTER ? ? " " ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( " Amount (SAR) " , prLinesList [ index ] . lINEAMOUNT . toString ( ) ? ? " " ) ,
ItemDetailViewCol (
ItemDetailViewCol ( " Quantity " , prLinesList [ index ] . qUANTITY . toString ( ) ? ? " " ) ,
LocaleKeys . code . tr ( ) ,
) ,
prLinesList [ index ] . iTEMCODE ? ? " " ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( " AMU (Last 3 months) " , prLinesList [ index ] . iTEMAMU . toString ( ) ? ? " " ) ,
) ,
Container ( ) ,
ItemDetailGrid (
isItLast: true ,
ItemDetailViewCol (
) ,
LocaleKeys . unit . tr ( ) ,
/ / ItemDetailGrid (
prLinesList [ index ] . uOM ? ? " " ,
/ / ItemDetailViewCol ( getPrNotificationBodyList . pRHeader ! [ 1 ] . hDRATTRIBUTENAME ! , getPrNotificationBodyList . pRHeader ! [ 1 ] . hDRATTRIBUTEVALUE ? ? " " ) ,
) ,
/ / Container ( ) ,
ItemDetailViewCol (
/ / isItLast: true ,
LocaleKeys . priceSAR . tr ( ) ,
/ / ) ,
prLinesList [ index ] . uNITPRICE . toString ( ) ? ? " " ,
] ,
) ,
) ,
) ,
expanded: const SizedBox ( ) ,
ItemDetailGrid (
) . objectContainerView ( ) ,
ItemDetailViewCol (
separatorBuilder: ( cxt , index ) = > 12. height ,
LocaleKeys . amountSAR . tr ( ) ,
itemCount: prLinesList . length ) ,
prLinesList [ index ] . lINEAMOUNT . toString ( ) ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . quantity . tr ( ) ,
prLinesList [ index ] . qUANTITY . toString ( ) ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . destination_type . tr ( ) ,
prLinesList [ index ] . dESTINATIONTYPE ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . destination_organization_name . tr ( ) ,
prLinesList [ index ] . dESTINATIONORGANIZATIONNAME ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . amuLastThreeMonths . tr ( ) ,
prLinesList [ index ] . iTEMAMU . toString ( ) ? ? " " ,
) ,
Container ( ) ,
isItLast: true ,
) ,
/ / ItemDetailGrid (
/ / ItemDetailViewCol ( getPrNotificationBodyList . pRHeader ! [ 1 ] . hDRATTRIBUTENAME ! , getPrNotificationBodyList . pRHeader ! [ 1 ] . hDRATTRIBUTEVALUE ? ? " " ) ,
/ / Container ( ) ,
/ / isItLast: true ,
/ / ) ,
] ,
) ,
expanded: const SizedBox ( ) ,
) . objectContainerView ( ) ,
separatorBuilder: ( cxt , index ) = > 12. height ,
itemCount: prLinesList . length ,
) ,
) ;
) ;
}
}
Widget moNotificationDataView ( ) {
Widget moNotificationDataView ( ) {
return ListView . separated (
return ListView . separated (
shrinkWrap: true ,
shrinkWrap: true ,
physics: const NeverScrollableScrollPhysics ( ) ,
physics: const NeverScrollableScrollPhysics ( ) ,
itemBuilder: ( cxt , index ) = > Column (
itemBuilder:
crossAxisAlignment: CrossAxisAlignment . start ,
( cxt , index ) = > Column (
mainAxisSize: MainAxisSize . min ,
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
mainAxisSize: MainAxisSize . min ,
ItemDetailGrid (
children: [
ItemDetailViewCol ( LocaleKeys . code . tr ( ) , moNotificationBodyList [ index ] . iTEMCODE ? ? " " ) ,
ItemDetailGrid (
ItemDetailViewCol ( LocaleKeys . unit . tr ( ) , moNotificationBodyList [ index ] . uOM ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . code . tr ( ) ,
ItemDetailGrid (
moNotificationBodyList [ index ] . iTEMCODE ? ? " " ,
ItemDetailViewCol ( LocaleKeys . quantity . tr ( ) , moNotificationBodyList [ index ] . qUANTITY ? . toString ( ) ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . dateRequired . tr ( ) , moNotificationBodyList [ index ] . dATEREQUIRED ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . unit . tr ( ) ,
ItemDetailGrid (
moNotificationBodyList [ index ] . uOM ? ? " " ,
ItemDetailViewCol ( LocaleKeys . lineStatus . tr ( ) , moNotificationBodyList [ index ] . lINESTATUS ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . statusDate . tr ( ) , moNotificationBodyList [ index ] . sTATUSDATE ? ? " " ) ,
) ,
) ,
ItemDetailGrid (
ItemDetailGrid (
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . transactionType . tr ( ) , moNotificationBodyList [ index ] . tRANSACTIONTYPENAME ? ? " " ) ,
LocaleKeys . quantity . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . operatingUnit . tr ( ) , moNotificationBodyList [ index ] . oPERATINGUNIT ? ? " " ) ,
moNotificationBodyList [ index ] . qUANTITY ? . toString ( ) ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . organizationCode . tr ( ) , moNotificationBodyList [ index ] . oRGANIZATIONCODE ? ? " " ) ,
LocaleKeys . dateRequired . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . organization . tr ( ) , moNotificationBodyList [ index ] . oRGANIZATIONNAME ? ? " " ) ,
moNotificationBodyList [ index ] . dATEREQUIRED ? ? " " ,
) ,
) ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( LocaleKeys . fromSubInventory . tr ( ) , moNotificationBodyList [ index ] . fROMSUBINVENTORY ? ? " " ) ,
ItemDetailGrid (
ItemDetailViewCol ( LocaleKeys . fromLocator . tr ( ) , moNotificationBodyList [ index ] . fROMLOCATOR ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . lineStatus . tr ( ) ,
ItemDetailGrid (
moNotificationBodyList [ index ] . lINESTATUS ? ? " " ,
ItemDetailViewCol ( LocaleKeys . toSubInventory . tr ( ) , moNotificationBodyList [ index ] . tOSUBINVENTORY ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . toLocator . tr ( ) , moNotificationBodyList [ index ] . tOLOCATOR ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . statusDate . tr ( ) ,
ItemDetailGrid ( ItemDetailViewCol ( LocaleKeys . shipToLocator . tr ( ) , moNotificationBodyList [ index ] . sHIPTOLOCATION ? ? " " ) , Container ( ) ) ,
moNotificationBodyList [ index ] . sTATUSDATE ? ? " " ,
12. height ,
) ,
DefaultButton ( LocaleKeys . itemHistory . tr ( ) , ( ) {
) ,
Navigator . pushNamed (
ItemDetailGrid (
cxt ,
ItemDetailViewCol (
AppRoutes . itemHistory ,
LocaleKeys . transactionType . tr ( ) ,
arguments: ItemHistoryScreenParams ( title: LocaleKeys . itemHistory . tr ( ) , pItemId: moNotificationBodyList [ index ] . iTEMID , pOrgId: moNotificationBodyList [ index ] . oRGID ) ,
moNotificationBodyList [ index ] . tRANSACTIONTYPENAME ? ? " " ,
) ;
) ,
} )
ItemDetailViewCol (
] ,
LocaleKeys . operatingUnit . tr ( ) ,
) . objectContainerView ( title: moNotificationBodyList [ index ] . dESCRIPTION ? ? " " ) ,
moNotificationBodyList [ index ] . oPERATINGUNIT ? ? " " ,
separatorBuilder: ( cxt , index ) = > 12. height ,
) ,
itemCount: moNotificationBodyList . length ) ;
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . organizationCode . tr ( ) ,
moNotificationBodyList [ index ] . oRGANIZATIONCODE ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . organization . tr ( ) ,
moNotificationBodyList [ index ] . oRGANIZATIONNAME ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . fromSubInventory . tr ( ) ,
moNotificationBodyList [ index ] . fROMSUBINVENTORY ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . fromLocator . tr ( ) ,
moNotificationBodyList [ index ] . fROMLOCATOR ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . toSubInventory . tr ( ) ,
moNotificationBodyList [ index ] . tOSUBINVENTORY ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . toLocator . tr ( ) ,
moNotificationBodyList [ index ] . tOLOCATOR ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . shipToLocator . tr ( ) ,
moNotificationBodyList [ index ] . sHIPTOLOCATION ? ? " " ,
) ,
Container ( ) ,
) ,
12. height ,
DefaultButton ( LocaleKeys . itemHistory . tr ( ) , ( ) {
Navigator . pushNamed (
cxt ,
AppRoutes . itemHistory ,
arguments: ItemHistoryScreenParams (
title: LocaleKeys . itemHistory . tr ( ) ,
pItemId: moNotificationBodyList [ index ] . iTEMID ,
pOrgId: moNotificationBodyList [ index ] . oRGID ,
) ,
) ;
} ) ,
] ,
) . objectContainerView (
title: moNotificationBodyList [ index ] . dESCRIPTION ? ? " " ,
) ,
separatorBuilder: ( cxt , index ) = > 12. height ,
itemCount: moNotificationBodyList . length ,
) ;
}
}
Widget itemCreationLinesView ( ) {
Widget itemCreationLinesView ( ) {
return ListView . separated (
return ListView . separated (
shrinkWrap: true ,
shrinkWrap: true ,
physics: const NeverScrollableScrollPhysics ( ) ,
physics: const NeverScrollableScrollPhysics ( ) ,
itemBuilder: ( cxt , index ) = > Column (
itemBuilder:
crossAxisAlignment: CrossAxisAlignment . start ,
( cxt , index ) = > Column (
mainAxisSize: MainAxisSize . min ,
crossAxisAlignment: CrossAxisAlignment . start ,
children: [
mainAxisSize: MainAxisSize . min ,
ItemDetailGrid (
children: [
ItemDetailViewCol ( LocaleKeys . productName . tr ( ) , itemCreationLines [ index ] . pRODUCTNAME ? ? " " ) ,
ItemDetailGrid (
ItemDetailViewCol ( LocaleKeys . productDescription . tr ( ) , itemCreationLines [ index ] . pRODUCTDESCRIPTION ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . productName . tr ( ) ,
ItemDetailGrid (
itemCreationLines [ index ] . pRODUCTNAME ? ? " " ,
ItemDetailViewCol ( LocaleKeys . unitPrice . tr ( ) , itemCreationLines [ index ] . uNITPRICE ? . toString ( ) ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . manufacturerName . tr ( ) , itemCreationLines [ index ] . uSERMANUFACTURERNAME ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . productDescription . tr ( ) ,
ItemDetailGrid (
itemCreationLines [ index ] . pRODUCTDESCRIPTION ? ? " " ,
ItemDetailViewCol ( LocaleKeys . manufacturerPartName . tr ( ) , itemCreationLines [ index ] . uSERMFGPARTNUM ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . supplierName . tr ( ) , itemCreationLines [ index ] . sUPPLIERNAME ? ? " " ) ,
) ,
) ,
ItemDetailGrid (
ItemDetailGrid (
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . supplierContact . tr ( ) , itemCreationLines [ index ] . sUPPLIERCONTACT ? ? " " ) ,
LocaleKeys . unitPrice . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . chargeToPatient . tr ( ) , itemCreationLines [ index ] . cHARGETOPATIENT ? ? " " ) ,
itemCreationLines [ index ] . uNITPRICE ? . toString ( ) ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . justification . tr ( ) , itemCreationLines [ index ] . jUSTIFICATION ? ? " " ) ,
LocaleKeys . manufacturerName . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . itemCode . tr ( ) , itemCreationLines [ index ] . iTEMCODE ? ? " " ) ,
itemCreationLines [ index ] . uSERMANUFACTURERNAME ? ? " " ,
) ,
) ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( LocaleKeys . itemDescription . tr ( ) , itemCreationLines [ index ] . iTEMDESCRIPTION ? ? " " ) ,
ItemDetailGrid (
ItemDetailViewCol ( LocaleKeys . groupCode . tr ( ) , itemCreationLines [ index ] . iTEMGROUPCODE ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . manufacturerPartName . tr ( ) ,
ItemDetailGrid (
itemCreationLines [ index ] . uSERMFGPARTNUM ? ? " " ,
ItemDetailViewCol ( LocaleKeys . groupDescription . tr ( ) , itemCreationLines [ index ] . iTEMGROUP ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . subgroupCode . tr ( ) , itemCreationLines [ index ] . iTEMSUBGROUPCODE ? ? " " ) ,
ItemDetailViewCol (
) ,
LocaleKeys . supplierName . tr ( ) ,
ItemDetailGrid (
itemCreationLines [ index ] . sUPPLIERNAME ? ? " " ,
ItemDetailViewCol ( LocaleKeys . subgroupDescription . tr ( ) , itemCreationLines [ index ] . iTEMSUBGROUP ? ? " " ) ,
) ,
ItemDetailViewCol ( LocaleKeys . primaryUOM . tr ( ) , itemCreationLines [ index ] . pRIMARYUOM ? ? " " ) ,
) ,
) ,
ItemDetailGrid (
ItemDetailGrid (
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . manufacturerName . tr ( ) , itemCreationLines [ index ] . sTANDARDMANUFACTURERNAME ? ? " " ) ,
LocaleKeys . supplierContact . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . manufacturerPartName . tr ( ) , itemCreationLines [ index ] . sTANDARDMFGPARTNUM ? ? " " ) ,
itemCreationLines [ index ] . sUPPLIERCONTACT ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
ItemDetailViewCol ( LocaleKeys . templateName . tr ( ) , itemCreationLines [ index ] . tEMPLATENAME ? ? " " ) ,
LocaleKeys . chargeToPatient . tr ( ) ,
ItemDetailViewCol ( LocaleKeys . itemCreationStatus . tr ( ) , itemCreationLines [ index ] . iTEMCREATIONSTATUS ? ? " " ) ,
itemCreationLines [ index ] . cHARGETOPATIENT ? ? " " ,
) ,
) ,
ItemDetailGrid (
) ,
ItemDetailViewCol ( LocaleKeys . standardizationApprovalStatus . tr ( ) , itemCreationLines [ index ] . sTANDARDSTATUS ? ? " " ) ,
ItemDetailGrid (
ItemDetailViewCol ( LocaleKeys . standardizationApprovalRejectionReason . tr ( ) , itemCreationLines [ index ] . sTANDARDREJECTREASON ? ? " " ) ,
ItemDetailViewCol (
isItLast: true ,
LocaleKeys . justification . tr ( ) ,
) ,
itemCreationLines [ index ] . jUSTIFICATION ? ? " " ,
] ,
) ,
) . objectContainerView ( title: itemCreationLines [ index ] . iTEMDESCRIPTION ! ) ,
ItemDetailViewCol (
separatorBuilder: ( cxt , index ) = > 12. height ,
LocaleKeys . itemCode . tr ( ) ,
itemCount: itemCreationLines . length ) ;
itemCreationLines [ index ] . iTEMCODE ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . itemDescription . tr ( ) ,
itemCreationLines [ index ] . iTEMDESCRIPTION ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . groupCode . tr ( ) ,
itemCreationLines [ index ] . iTEMGROUPCODE ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . groupDescription . tr ( ) ,
itemCreationLines [ index ] . iTEMGROUP ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . subgroupCode . tr ( ) ,
itemCreationLines [ index ] . iTEMSUBGROUPCODE ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . subgroupDescription . tr ( ) ,
itemCreationLines [ index ] . iTEMSUBGROUP ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . primaryUOM . tr ( ) ,
itemCreationLines [ index ] . pRIMARYUOM ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . manufacturerName . tr ( ) ,
itemCreationLines [ index ] . sTANDARDMANUFACTURERNAME ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . manufacturerPartName . tr ( ) ,
itemCreationLines [ index ] . sTANDARDMFGPARTNUM ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . templateName . tr ( ) ,
itemCreationLines [ index ] . tEMPLATENAME ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . itemCreationStatus . tr ( ) ,
itemCreationLines [ index ] . iTEMCREATIONSTATUS ? ? " " ,
) ,
) ,
ItemDetailGrid (
ItemDetailViewCol (
LocaleKeys . standardizationApprovalStatus . tr ( ) ,
itemCreationLines [ index ] . sTANDARDSTATUS ? ? " " ,
) ,
ItemDetailViewCol (
LocaleKeys . standardizationApprovalRejectionReason . tr ( ) ,
itemCreationLines [ index ] . sTANDARDREJECTREASON ? ? " " ,
) ,
isItLast: true ,
) ,
] ,
) . objectContainerView (
title: itemCreationLines [ index ] . iTEMDESCRIPTION ! ,
) ,
separatorBuilder: ( cxt , index ) = > 12. height ,
itemCount: itemCreationLines . length ,
) ;
}
}
void getPRDetails ( BuildContext context , String poLineID ) async {
void getPRDetails ( BuildContext context , String poLineID ) async {
try {
try {
Utils . showLoading ( context ) ;
Utils . showLoading ( context ) ;
GetPRInformationList ? getPRInformationList = GetPRInformationList ( ) ;
GetPRInformationList ? getPRInformationList = GetPRInformationList ( ) ;
getPRInformationList = await WorkListApiClient ( ) . getPRDetailsForPO ( poLineID ) ;
getPRInformationList = await WorkListApiClient ( ) . getPRDetailsForPO (
poLineID ,
) ;
Utils . hideLoading ( context ) ;
Utils . hideLoading ( context ) ;
Navigator . pushNamed (
Navigator . pushNamed (
context ,
context ,
AppRoutes . itemHistory ,
AppRoutes . itemHistory ,
arguments: ItemHistoryScreenParams (
arguments: ItemHistoryScreenParams (
isItemHistory: false , isMO: false , isPRInfo: true , getPRInformationList: getPRInformationList , title: " PR Details " , pItemId: 0 , pPoHeaderId: 0 , pOLineID: poLineID ) ,
isItemHistory: false ,
isMO: false ,
isPRInfo: true ,
getPRInformationList: getPRInformationList ,
title: " PR Details " ,
pItemId: 0 ,
pPoHeaderId: 0 ,
pOLineID: poLineID ,
) ,
) ;
) ;
} catch ( ex ) {
} catch ( ex ) {
Utils . hideLoading ( context ) ;
Utils . hideLoading ( context ) ;