|
|
|
|
@ -684,42 +684,52 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
).paddingOnly(bottom: 12);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return PopupMenuButton(
|
|
|
|
|
child: DynamicTextFieldWidget(
|
|
|
|
|
(model.sEGMENTPROMPT ?? "") + (model.rEQUIREDFLAG == "Y" ? "*" : ""),
|
|
|
|
|
model.eSERVICESDV?.pVALUECOLUMNNAME ?? "",
|
|
|
|
|
isEnable: false,
|
|
|
|
|
isPopup: true,
|
|
|
|
|
isInputTypeNum: true,
|
|
|
|
|
isReadOnly: model.rEADONLY == "Y",
|
|
|
|
|
).paddingOnly(bottom: 12),
|
|
|
|
|
itemBuilder: (_) => <PopupMenuItem<int>>[
|
|
|
|
|
if (model.rEADONLY != "Y")
|
|
|
|
|
for (int i = 0; i < model.eSERVICESVS!.length; i++)
|
|
|
|
|
PopupMenuItem<int>(
|
|
|
|
|
value: i,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Text(model.eSERVICESVS![i].vALUECOLUMNNAME!),
|
|
|
|
|
const PopupMenuDivider(),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
onSelected: (int popipIndex) async {
|
|
|
|
|
ESERVICESDV eservicesdv = ESERVICESDV(
|
|
|
|
|
pIDCOLUMNNAME: model.eSERVICESVS![popipIndex].iDCOLUMNNAME,
|
|
|
|
|
pRETURNMSG: "null",
|
|
|
|
|
pRETURNSTATUS: "null", //getEitDffStructureList![popipIndex].dEFAULTVALUE,
|
|
|
|
|
pVALUECOLUMNNAME: model.eSERVICESVS![popipIndex].vALUECOLUMNNAME);
|
|
|
|
|
getEitDffStructureList![index].eSERVICESDV = eservicesdv;
|
|
|
|
|
setState(() {});
|
|
|
|
|
if (model.cHILDSEGMENTSVSSplited?.isNotEmpty ?? false) {
|
|
|
|
|
await calGetValueSetValues(model);
|
|
|
|
|
}
|
|
|
|
|
if (model.cHILDSEGMENTSDVSplited?.isNotEmpty ?? false) {
|
|
|
|
|
await getDefaultValues(model);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//condition need to be added here.
|
|
|
|
|
if(model.vSSRCHFLAG =='Y'){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
return PopupMenuButton(
|
|
|
|
|
child: DynamicTextFieldWidget(
|
|
|
|
|
(model.sEGMENTPROMPT ?? "") +
|
|
|
|
|
(model.rEQUIREDFLAG == "Y" ? "*" : ""),
|
|
|
|
|
model.eSERVICESDV?.pVALUECOLUMNNAME ?? "",
|
|
|
|
|
isEnable: false,
|
|
|
|
|
isPopup: true,
|
|
|
|
|
isInputTypeNum: true,
|
|
|
|
|
isReadOnly: model.rEADONLY == "Y",
|
|
|
|
|
).paddingOnly(bottom: 12),
|
|
|
|
|
itemBuilder: (_) =>
|
|
|
|
|
<PopupMenuItem<int>>[
|
|
|
|
|
if (model.rEADONLY != "Y")
|
|
|
|
|
for (int i = 0; i < model.eSERVICESVS!.length; i++)
|
|
|
|
|
PopupMenuItem<int>(
|
|
|
|
|
value: i,
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Text(model.eSERVICESVS![i].vALUECOLUMNNAME!),
|
|
|
|
|
const PopupMenuDivider(),
|
|
|
|
|
],
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
onSelected: (int popipIndex) async {
|
|
|
|
|
ESERVICESDV eservicesdv = ESERVICESDV(
|
|
|
|
|
pIDCOLUMNNAME: model.eSERVICESVS![popipIndex].iDCOLUMNNAME,
|
|
|
|
|
pRETURNMSG: "null",
|
|
|
|
|
pRETURNSTATUS: "null",
|
|
|
|
|
//getEitDffStructureList![popipIndex].dEFAULTVALUE,
|
|
|
|
|
pVALUECOLUMNNAME: model.eSERVICESVS![popipIndex]
|
|
|
|
|
.vALUECOLUMNNAME);
|
|
|
|
|
getEitDffStructureList![index].eSERVICESDV = eservicesdv;
|
|
|
|
|
setState(() {});
|
|
|
|
|
if (model.cHILDSEGMENTSVSSplited?.isNotEmpty ?? false) {
|
|
|
|
|
await calGetValueSetValues(model);
|
|
|
|
|
}
|
|
|
|
|
if (model.cHILDSEGMENTSDVSplited?.isNotEmpty ?? false) {
|
|
|
|
|
await getDefaultValues(model);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return const SizedBox();
|
|
|
|
|
|