1.$.post(url, { model: dataModel ,weekending:weekending})
.done(function (data) {
if (data != "") {
$("#ConfictTimeSlip").val(data.ConfictTimeSlip);
if (data.ConfictTimeSlip > 0) {
$("#lblPopupmessage").html("The hours you have entered above conflict with a time slip that already exists in the our system.<br/>Duplicate time slips are not allowed!").css('color', 'red');
$('#btnCorrect').prop('disabled', true);
}
else{$('#btnCorrect').prop('disabled', false);}
}
})
.fail(handleAjaxError)
2.$.ajax({
type: "GET",
url: url,
success: function (data) { $("#tblBindPersonalJobBank").html(data); },
error: handleAjaxError
});
.done(function (data) {
if (data != "") {
$("#ConfictTimeSlip").val(data.ConfictTimeSlip);
if (data.ConfictTimeSlip > 0) {
$("#lblPopupmessage").html("The hours you have entered above conflict with a time slip that already exists in the our system.<br/>Duplicate time slips are not allowed!").css('color', 'red');
$('#btnCorrect').prop('disabled', true);
}
else{$('#btnCorrect').prop('disabled', false);}
}
})
.fail(handleAjaxError)
2.$.ajax({
type: "GET",
url: url,
success: function (data) { $("#tblBindPersonalJobBank").html(data); },
error: handleAjaxError
});
No comments:
Post a Comment