public class LabelPrinter extends HibernateObject
Modifier and Type | Field and Description |
---|---|
java.lang.String |
code
*Primary Key*
Unique identifier for the printer
|
LabelFormatSet |
defaultSet
The default label set this printer should use if none are defined
|
java.lang.String |
description
The description for the printer.
|
java.lang.String |
directory
The subdirectory to connect to if using FTP
|
java.lang.String |
fileExtension
The file extension to use for the label if using FTP
|
java.lang.String |
ipAddress
The IP address of the printer if connecting via the network
|
java.lang.String |
password
The password for an FTP directory if using FTP
|
int |
port
The port of the printer if connecting via the network
|
LabelPrinterType |
printerType
The label printer type
|
java.lang.String |
username
The username for an FTP directory if using FTP
|
ID
Constructor and Description |
---|
LabelPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
connectAndPrint(byte[] bytes,
int qty) |
static java.lang.String |
generate6DigitWeight(double weight) |
java.lang.String |
getCode() |
LabelFormatSet |
getDefaultSet() |
java.lang.String |
getDescription() |
java.lang.String |
getDirectory() |
java.lang.String |
getFileExtension() |
java.lang.String |
getIpAddress() |
java.lang.String |
getPassword() |
int |
getPort() |
com.sgs.common.printing.LabelPrinterConnector |
getPrinterConnector() |
LabelPrinterType |
getPrinterType() |
java.lang.String |
getUsername() |
java.lang.String |
loadDateFormats(java.lang.String label,
java.lang.String baseLabelCode,
java.util.Date date) |
java.lang.String |
loadTimeFormats(java.lang.String label,
java.lang.String baseLabelCode,
java.util.Date time) |
byte[] |
parseBagLabel(byte[] data,
java.lang.String formulaCode,
java.lang.String formulaName,
java.lang.String formulaUnits,
java.lang.String weight,
java.lang.String batchNumber,
java.lang.String jobNumber,
java.lang.String operator,
java.lang.String status,
boolean ltsEnabled,
java.util.Date expiry,
java.lang.String comCode,
java.lang.String comDesc,
java.lang.String bagId,
StockLocation stock,
java.lang.String batchCount,
java.lang.String terminalName,
java.lang.String jobLocationCode,
java.lang.String jobLocationDesc,
Container batchPallet,
Commodity stockCommodity,
Bag bag,
java.lang.String grossWeight,
java.lang.String tare,
java.lang.Integer stepSequenceNo,
java.lang.String targetQty) |
byte[] |
parseBatchLabel(byte[] data,
java.lang.String formulaCode,
java.lang.String formulaName,
java.lang.String formulaUnits,
java.lang.String weightStr,
java.lang.String batchNumber,
java.lang.String jobNumber,
java.lang.String operator,
java.lang.String barcode,
java.lang.String status,
boolean ltsEnabled,
java.util.Date expiry,
boolean containsAllergen,
java.lang.Object[][] ingredientArray,
int ingredientArraySize,
int commodityId,
java.lang.String upc,
Location productionLocation,
java.lang.Integer serial,
java.lang.String gtin,
java.lang.Double packCount,
StockLocation sourceLot,
StockLocation producedStock,
double weight,
java.lang.String productWeighmentUnit,
java.lang.Double tare,
java.lang.String weightDividedByLabels,
java.lang.Double transactionPackCount,
int ingredientArrayDecimals,
java.lang.String terminalName,
java.lang.Object[][] salesOrderLinkArray,
int salesOrderArraySize,
java.lang.String manufacturerPartNo,
java.lang.String batchXofY,
java.lang.String jobComments,
java.lang.String customField1,
java.lang.String customField2,
java.lang.String customField3,
java.lang.String customField4,
java.lang.String customField5,
java.lang.Double products,
java.lang.Integer bulkQty,
java.lang.Double formulaExpectedWeight,
java.lang.Double consumptionWeight,
Container pallet,
java.lang.String formulaCustomField1,
java.lang.Double stepWeight,
int formulaProduceAs,
double boxCount,
int labelAddDays,
int stockContainerNumber,
java.lang.String formulaCustomField2,
int labelQuantity,
java.lang.String[] reasons,
int labelAddDaysSecondary,
java.lang.Double packQty,
java.lang.String formulaCustomField3) |
byte[] |
parseCommodityLabel(byte[] data,
Commodity commodity) |
byte[] |
parseCommonsPalletLabel(byte[] data,
Container pallet,
Formula formula,
JobLine jobLine,
int palletIndex,
int palletCount,
java.lang.String operatorName,
PreBatch preBatch,
FormulaStep step) |
byte[] |
parseContainerLabel(byte[] data,
java.lang.String formulaCode,
java.lang.String formulaName,
java.lang.String formulaUnits,
java.lang.String weight,
java.lang.String batchNumber,
java.lang.String jobNumber,
java.lang.String operator,
java.lang.String barcode,
java.lang.String status,
boolean ltsEnabled,
java.util.Date expiry,
Commodity commodity,
int ingredientArraySize,
java.lang.Object[][] ingredientArray,
java.lang.Double containerTare,
java.lang.String baseUnitWeight,
boolean containsAllergen,
int ingredientArrayDecimals,
java.lang.String customBatchNo,
java.lang.String lpn,
java.lang.String grossWeight,
Location batchProductionLocation,
java.lang.String stepType,
java.lang.String terminalName,
java.lang.String formulaSequenceNo,
java.lang.String batchCount,
java.lang.String jobCustomField1,
java.lang.String jobCustomField2,
java.lang.String jobCustomField3,
java.lang.String jobCustomField4,
java.lang.String jobCustomField5,
java.lang.String operatorQuickRef,
java.lang.Double tare,
java.lang.String formulaDataField1,
int stockContainerNumber) |
byte[] |
parseDispatchPalletLabel(byte[] data,
Container pallet,
Formula formula,
java.lang.Double qty,
Batch batch,
Terminal terminal,
java.lang.Double palletItemCount,
User user,
java.util.List<JobSalesOrderLink> jobSalesLink) |
byte[] |
parseFPBoxEndLabel(byte[] data,
Formula formula,
com.sgs.common.data_containers.SalesOrderFormulaPair order,
java.lang.String lotNumber,
boolean ltsEnabled,
java.lang.String origin,
java.lang.String supplierLot,
StockLocation stock,
StockLocation producedStock,
java.lang.String terminalName,
java.lang.String operator,
int labelsQty,
int labelAddDays,
PreBatch preBatch,
java.lang.Double netWeight,
java.lang.String productWeighmentUnit,
int labelAddDaysSecondary) |
byte[] |
parseFPStockLabel(byte[] data,
StockLocation activeStock,
StockLocation producedStock,
java.lang.String terminalName) |
byte[] |
parseFreeTextLabel(byte[] data,
java.lang.String text) |
byte[] |
parseGenericLabel(byte[] data,
java.lang.String jobNumber,
java.lang.String formulaCode,
java.lang.String formulaName,
java.lang.String formulaUnits,
java.lang.String comCode,
java.lang.String comDesc,
java.lang.String ingredientUnitsCode,
java.lang.String ingredientUnitsDesc,
StockLocation stock,
java.lang.String operator,
java.lang.String batchNumber,
java.lang.String terminalName,
FormulaStep step,
Container pallet,
java.util.Date expiry,
java.lang.Double palletQty,
java.util.Date jobProductionDate) |
byte[] |
parseInventoryPalletLabel(byte[] data,
ContainerLink link,
Formula formula,
java.lang.Double quantity,
User user,
PurchaseOrder purchaseOrder,
java.lang.Double totalPalletQuantity,
SalesOrderLine orderLine) |
byte[] |
parseLocationLabel(byte[] data,
Location location) |
byte[] |
parseLotContainerLabel(byte[] data,
StockLocation stock,
java.util.Date receivedDate,
java.lang.String barcode,
java.util.Date expiry,
java.lang.String operator,
boolean containsAllergen,
Container pallet,
Container container,
java.lang.Integer containerQty,
java.lang.Double grossWeight,
java.lang.Double palletTare,
LotContainer lotContainer,
java.lang.Double quantity,
java.lang.Integer bulkReceiptCount,
java.lang.Double bulkItemWeight,
java.lang.String weightByLabels,
PurchaseOrderLine poLine) |
byte[] |
parseMultiWeighPrintLabel(byte[] data,
java.util.List<WeighPrintInfo> weighPrintInfo,
java.lang.Double gross,
java.lang.Double tare,
java.lang.String scaleNo) |
byte[] |
parseOCMLabel(byte[] data,
Commodity activeCommodity,
Commodity activeInnerCommodity,
java.util.Date expiryDate,
java.lang.Double netWeight,
CustomerGroupCommodity activeCGC,
Batch activeBatch) |
byte[] |
parsePalletHoldLabel(byte[] data,
Hold hold,
Commodity commodity,
User operator) |
byte[] |
parseSalesLabel(byte[] data,
SalesOrder order,
int labelCount) |
byte[] |
parseSampleLabel(byte[] data,
java.lang.String formulaCode,
java.lang.String formulaName,
java.lang.String barcode,
java.lang.String jobNumber,
java.lang.String operator,
int sampleNo,
java.lang.String batchNumber,
java.lang.String terminalName) |
byte[] |
parseScaleLabel(byte[] data,
java.lang.String grossWeight,
java.lang.String tareWeight,
java.lang.String netWeight,
java.lang.String terminalName,
User operator,
java.lang.String unit,
java.lang.String lotNo,
java.lang.String ticketNo,
java.lang.String itemNo,
java.lang.String rmCode,
java.lang.String rmLotNo,
java.lang.String scaleNo,
java.lang.String expiry) |
byte[] |
parseShippingPalletLabel(byte[] data,
Container pallet,
SalesOrder order,
java.util.List<ContainerLink> links,
int itemArray) |
byte[] |
parseSingleWeighPrintLabel(byte[] data,
WeighPrintInfo weighPrintInfo,
java.lang.Double gross,
java.lang.Double tare,
java.lang.String scaleNo) |
byte[] |
parseStockLabel(byte[] data,
StockLocation stock,
java.util.Date receivedDate,
java.lang.String barcode,
java.util.Date expiry,
java.lang.String operator,
boolean containsAllergen,
Container pallet,
Container container,
java.lang.Integer containerQty,
java.lang.Double grossWeight,
java.lang.Double palletTare,
LotContainer lotContainer,
java.lang.Double quantity,
java.lang.Integer bulkReceiptCount,
java.lang.Double bulkItemWeight,
java.lang.String weightByLabels,
PurchaseOrderLine poLine,
java.lang.Double packQty) |
byte[] |
parseTestlabel(byte[] data,
java.lang.String remoteIP,
java.lang.String date) |
byte[] |
parseWithdrawLabel(byte[] data,
StockLocation stock,
java.util.Date receivedDate,
java.lang.String barcode,
java.util.Date expiry,
java.lang.String operator,
boolean containsAllergen,
Container pallet,
Container container,
java.lang.Integer containerQty,
java.lang.Double grossWeight,
java.lang.Double palletTare,
LotContainer lotContainer,
java.lang.Double quantity,
java.lang.Integer bulkReceiptCount,
java.lang.Double tare,
Reason reason) |
static java.lang.String |
removeLeadingZeros(java.lang.String str) |
void |
setCode(java.lang.String code) |
void |
setDefaultSet(LabelFormatSet defaultSet) |
void |
setDescription(java.lang.String description) |
void |
setDirectory(java.lang.String directory) |
void |
setFileExtension(java.lang.String fileExtension) |
void |
setIpAddress(java.lang.String ipAddress) |
java.lang.String |
setNowDates(java.lang.String label) |
void |
setPassword(java.lang.String password) |
void |
setPort(int port) |
void |
setPrinterConnector(com.sgs.common.printing.LabelPrinterConnector printerConnector) |
void |
setPrinterType(LabelPrinterType printerType) |
void |
setUsername(java.lang.String username) |
static java.util.Date |
toCalendar(java.util.Date date) |
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
public java.lang.String code
public java.lang.String description
public LabelPrinterType printerType
public java.lang.String ipAddress
public int port
public LabelFormatSet defaultSet
public java.lang.String username
public java.lang.String password
public java.lang.String directory
public java.lang.String fileExtension
public java.lang.String getCode()
public void setCode(java.lang.String code)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getIpAddress()
public int getPort()
public void setIpAddress(java.lang.String ipAddress)
public void setPort(int port)
public LabelPrinterType getPrinterType()
public LabelFormatSet getDefaultSet()
public void setPrinterType(LabelPrinterType printerType)
public void setDefaultSet(LabelFormatSet defaultSet)
public com.sgs.common.printing.LabelPrinterConnector getPrinterConnector()
public void setPrinterConnector(com.sgs.common.printing.LabelPrinterConnector printerConnector)
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.lang.String getDirectory()
public void setUsername(java.lang.String username)
public void setPassword(java.lang.String password)
public void setDirectory(java.lang.String directory)
public static java.lang.String generate6DigitWeight(double weight)
public java.lang.String setNowDates(java.lang.String label)
public java.lang.String loadDateFormats(java.lang.String label, java.lang.String baseLabelCode, java.util.Date date)
public java.lang.String loadTimeFormats(java.lang.String label, java.lang.String baseLabelCode, java.util.Date time)
public byte[] parseBatchLabel(byte[] data, java.lang.String formulaCode, java.lang.String formulaName, java.lang.String formulaUnits, java.lang.String weightStr, java.lang.String batchNumber, java.lang.String jobNumber, java.lang.String operator, java.lang.String barcode, java.lang.String status, boolean ltsEnabled, java.util.Date expiry, boolean containsAllergen, java.lang.Object[][] ingredientArray, int ingredientArraySize, int commodityId, java.lang.String upc, Location productionLocation, java.lang.Integer serial, java.lang.String gtin, java.lang.Double packCount, StockLocation sourceLot, StockLocation producedStock, double weight, java.lang.String productWeighmentUnit, java.lang.Double tare, java.lang.String weightDividedByLabels, java.lang.Double transactionPackCount, int ingredientArrayDecimals, java.lang.String terminalName, java.lang.Object[][] salesOrderLinkArray, int salesOrderArraySize, java.lang.String manufacturerPartNo, java.lang.String batchXofY, java.lang.String jobComments, java.lang.String customField1, java.lang.String customField2, java.lang.String customField3, java.lang.String customField4, java.lang.String customField5, java.lang.Double products, java.lang.Integer bulkQty, java.lang.Double formulaExpectedWeight, java.lang.Double consumptionWeight, Container pallet, java.lang.String formulaCustomField1, java.lang.Double stepWeight, int formulaProduceAs, double boxCount, int labelAddDays, int stockContainerNumber, java.lang.String formulaCustomField2, int labelQuantity, java.lang.String[] reasons, int labelAddDaysSecondary, java.lang.Double packQty, java.lang.String formulaCustomField3)
public byte[] parseContainerLabel(byte[] data, java.lang.String formulaCode, java.lang.String formulaName, java.lang.String formulaUnits, java.lang.String weight, java.lang.String batchNumber, java.lang.String jobNumber, java.lang.String operator, java.lang.String barcode, java.lang.String status, boolean ltsEnabled, java.util.Date expiry, Commodity commodity, int ingredientArraySize, java.lang.Object[][] ingredientArray, java.lang.Double containerTare, java.lang.String baseUnitWeight, boolean containsAllergen, int ingredientArrayDecimals, java.lang.String customBatchNo, java.lang.String lpn, java.lang.String grossWeight, Location batchProductionLocation, java.lang.String stepType, java.lang.String terminalName, java.lang.String formulaSequenceNo, java.lang.String batchCount, java.lang.String jobCustomField1, java.lang.String jobCustomField2, java.lang.String jobCustomField3, java.lang.String jobCustomField4, java.lang.String jobCustomField5, java.lang.String operatorQuickRef, java.lang.Double tare, java.lang.String formulaDataField1, int stockContainerNumber)
public byte[] parseBagLabel(byte[] data, java.lang.String formulaCode, java.lang.String formulaName, java.lang.String formulaUnits, java.lang.String weight, java.lang.String batchNumber, java.lang.String jobNumber, java.lang.String operator, java.lang.String status, boolean ltsEnabled, java.util.Date expiry, java.lang.String comCode, java.lang.String comDesc, java.lang.String bagId, StockLocation stock, java.lang.String batchCount, java.lang.String terminalName, java.lang.String jobLocationCode, java.lang.String jobLocationDesc, Container batchPallet, Commodity stockCommodity, Bag bag, java.lang.String grossWeight, java.lang.String tare, java.lang.Integer stepSequenceNo, java.lang.String targetQty)
public byte[] parseLotContainerLabel(byte[] data, StockLocation stock, java.util.Date receivedDate, java.lang.String barcode, java.util.Date expiry, java.lang.String operator, boolean containsAllergen, Container pallet, Container container, java.lang.Integer containerQty, java.lang.Double grossWeight, java.lang.Double palletTare, LotContainer lotContainer, java.lang.Double quantity, java.lang.Integer bulkReceiptCount, java.lang.Double bulkItemWeight, java.lang.String weightByLabels, PurchaseOrderLine poLine)
public byte[] parseStockLabel(byte[] data, StockLocation stock, java.util.Date receivedDate, java.lang.String barcode, java.util.Date expiry, java.lang.String operator, boolean containsAllergen, Container pallet, Container container, java.lang.Integer containerQty, java.lang.Double grossWeight, java.lang.Double palletTare, LotContainer lotContainer, java.lang.Double quantity, java.lang.Integer bulkReceiptCount, java.lang.Double bulkItemWeight, java.lang.String weightByLabels, PurchaseOrderLine poLine, java.lang.Double packQty)
public byte[] parseWithdrawLabel(byte[] data, StockLocation stock, java.util.Date receivedDate, java.lang.String barcode, java.util.Date expiry, java.lang.String operator, boolean containsAllergen, Container pallet, Container container, java.lang.Integer containerQty, java.lang.Double grossWeight, java.lang.Double palletTare, LotContainer lotContainer, java.lang.Double quantity, java.lang.Integer bulkReceiptCount, java.lang.Double tare, Reason reason)
public byte[] parseTestlabel(byte[] data, java.lang.String remoteIP, java.lang.String date)
public void connectAndPrint(byte[] bytes, int qty)
public java.lang.String getFileExtension()
public void setFileExtension(java.lang.String fileExtension)
public byte[] parseGenericLabel(byte[] data, java.lang.String jobNumber, java.lang.String formulaCode, java.lang.String formulaName, java.lang.String formulaUnits, java.lang.String comCode, java.lang.String comDesc, java.lang.String ingredientUnitsCode, java.lang.String ingredientUnitsDesc, StockLocation stock, java.lang.String operator, java.lang.String batchNumber, java.lang.String terminalName, FormulaStep step, Container pallet, java.util.Date expiry, java.lang.Double palletQty, java.util.Date jobProductionDate)
public byte[] parseDispatchPalletLabel(byte[] data, Container pallet, Formula formula, java.lang.Double qty, Batch batch, Terminal terminal, java.lang.Double palletItemCount, User user, java.util.List<JobSalesOrderLink> jobSalesLink)
public byte[] parseSalesLabel(byte[] data, SalesOrder order, int labelCount)
public byte[] parseCommodityLabel(byte[] data, Commodity commodity)
public byte[] parseShippingPalletLabel(byte[] data, Container pallet, SalesOrder order, java.util.List<ContainerLink> links, int itemArray)
public byte[] parseInventoryPalletLabel(byte[] data, ContainerLink link, Formula formula, java.lang.Double quantity, User user, PurchaseOrder purchaseOrder, java.lang.Double totalPalletQuantity, SalesOrderLine orderLine)
public byte[] parseFPBoxEndLabel(byte[] data, Formula formula, com.sgs.common.data_containers.SalesOrderFormulaPair order, java.lang.String lotNumber, boolean ltsEnabled, java.lang.String origin, java.lang.String supplierLot, StockLocation stock, StockLocation producedStock, java.lang.String terminalName, java.lang.String operator, int labelsQty, int labelAddDays, PreBatch preBatch, java.lang.Double netWeight, java.lang.String productWeighmentUnit, int labelAddDaysSecondary)
public byte[] parseFPStockLabel(byte[] data, StockLocation activeStock, StockLocation producedStock, java.lang.String terminalName)
public byte[] parseScaleLabel(byte[] data, java.lang.String grossWeight, java.lang.String tareWeight, java.lang.String netWeight, java.lang.String terminalName, User operator, java.lang.String unit, java.lang.String lotNo, java.lang.String ticketNo, java.lang.String itemNo, java.lang.String rmCode, java.lang.String rmLotNo, java.lang.String scaleNo, java.lang.String expiry)
public byte[] parseSingleWeighPrintLabel(byte[] data, WeighPrintInfo weighPrintInfo, java.lang.Double gross, java.lang.Double tare, java.lang.String scaleNo)
public byte[] parseMultiWeighPrintLabel(byte[] data, java.util.List<WeighPrintInfo> weighPrintInfo, java.lang.Double gross, java.lang.Double tare, java.lang.String scaleNo)
public byte[] parseCommonsPalletLabel(byte[] data, Container pallet, Formula formula, JobLine jobLine, int palletIndex, int palletCount, java.lang.String operatorName, PreBatch preBatch, FormulaStep step)
public byte[] parseOCMLabel(byte[] data, Commodity activeCommodity, Commodity activeInnerCommodity, java.util.Date expiryDate, java.lang.Double netWeight, CustomerGroupCommodity activeCGC, Batch activeBatch)
public byte[] parseFreeTextLabel(byte[] data, java.lang.String text)
public byte[] parseLocationLabel(byte[] data, Location location)
public byte[] parsePalletHoldLabel(byte[] data, Hold hold, Commodity commodity, User operator)
public static java.util.Date toCalendar(java.util.Date date)
public static java.lang.String removeLeadingZeros(java.lang.String str)
public byte[] parseSampleLabel(byte[] data, java.lang.String formulaCode, java.lang.String formulaName, java.lang.String barcode, java.lang.String jobNumber, java.lang.String operator, int sampleNo, java.lang.String batchNumber, java.lang.String terminalName)