|
|
|
|
@ -92,7 +92,7 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void validateAbsenceTransaction() async {
|
|
|
|
|
try {
|
|
|
|
|
// try {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
Map<String, String?> dffDataMap = {};
|
|
|
|
|
for (int i = 1; i <= 20; i++) {
|
|
|
|
|
@ -100,7 +100,7 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
|
for (int dffIndex = 0; dffIndex < getabsenceDffStructureList.length; dffIndex++) {
|
|
|
|
|
if ("ATTRIBUTE$i" == getabsenceDffStructureList[dffIndex].aPPLICATIONCOLUMNNAME) {
|
|
|
|
|
if (getabsenceDffStructureList[dffIndex].fORMATTYPE == "X") {
|
|
|
|
|
dffDataMap["P_ATTRIBUTE$i"] = Utils.formatDate(getabsenceDffStructureList[dffIndex].eSERVICESDV!.pIDCOLUMNNAME!);
|
|
|
|
|
dffDataMap["P_ATTRIBUTE$i"] = getabsenceDffStructureList[dffIndex].eSERVICESDV!.pIDCOLUMNNAME != null ? Utils.formatDate(getabsenceDffStructureList[dffIndex].eSERVICESDV!.pIDCOLUMNNAME!) : "";
|
|
|
|
|
} else {
|
|
|
|
|
dffDataMap["P_ATTRIBUTE$i"] = getabsenceDffStructureList[dffIndex].eSERVICESDV?.pIDCOLUMNNAME;
|
|
|
|
|
}
|
|
|
|
|
@ -129,10 +129,10 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
|
// Utils.showLoading(context);
|
|
|
|
|
await LeaveBalanceApiClient().cancelHrTransaction(submit.pTRANSACTIONID!);
|
|
|
|
|
// Utils.hideLoading(context);
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
|
}
|
|
|
|
|
// } catch (ex) {
|
|
|
|
|
// Utils.hideLoading(context);
|
|
|
|
|
// Utils.handleException(ex, context, null);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|