398 lines
23 KiB
JavaScript
398 lines
23 KiB
JavaScript
$(document).ready(function () {
|
|
$("#newCreateGroup").click(function () {
|
|
window.location.href = `#showmodal=/AdminNew/Company/RollCall/Grouping?workshopSettingId=${workshopSettingId}&handler=CreateGroup`;
|
|
});
|
|
|
|
$(document).on('click', ".openAction", function () {
|
|
var id = $(this).data('index');
|
|
|
|
if (window.matchMedia('(max-width: 767px)').matches) {
|
|
$(this).next().find(".operations-btns").slideToggle(500);
|
|
$(".operations-btns").not($(this).next().find(".operations-btns")).slideUp(500);
|
|
}
|
|
|
|
loadEmployeeAjax(id);
|
|
$(`.openAction`).removeClass('active');
|
|
$(this).addClass('active');
|
|
});
|
|
|
|
loadDataAjax();
|
|
});
|
|
|
|
function loadDataAjax() {
|
|
var html = "";
|
|
var htmlEmployee = "";
|
|
var index = 0;
|
|
$.ajax({
|
|
async: false,
|
|
contentType: 'charset=utf-8',
|
|
dataType: 'json',
|
|
type: 'GET',
|
|
url: loadWorkshopSettingsDataAjax,
|
|
data: { 'workshopId': wpId },
|
|
headers: { "RequestVerificationToken": `${antiForgeryToken}` },
|
|
success: function (response) {
|
|
var responseData = response.data;
|
|
|
|
if (responseData.groupSettings.length > 0) {
|
|
responseData.groupSettings.forEach(function(item, indexItem) {
|
|
index = index + 1;
|
|
|
|
html += `
|
|
<div class="p-2 rounded-3 d-flex align-items-center justify-content-between w-100 btnPosition openAction ${
|
|
indexItem === 0 ? 'active' : ''}" data-index="${item.id}">
|
|
|
|
<div class="width1">
|
|
<span class="d-none" id="groupSettingsId">${item.id}</span>
|
|
<span class="row-index1">${index}</span>
|
|
</div>
|
|
|
|
<div class="title-group1 width2">
|
|
<p class="m-0 d-block d-md-none">نام گروه:</p>
|
|
<p class="m-0">${item.groupName}</p>
|
|
</div>
|
|
<div class="title-group1 text-center d-none d-md-block width3">`;
|
|
|
|
|
|
if (item.workshopShiftStatus === 0) {
|
|
item.rollCallWorkshopShifts.forEach(function (itemShifts) {
|
|
html += `
|
|
<p class="m-0 time-set-title">
|
|
<span style="width: 46px;display: inline-block;">${itemShifts.startTime}</span>
|
|
الی
|
|
<span style="width: 46px;display: inline-block;">${itemShifts.endTime}</span>
|
|
</p>
|
|
`;
|
|
});
|
|
} else {
|
|
html += `<p class="m-0 time-set-title">`;
|
|
if (item.irregularShift.workshopIrregularShifts === 1) {
|
|
html += `<span>12-24</span>`;
|
|
} else if (item.irregularShift.workshopIrregularShifts === 2) {
|
|
html += `<span>24-24</span>`;
|
|
} else if (item.irregularShift.workshopIrregularShifts === 3) {
|
|
html += `<span>12-36</span>`;
|
|
} else if (item.irregularShift.workshopIrregularShifts === 4) {
|
|
html += `<span>24-48</span>`;
|
|
}
|
|
|
|
html += `</p>`;
|
|
}
|
|
|
|
html += `</div>
|
|
<div class="text-end d-block width5">
|
|
<button type="button" class="btn-add btn-group-operations" onclick="AddToGroupModal(${responseData.id}, ${item.id})" style="padding: 0 6px;font-weight: 600;color: #65a30d;">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<circle cx="9" cy="9" r="4" fill="#65a30d"/>
|
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.864 18.8128C14.8851 18.9183 14.9742 19 15.0819 19H16.8672C17.4687 19 17.9213 18.471 17.7202 17.9042C17.3002 16.7199 16.2951 15 14 15C13.8744 15 13.7527 15.0052 13.6347 15.0151C13.2591 15.0467 13.1629 15.5087 13.415 15.7889C14.3198 16.7941 14.6998 17.9918 14.864 18.8128ZM13.5276 17.8332C13.7713 18.4159 13.2918 19 12.6602 19H11.1328C10.5313 19 10.0787 18.4711 10.2798 17.9042C10.4699 17.3683 10.7798 16.7226 11.2749 16.1763C11.5534 15.869 12.022 15.8468 12.3326 16.1214C12.9049 16.6274 13.2808 17.2429 13.5276 17.8332Z" fill="#65a30d"/>
|
|
<path d="M9 15C12.5715 15 13.5919 17.5512 13.8834 19.0089C13.9917 19.5504 13.5523 20 13 20H5C4.44772 20 4.00829 19.5504 4.11659 19.0089C4.4081 17.5512 5.42846 15 9 15Z" fill="#65a30d"/>
|
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4821 12.5882C13.4183 11.6795 14 10.4077 14 9C14 8.29933 13.8559 7.63233 13.5957 7.02702C13.7279 7.0092 13.8629 7 14 7C15.6569 7 17 8.34315 17 10C17 11.6569 15.6569 13 14 13C13.4462 13 12.9274 12.8499 12.4821 12.5882ZM11.7119 11.9404C12.5039 11.2095 13 10.1627 13 9C13 8.40307 12.8692 7.83668 12.6348 7.32791C11.6643 7.82475 11 8.8348 11 10C11 10.7399 11.2679 11.4173 11.7119 11.9404Z" fill="#65a30d"/>
|
|
<path d="M19 3V7" stroke="#65a30d" stroke-width="2" stroke-linecap="round"/>
|
|
<path d="M21 5L17 5" stroke="#65a30d" stroke-width="2" stroke-linecap="round"/>
|
|
</svg>
|
|
افزودن پرسنل
|
|
</button>
|
|
<button onclick="editGroup(${item.id})" class="btn-edit position-relative btn-group-operations" style="margin: 2px 0;padding: 0;font-weight: 600;font-size: 12px;">
|
|
<svg width="24" height="24" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12.6027 6.838L5.85304 13.5876C5.84201 13.5987 5.83107 13.6096 5.8202 13.6204C5.65773 13.7825 5.5139 13.9261 5.41254 14.1051C5.31117 14.2841 5.2621 14.4813 5.20667 14.704C5.20296 14.7189 5.19923 14.7339 5.19545 14.7491L4.5813 17.2057C4.57908 17.2145 4.57686 17.2234 4.57462 17.2323C4.53537 17.389 4.49347 17.5564 4.47972 17.6969C4.46458 17.8516 4.46811 18.1127 4.67752 18.3221L5.03035 17.9693L4.67752 18.3221C4.88693 18.5315 5.14799 18.535 5.30272 18.5199C5.44326 18.5062 5.6106 18.4643 5.76728 18.425C5.77622 18.4228 5.78512 18.4205 5.79398 18.4183L8.25057 17.8042C8.26569 17.8004 8.28069 17.7967 8.29558 17.793C8.51832 17.7375 8.71549 17.6885 8.89452 17.5871C9.07356 17.4857 9.21708 17.3419 9.37921 17.1794C9.39005 17.1686 9.40097 17.1576 9.412 17.1466L16.1616 10.397L16.1849 10.3737C16.4983 10.0603 16.7684 9.79025 16.9556 9.54492C17.1562 9.282 17.3081 8.98958 17.3081 8.6292C17.3081 8.26759 17.1541 7.97384 16.9522 7.71001C16.7633 7.46303 16.4905 7.1903 16.1731 6.87292L16.1499 6.84972L16.1267 6.82652C15.8093 6.5091 15.5366 6.23634 15.2896 6.04738C15.0258 5.84553 14.732 5.69156 14.3704 5.69156C14.01 5.69156 13.7176 5.84345 13.4547 6.04405C13.2094 6.23123 12.9393 6.5013 12.6259 6.81474L12.6027 6.838Z" stroke-width="1.5" stroke="#4DA9D1"></path>
|
|
<path d="M11.9939 7.20397L14.8457 5.30273L17.6976 8.15459L15.7964 11.0064L11.9939 7.20397Z" fill="#4DA9D1"></path>
|
|
</svg>
|
|
ویرایش
|
|
</button>
|
|
<button type="button" class="btn-delete2 btn-group-operations" onclick="removeGroupConfirm(${item.id})" style="padding: 0;font-weight: 600;font-size: 12px;">
|
|
<svg width="24" height="24" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M8.26733 12.4805L8.26733 10.036" stroke="#F63D3D" stroke-linecap="round" />
|
|
<path d="M12.2865 12.4805L12.2865 10.036" stroke="#F63D3D" stroke-linecap="round" />
|
|
<path d="M3.04224 5.96094H17.5115V5.96094C16.7544 5.96094 16.3758 5.96094 16.0699 6.06212C15.4692 6.26083 14.9979 6.73211 14.7992 7.33286C14.698 7.63875 14.698 8.0173 14.698 8.7744V12.5535C14.698 14.4391 14.698 15.382 14.1122 15.9677C13.5264 16.5535 12.5836 16.5535 10.698 16.5535H9.8557C7.97008 16.5535 7.02727 16.5535 6.44148 15.9677C5.8557 15.382 5.8557 14.4391 5.8557 12.5535V8.7744C5.8557 8.0173 5.8557 7.63875 5.75452 7.33286C5.55581 6.73211 5.08453 6.26083 4.48378 6.06212C4.17789 5.96094 3.79934 5.96094 3.04224 5.96094V5.96094Z" stroke="#F63D3D" stroke-linecap="round" />
|
|
<path d="M8.26727 3.51423C8.26727 3.51423 8.66919 2.69922 10.2769 2.69922C11.8846 2.69922 12.2865 3.51403 12.2865 3.51403" stroke="#F63D3D" stroke-linecap="round" />
|
|
</svg>
|
|
حذف
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="operation-div w-100 d-block d-md-none" style="margin: -5px 0 0 0;">
|
|
<div class="operations-btns px-2" id="loadEmployeeItemsMobile_${item.id}">
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
if (indexItem === 0) {
|
|
loadEmployeeAjax(item.id);
|
|
}
|
|
});
|
|
|
|
$('#ajaxDataMain').html(html);
|
|
} else {
|
|
var htmlEmpty = `<div class="text-center bg-white card py-5 d-flex align-items-center justify-content-center">
|
|
<div class="">
|
|
<img src="/assetsclient/images/empty.png" alt="" class="img-fluid" />
|
|
<h5>اطلاعاتی وجود ندارد.</h5>
|
|
</div>
|
|
</div>`;
|
|
|
|
$('#ajaxDataMain').html(htmlEmpty);
|
|
$('#loadAccountItems').html(htmlEmpty);
|
|
}
|
|
},
|
|
failure: function (response) {
|
|
console.log(5, response);
|
|
}
|
|
});
|
|
}
|
|
|
|
function loadEmployeeAjax(groupSettingId) {
|
|
isShiftChangedGlobal = false;
|
|
var htmlEmployee = "";
|
|
$(`#loadEmployeeItemsMobile_${groupSettingId}`).html('');
|
|
|
|
var indexEmployee = 1;
|
|
$.ajax({
|
|
async: false,
|
|
contentType: 'charset=utf-8',
|
|
dataType: 'json',
|
|
type: 'GET',
|
|
url: loadEmployeesGroupAjax,
|
|
data: { 'groupId': groupSettingId },
|
|
headers: { "RequestVerificationToken": `${antiForgeryToken}` },
|
|
success: function (response) {
|
|
var responseDataEmployee = response.data;
|
|
|
|
if (response.success) {
|
|
if (responseDataEmployee.length > 0) {
|
|
|
|
htmlEmployee += `
|
|
<div>
|
|
<div class="col-12 col-md-6 col-lg-3 mt-2 mb-2">
|
|
<input type="text" class="form-control" id="searchEmployee" placeholder="جستجو ..." />
|
|
</div>
|
|
</div>`;
|
|
|
|
responseDataEmployee.forEach(function (itemEmployee) {
|
|
if (itemEmployee.isShiftChanged === true) {
|
|
isShiftChangedGlobal = true;
|
|
}
|
|
|
|
htmlEmployee += `<div></div>
|
|
<div class="my-1 Rtable-row align-items-center position-relative itemResultEmployee">
|
|
<div class="Rtable-cell width1 widthMobile1">
|
|
<div class="Rtable-cell--content">
|
|
<span class="d-flex justify-content-center row-index2">
|
|
${indexEmployee++}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="Rtable-cell width2 widthMobile2">
|
|
<div class="Rtable-cell--heading d-none">نام پرسنل:</div>
|
|
<div class="Rtable-cell--content">
|
|
<div class="d-flex d-md-none">نام پرسنل:</div>
|
|
<div class="itemEmployeeName">${itemEmployee.name} </div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="Rtable-cell width3 widthMobile2 text-center d-none d-md-block">
|
|
<div class="Rtable-cell--heading d-none">ساعت کاری:</div>
|
|
<div class="Rtable-cell--content d-flex text-center">
|
|
<div class="d-flex d-md-none mx-1">ساعت کاری: </div>
|
|
<div class="w-100">`;
|
|
|
|
if (itemEmployee.workshopShiftStatus === 0) {
|
|
itemEmployee.rollCallWorkshopShifts.forEach(function (itemEmployeeShifts) {
|
|
htmlEmployee += `
|
|
<p class="m-0 time-set-title">
|
|
<span style="width: 46px;display: inline-block;text-align: center;">${itemEmployeeShifts.startTime}</span>
|
|
الی
|
|
<span style="width: 46px;display: inline-block;text-align: center;">${itemEmployeeShifts.endTime}</span>
|
|
</p>`;
|
|
});
|
|
} else {
|
|
htmlEmployee += `<p class="m-0 time-set-title">`;
|
|
if (itemEmployee.irregularShift.workshopIrregularShifts === 1) {
|
|
htmlEmployee += `<span>12-24</span>`;
|
|
} else if (itemEmployee.irregularShift.workshopIrregularShifts === 2) {
|
|
htmlEmployee += `<span>24-24</span>`;
|
|
} else if (itemEmployee.irregularShift.workshopIrregularShifts === 3) {
|
|
htmlEmployee += `<span>12-36</span>`;
|
|
} else if (itemEmployee.irregularShift.workshopIrregularShifts === 4) {
|
|
htmlEmployee += `<span>24-48</span>`;
|
|
}
|
|
|
|
htmlEmployee += `</p>`;
|
|
}
|
|
|
|
htmlEmployee += `</div></div>
|
|
</div>
|
|
|
|
<div class="d-flex align-items-center justify-content-end gap-1 width5 widthMobile3">
|
|
<button onclick="editEmployee(${itemEmployee.employeeId}, ${groupSettingId})" class="btn-edit position-relative">
|
|
<svg width="24" height="24" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12.6027 6.838L5.85304 13.5876C5.84201 13.5987 5.83107 13.6096 5.8202 13.6204C5.65773 13.7825 5.5139 13.9261 5.41254 14.1051C5.31117 14.2841 5.2621 14.4813 5.20667 14.704C5.20296 14.7189 5.19923 14.7339 5.19545 14.7491L4.5813 17.2057C4.57908 17.2145 4.57686 17.2234 4.57462 17.2323C4.53537 17.389 4.49347 17.5564 4.47972 17.6969C4.46458 17.8516 4.46811 18.1127 4.67752 18.3221L5.03035 17.9693L4.67752 18.3221C4.88693 18.5315 5.14799 18.535 5.30272 18.5199C5.44326 18.5062 5.6106 18.4643 5.76728 18.425C5.77622 18.4228 5.78512 18.4205 5.79398 18.4183L8.25057 17.8042C8.26569 17.8004 8.28069 17.7967 8.29558 17.793C8.51832 17.7375 8.71549 17.6885 8.89452 17.5871C9.07356 17.4857 9.21708 17.3419 9.37921 17.1794C9.39005 17.1686 9.40097 17.1576 9.412 17.1466L16.1616 10.397L16.1849 10.3737C16.4983 10.0603 16.7684 9.79025 16.9556 9.54492C17.1562 9.282 17.3081 8.98958 17.3081 8.6292C17.3081 8.26759 17.1541 7.97384 16.9522 7.71001C16.7633 7.46303 16.4905 7.1903 16.1731 6.87292L16.1499 6.84972L16.1267 6.82652C15.8093 6.5091 15.5366 6.23634 15.2896 6.04738C15.0258 5.84553 14.732 5.69156 14.3704 5.69156C14.01 5.69156 13.7176 5.84345 13.4547 6.04405C13.2094 6.23123 12.9393 6.5013 12.6259 6.81474L12.6027 6.838Z" stroke-width="1.5" stroke="#4DA9D1"></path>
|
|
<path d="M11.9939 7.20397L14.8457 5.30273L17.6976 8.15459L15.7964 11.0064L11.9939 7.20397Z" fill="#4DA9D1"></path>
|
|
</svg>
|
|
</button>
|
|
<button href="" class="btn-delete2" onclick="removeEmployeeFromGroup(${itemEmployee.employeeId}, ${groupSettingId})">
|
|
<svg width="24" height="24" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M8.26733 12.4805L8.26733 10.036" stroke="#F63D3D" stroke-linecap="round" />
|
|
<path d="M12.2865 12.4805L12.2865 10.036" stroke="#F63D3D" stroke-linecap="round" />
|
|
<path d="M3.04224 5.96094H17.5115V5.96094C16.7544 5.96094 16.3758 5.96094 16.0699 6.06212C15.4692 6.26083 14.9979 6.73211 14.7992 7.33286C14.698 7.63875 14.698 8.0173 14.698 8.7744V12.5535C14.698 14.4391 14.698 15.382 14.1122 15.9677C13.5264 16.5535 12.5836 16.5535 10.698 16.5535H9.8557C7.97008 16.5535 7.02727 16.5535 6.44148 15.9677C5.8557 15.382 5.8557 14.4391 5.8557 12.5535V8.7744C5.8557 8.0173 5.8557 7.63875 5.75452 7.33286C5.55581 6.73211 5.08453 6.26083 4.48378 6.06212C4.17789 5.96094 3.79934 5.96094 3.04224 5.96094V5.96094Z" stroke="#F63D3D" stroke-linecap="round" />
|
|
<path d="M8.26727 3.51423C8.26727 3.51423 8.66919 2.69922 10.2769 2.69922C11.8846 2.69922 12.2865 3.51403 12.2865 3.51403" stroke="#F63D3D" stroke-linecap="round" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
</div>`;
|
|
});
|
|
|
|
$('#loadAccountItems').html(htmlEmployee);
|
|
$(`#loadEmployeeItemsMobile_${groupSettingId}`).append(htmlEmployee);
|
|
|
|
} else {
|
|
isShiftChangedGlobal = false;
|
|
var htmlEmpty = `<div class="text-center bg-white card py-5 d-flex align-items-center justify-content-center">
|
|
<div class="">
|
|
<img src="/assetsclient/images/empty.png" alt="" class="img-fluid" />
|
|
<h5>اطلاعاتی وجود ندارد.</h5>
|
|
</div>
|
|
</div>`;
|
|
|
|
$('#loadAccountItems').html(htmlEmpty);
|
|
$(`#loadEmployeeItemsMobile_${groupSettingId}`).html(htmlEmpty);
|
|
}
|
|
}
|
|
},
|
|
failure: function (response) {
|
|
console.log(5, response);
|
|
}
|
|
});
|
|
}
|
|
|
|
$(document).on('keyup', '#searchEmployee', function () {
|
|
var value = $(this).val().toLowerCase();
|
|
var indexEmployee = 1;
|
|
$('.itemResultEmployee').filter(function () {
|
|
var employeeFName = $(this).find('.itemEmployeeName').text().toLowerCase();
|
|
|
|
if (employeeFName.includes(value)) {
|
|
$(this).show();
|
|
$(this).find('.row-index2').text(indexEmployee++);
|
|
} else {
|
|
$(this).hide();
|
|
}
|
|
});
|
|
});
|
|
|
|
function removeGroupConfirm(group_id) {
|
|
swal.fire({
|
|
title: "اخطار",
|
|
text: "آیا برای حذف این گروه مطمئن هستید؟",
|
|
icon: "warning",
|
|
showCancelButton: true,
|
|
confirmButtonText: "بله",
|
|
cancelButtonText: "خیر",
|
|
confirmButtonColor: '#84cc16',
|
|
reverseButtons: true
|
|
}).then((result) => {
|
|
if (result.isConfirmed) {
|
|
|
|
$.ajax({
|
|
async: false,
|
|
type: 'POST',
|
|
url: removeGroupAjax,
|
|
data: { 'groupId': Number(group_id) },
|
|
headers: { "RequestVerificationToken": `${antiForgeryToken}` },
|
|
success: function (response) {
|
|
if (response.success) {
|
|
$('.alert-success-msg').show();
|
|
$('.alert-success-msg p').text(response.message);
|
|
setTimeout(function () {
|
|
$('.alert-success-msg').hide();
|
|
$('.alert-success-msg p').text('');
|
|
}, 2000);
|
|
loadDataAjax();
|
|
} else {
|
|
$('.alert-msg').show();
|
|
$('.alert-msg p').text(response.message);
|
|
setTimeout(function () {
|
|
$('.alert-msg').hide();
|
|
$('.alert-msg p').text('');
|
|
}, 3000);
|
|
$('.btn-register').removeClass('disable');
|
|
}
|
|
},
|
|
failure: function (response) {
|
|
console.log(5, response);
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function AddToGroupModal(id, groupId) {
|
|
window.location.href = `#showmodal=/AdminNew/Company/RollCall/Grouping?workshopSettingId=${id}&groupId=${groupId}&workshopId=${wpId}&handler=CreateEmployee`;
|
|
}
|
|
|
|
//function showEmployee(id, element) {
|
|
// loadEmployeeAjax(id);
|
|
// $(`.openAction`).removeClass('active');
|
|
// $(element).addClass('active');
|
|
//}
|
|
|
|
function removeEmployeeFromGroup(employeeId, groupSettingId) {
|
|
swal.fire({
|
|
title: "اخطار",
|
|
text: "آیا برای حذف این پرسنل مطمئن هستید؟",
|
|
icon: "warning",
|
|
showCancelButton: true,
|
|
confirmButtonText: "بله",
|
|
cancelButtonText: "خیر",
|
|
confirmButtonColor: '#84cc16',
|
|
reverseButtons: true
|
|
}).then((result) => {
|
|
if (result.isConfirmed) {
|
|
|
|
$.ajax({
|
|
async: false,
|
|
type: 'POST',
|
|
url: removeEmployeeFromGroupAjax,
|
|
data: {
|
|
'employeeId': employeeId,
|
|
'groupId': groupSettingId,
|
|
'workshopId': wpId
|
|
},
|
|
headers: { "RequestVerificationToken": `${antiForgeryToken}` },
|
|
success: function (response) {
|
|
if (response.success) {
|
|
$('.alert-success-msg').show();
|
|
$('.alert-success-msg p').text(response.message);
|
|
setTimeout(function () {
|
|
$('.alert-success-msg').hide();
|
|
$('.alert-success-msg p').text('');
|
|
}, 2000);
|
|
loadDataAjax();
|
|
} else {
|
|
$('.alert-msg').show();
|
|
$('.alert-msg p').text(response.message);
|
|
setTimeout(function () {
|
|
$('.alert-msg').hide();
|
|
$('.alert-msg p').text('');
|
|
}, 3000);
|
|
$('.btn-register').removeClass('disable');
|
|
}
|
|
},
|
|
failure: function (response) {
|
|
console.log(5, response);
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
}
|
|
|
|
function editGroup(groupId) {
|
|
window.location.href = `#showmodal=/AdminNew/Company/RollCall/Grouping?groupId=${groupId}&handler=EditGroup`;
|
|
}
|
|
|
|
function editEmployee(employee_id, groupId) {
|
|
var array_employees = [employee_id];
|
|
window.location.href = `#showmodal=/AdminNew/Company/RollCall/Grouping?groupId=${groupId}&employeeId=${array_employees}&workshopId=${wpId}&handler=EditEmployee`;
|
|
} |