This commit is contained in:
2023-03-16 21:58:34 +00:00
parent 1cf637698e
commit 5561826960
177 changed files with 358 additions and 295 deletions
+2 -2
View File
@@ -711,7 +711,7 @@ var Bizgaze;
let date_end = `${date.getDate()} ${months[get_month]} ${date.getFullYear()}`;
let User_endTime = `${date_end} ${instance.Start_time}`;
let User_name = Unibase.Platform.Membership.Infos.Identity.currentUser.name;
let User_img = Unibase.Platform.Membership.Infos.Identity.currentUser.photoUrl;
let User_img = $("#bizgaze_body").find(".profile-Img-Update").find("img").attr("src");
MessageHelper.Instance().ShowAttendenceSuccess(User_name, User_img, response.message, User_endTime, instance.address);
$("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline .mr-4').addClass("d-none");
$("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline h3.font-14.font-weight-400').addClass("d-none");
@@ -774,7 +774,7 @@ var Bizgaze;
let date_end = `${Current_Time.getDate()} ${months[get_month]} ${Current_Time.getFullYear()}`;
let User_startTime = `${date_end} ${instance.End_time}`;
let User_name = Unibase.Platform.Membership.Infos.Identity.currentUser.name;
let User_img = Unibase.Platform.Membership.Infos.Identity.currentUser.photoUrl;
let User_img = $("#bizgaze_body").find(".profile-Img-Update").find("img").attr("src");
MessageHelper.Instance().ShowAttendenceSuccess(User_name, User_img, response.message, User_startTime, instance.address);
$("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline .mr-4').addClass("d-none");
$("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline h3.font-14.font-weight-400').addClass("d-none");
+17 -3
View File
@@ -73,16 +73,30 @@ var Bizgaze;
var leavefromdate = moment(fromdate).format("YYYY-MM-DD");
var leavetodate = moment(todate).format("YYYY-MM-DD");
var diffInDays = Math.abs(firstDate.diff(secondDate, 'days'));
var durationtype = Number($(".dropdown_durationtype").val());
instance.fileCacheHelper.loadJsFile("apps/hrms/managers/holidaymanager.js", function () {
Bizgaze.Apps.Hrms.Managers.HolidayManager.Instance().getHolidayDates(leavefromdate, leavetodate, instance.leavepolicyid).then(function (response) {
var data = response.result;
instance.currentlybooked = data + "(days)";
instance.currentlybookedcount = data;
if (durationtype == 1) {
var data = response.result;
instance.currentlybooked = data + "(days)";
instance.currentlybookedcount = data;
}
else {
instance.currentlybooked = 0.5 + "(days)";
instance.currentlybookedcount = 0.5;
}
instance.balanceleaves = instance.availablebalance - instance.currentlybookedcount;
instance.loadControl(instance.containerid, null);
});
});
}
durationtype() {
var EmployeeId = Number($(".txtAutoComplete_employeeid").val());
var LeaveTypeId = Number($(".ddl_cascading_leavetypeid").val());
if (EmployeeId != 0 && LeaveTypeId != 0) {
Bizgaze.Apps.Hrms.Controls.EmployeeLeaves.Instance().getEmployeeAvailableLeaves(EmployeeId, LeaveTypeId);
}
}
employeeleavesControlObj() {
let instance = this;
var EmployeeId = Number($(".txtAutoComplete_employeeid").val());