Get Barcode values from the Barcode Setup Table and Show it on the AOT Report

void initBarcode()
{
 ;
 barcodeSetupId = InventParameters::find().BarcodeSetupIdPick;
 barcodeSetup = BarcodeSetup::find(barcodeSetupId);
 barcode = barcodeSetup.barcode();

 if (barcodeSetup.barcodeType != BarcodeType::NoBarcode)
 {
 JKG_RepairOrderTable_RepairId_barcode.fontSize(barcodeSetup.FontSize);
 JKG_RepairOrderTable_RepairId_barcode.font(barcodeSetup.fontName);

 JKG_RepairOrderTable_InventSerialId_barcode.fontSize(barcodeSetup.fontSize);
 JKG_RepairOrderTable_InventSerialId_barcode.font(barcodeSetup.fontName);

 JKG_RepairOrderTable_ReturnItemNum_barcode.fontSize(barcodeSetup.fontSize);
 JKG_RepairOrderTable_ReturnItemNum_barcode.font(barcodeSetup.fontName);
 // Added by Venkat_Kor on 05/07/2015- LL000632_VR_RepairOrderTravelerReport - start
 barCodeRepairId.fontSize(barcodeSetup.FontSize);
 barCodeRepairId.font(barcodeSetup.fontName);
 // Added by Venkat_Kor on 05/07/2015- LL000632_VR_RepairOrderTravelerReport - end
 }
 else
 {
 JKG_RepairOrderTable_InventSerialId_barcode.visible(false);
 }
}

//BP Deviation documented
display BarCodeString barCodeRepairId()
{
 Barcode barcodeControl = element.getBarCode();
 ;
 barcodeControl.string(true, repairOrderTableRec.RepairId);
 if (!barcodeSetup.validateBarcode(repairOrderTableRec.RepairId))
 {
 throw(error("@SYS18447"));
 }
 return barcodeControl.barcodeStr();
}


//BP Deviation documented
display BarCodeString barCodeInventSerialId()
{
 Barcode barcodeControl = element.getBarCode();
 BarCodeString barCodeStr;
 ;
 if (repairOrderTableRec.InventSerialId)
 {
 barcodeControl.string(true, repairOrderTableRec.InventSerialId);
 if (!barcodeSetup.validateBarcode(repairOrderTableRec.InventSerialId))
 {
 throw(error("@SYS18447"));
 }
 barCodeStr = barcodeControl.barcodeStr();
 }
 return barCodeStr;
}


public boolean fetch()
{
 boolean retCode = false;
 QueryRun qrun;
 // Added by Venkat_Kor 
 JKG_RepairOrderLines repairOrderLines,repairOrderLinesLoc;
 JKG_RepairOrderTable repairOrderTableRecLoc;
 InventTable inventTable;
 // Added by Venkat_Kor on 05/07/2015- LL000632_VR_RepairOrderTravelerReport - end

;
 qrun = new QueryRun(element);

 //Added by Venkat_Kor 
 element.disableSection(JKG_RepairOrderLines);
 element.disableSection(PageHeader);

 //Added by Venkat_Kor on 05/07/2015- LL000632_VR_RepairOrderTravelerReport - End

 while (qrun.next())
 {
 repairOrderTableRec = qrun.get(TableNum(JKG_RepairOrderTable));
 element.send(repairOrderTableRec);
 while select repairOrderLines
 where repairOrderLines.RepairId == repairOrderTableRec.RepairId
 && repairOrderLines.RepairCode == NoYes::Yes
 {

 element.send(repairOrderLines);

 }
 element.execute(#LoanSalesId);
 element.execute(#Title_DocuRef_Notes);
 element.printDocuRef(repairOrderTableRec);

 //Added by Venkat_Kor 
 repairOrderLines.clear();
 select repairOrderTableRecLoc
 join repairOrderLines
 exists join inventTable
 where repairOrderTableRecLoc.RepairId == repairOrderTableRec.RepairId
 && repairOrderLines.RepairId==repairOrderTableRec.RepairId
 && repairOrderLines.ItemId == inventTable.ItemId
 && InventTable.ItemType == ItemType::Item
 && repairOrderTableRecLoc.ReturnSalesId !=" "
 && (repairOrderTableRecLoc.Level1Price==Noyes::Yes
 || repairOrderTableRecLoc.Level2Price==Noyes::Yes);

 if(repairOrderTableRecLoc.Level1Price==Noyes::Yes)
 JKG_RepairOrderLines_QtyL1.visible(true);
 else
 JKG_RepairOrderLines_QtyL1.visible(false);
 if(repairOrderTableRecLoc.Level2Price==Noyes::Yes)
 JKG_RepairOrderLines_QtyL2.visible(true);
 else
 JKG_RepairOrderLines_QtyL2.visible(false);

 if(repairOrderLines)
 {
 element.newPage();
 element.enableSection(JKG_RepairOrderLines);
 inventTable.clear();
 element.enableSection(PageHeader);
 while select QtyL1,QtyL2,ItemId,ItemName from repairOrderLinesLoc
 exists join inventTable
 where repairOrderLinesLoc.RepairId == repairOrderTableRec.RepairId
 && repairOrderLinesLoc.RepairCode == NoYes::No
 && repairOrderLinesLoc.ItemId == inventTable.ItemId
 && InventTable.ItemType == ItemType::Item
 {
 JKG_RepairOrderLines_ItemId.visible(false);
 RepairCode_Label.visible(false);
 element.send(repairOrderLinesLoc);
 }
 }
 //Added by Venkat_Kor 
 }
 retCode = true;
 return retCode;
}