|
|
|
@ -68,7 +68,7 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void validateTransaction() async {
|
|
|
|
|
try {
|
|
|
|
|
// try {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
List<Map<String, dynamic>> values = getEitDffStructureList!.map((e) {
|
|
|
|
|
String tempVar = e.eSERVICESDV?.pIDCOLUMNNAME ?? "";
|
|
|
|
@ -114,10 +114,10 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
await LeaveBalanceApiClient().cancelHrTransaction(submitEITTransactionList.pTRANSACTIONID!);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
|
}
|
|
|
|
|
// } catch (ex) {
|
|
|
|
|
// Utils.hideLoading(context);
|
|
|
|
|
// Utils.handleException(ex, context, null);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String dESCFLEXCONTEXTCODE = "";
|
|
|
|
@ -175,7 +175,7 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future getDefaultValues(GetEITDFFStructureList structureList) async {
|
|
|
|
|
try {
|
|
|
|
|
// try {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
for (int i = 0; i < (structureList.cHILDSEGMENTSDVSplited?.length ?? 0); i++) {
|
|
|
|
|
String segmentId = structureList.cHILDSEGMENTSDVSplited![i];
|
|
|
|
@ -221,10 +221,10 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
await Future.delayed(const Duration(seconds: 1));
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
setState(() {});
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
|
}
|
|
|
|
|
// } catch (ex) {
|
|
|
|
|
// Utils.hideLoading(context);
|
|
|
|
|
// Utils.handleException(ex, context, null);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// List<Map<String, dynamic>> calGetValueSetValuesIonicLogic(GetEITDFFStructureList structureElement) {
|
|
|
|
@ -398,7 +398,7 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
|
|
|
|
|
String? text = data?.pVALUECOLUMNNAME;
|
|
|
|
|
String? val = data?.pIDCOLUMNNAME;
|
|
|
|
|
if ((val ?? "").isEmpty && parentsList[i].IsRequired == "REQUIRED") {
|
|
|
|
|
if ((val ?? "").isEmpty && parentsList[i].isRequired == "REQUIRED") {
|
|
|
|
|
//alert(parentsList[i].Name +" Is required");
|
|
|
|
|
return [];
|
|
|
|
|
} else {}
|
|
|
|
@ -420,7 +420,8 @@ class _DynamicInputScreenState extends State<DynamicInputScreen> {
|
|
|
|
|
|
|
|
|
|
String? text = data?.pVALUECOLUMNNAME;
|
|
|
|
|
String? val = data?.pIDCOLUMNNAME;
|
|
|
|
|
if ((val ?? "").isEmpty && parentsList[i].IsRequired == "REQUIRED") {
|
|
|
|
|
///
|
|
|
|
|
if ((val ?? "").isEmpty && parentsList[i].isRequired == "REQUIRED") {
|
|
|
|
|
//alert(parentsList[i].Name +" Is required");
|
|
|
|
|
return [];
|
|
|
|
|
} else {}
|
|
|
|
|