Click here to Skip to main content
16,016,669 members

Comments by Member 15015917 (Top 1 by date)

Member 15015917 8-Apr-21 20:00pm View    
Hi,

this is my full code;

self.GetQrCode = function (obj) {
var ID = obj.Id;
$.ajax({
url: '/QC/GetQrCode',
cache: false,
type: 'GET',
contentType: 'application/json; charset=utf-8',
data: { rejectsId: ID },
success: function (rejectsId) {
self.QrCode(rejectsId.QRCode);
//$("#test").attr('src', rejectsId.QRCode);
self.PrintQrCode();
}
});
}


self.PrintQrCode = function (obj) {
$('#main').hide();
$('#QrCodePrint').show();
$("#test").on("load", function () {
window.print();
$('#QrCodePrint').hide();
$('#main').show();

});
}