| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/public/js/bulkpackage/ |
Upload File : |
$( document ).ready(function() {
$(".priceonly").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
// 190 is the key code of decimal
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) || (e.keyCode == 190) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
$(".numberonly").keydown(function (e) {
// Allow: backspace, delete, tab, escape, enter and .
// 190 is the key code of decimal
if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110]) !== -1 ||
// Allow: Ctrl+A, Command+A
(e.keyCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) ||
// Allow: home, end, left, right, down, up
(e.keyCode >= 35 && e.keyCode <= 40)) {
// let it happen, don't do anything
return;
}
// Ensure that it is a number and stop the keypress
if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
e.preventDefault();
}
});
});
function getSupplierSelectedCurrencyType(SupplierSysId, PrefCurrencyType)
{
$.ajax({
url : '/bulk-package/get-supplier-currencytype',
data : { SupplierSysId : SupplierSysId, PrefCurrencyType : PrefCurrencyType },
dataType : 'html',
type : 'POST',
error : function() {
},
beforeSend : function() {
// $("#markup-table-loader").css("display","inline-block");
// $("#markup-settings-grid-content").html('');
},
success : function(response) {
$("#supplier_currency_type").html(response);
}
});
}
function getAgentInternalActivity(cityId,countryId)
{
$.ajax({
url : '/bulk-package/get-agent-activities',
data : { cityId : cityId, countryId : countryId },
dataType : 'html',
type : 'POST',
async: false,
error : function() {
},
beforeSend : function() {
// $("#markup-table-loader").css("display","inline-block");
// $("#markup-settings-grid-content").html('');
},
success : function(response) {
$("#internaldealsactivity").html(response);
}
});
}
function getAgentInternalSightseeing(cityId,countryId) {
$.ajax({
url : '/bulk-package/get-agent-sightseeing',
data : { cityId : cityId, countryId : countryId },
dataType : 'html',
type : 'POST',
async: false,
error : function() {
},
beforeSend : function() {
// $("#markup-table-loader").css("display","inline-block");
// $("#markup-settings-grid-content").html('');
},
success : function(response) {
$("#internaldealssightseen").html(response);
}
});
}
function viewMarkupSettingGrid(hotelId, markupSetting)
{
$("#markup-settings-grid-content").html('<img src="/public/assets/images/loader.gif" alt="Loading..." />');
$.ajax({
url : '/bulk-package/view-markup-setting-grid',
data : { hotelId : hotelId, MarkupSetting : markupSetting},
dataType : 'html',
type : 'POST',
error : function() {
},
beforeSend : function() {
},
success : function(response) {
$("#markup-settings-grid-content").html(response);
}
});
}
function addCustomizedMarkup(hotelId)
{
var data = $('#frm-customize-markup-amount').serialize();
$.ajax({
url : '/bulk-package/add-customized-markup',
data : data + "&hotelId="+hotelId,
type : 'POST',
dataType : 'json',
error : function() {
},
beforeSend : function() {
},
success : function(response) {
///alert(response.success);
if(response.success) {
$("#markup-setting-error-messages").html(response.msg);
$("#markup-setting-error-messages").css('display','block');
viewMarkupSettingGrid(hotelId,'markup');
}else {
alert(response.msg);
return false;
}
}
});
return true;
}
function deleteMarkupSettings(InvnItemSysId, AccomSysId, markupSetting)
{
if(confirm('Are you sure you want to delete the selected record?')) {
$.ajax({
url : '/bulk-package/delete-customized-markup-setting',
data : { InvnItemSysId : InvnItemSysId},
dataType : 'json',
type : 'POST',
error : function() {
},
beforeSend : function() {
},
success : function(response)
{
viewMarkupSettingGrid(AccomSysId,markupSetting);
}
});
}
}