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