if ($(this).text() == "\xa0\xa0Process Data") {
OpenprogressBarModal();
for (i = 0; i < selectedAssignShifts.length; i++) {
//alert("start For Loop");
selectedEmp = selectedAssignShifts[i];
var ProcessData = {
"monthProcess": $("#monthProcess").val(),
"yearProcess": $("#yearProcess").val(),
}
if (!inProgress) {
$.ajax({
url: '@Url.Action("xyz", "zbc")',
type: "POST",
contentType: "application/json;charset=utf-8",
data: JSON.stringify(ProcessData),
async: false,
dataType: 'json',
success: function (data) {
var percentComplete = parseInt(data);
inProgress = false;
$(".progress-bar").css({ width: percentComplete + '%' });
$('.progress-bar').html(percentComplete + '%');
},
error: function (e) {
message = "Unable to Data Processing";
OpenCommonModal(message);
}
});
}
}
}