public class JPanelTicket.ScriptObject extends Object
Constructor and Description |
---|
ScriptObject() |
Modifier and Type | Method and Description |
---|---|
void |
addTicketLine(String sname,
Tax tax,
double dmult,
double dpricesell) |
void |
adminOPI()
Show a dialog to manage the OPI card reader, if any.
|
void |
changePayment()
Show the dialog to change the payment method of the ticket selected
through the number entered in the ticket view.
|
void |
exitToLogin() |
double |
getInputValue() |
void |
getReservations()
Show the Reservation slot panel.
|
BufferedImage |
getResourceAsImage(String sresourcename) |
String |
getResourceAsXML(String sresourcename) |
TicketLine |
getSelectedLine() |
boolean |
getSourceRegisterData()
Shows a dialog to input source register data for refunded tickets from
other registers.
|
Ticket |
getTicket() |
void |
modifyLine(int mask)
Toggle line modifiers in mask
|
void |
modifyLine(int mask,
String reason)
Toggle line modifiers in mask, setting reason
|
void |
modifyLine(int mask,
String action,
String reason)
Modify the selected line using action.
|
void |
printTicket(String sresourcename) |
void |
printTicket(String sresourcename,
Boolean sUpdate) |
void |
remoteService()
Connect to remote service.
|
void |
reprintLabel(Integer slots,
Integer slotLength,
String sresourcename)
Print a number of jump labels.
|
void |
runSystemCmd(String cmd)
Run a system command.
|
void |
setGuests()
Set the number of guests for the ticket The property 'maxGuests' must
be set to a numeric value >0 in posper.properties.
|
void |
setSeat()
Set a seat number for the ticket line The property 'maxSeats' must be
set to a numeric value >0 in posper.properties.
|
void |
showLogin() |
void |
showLongDescription() |
public double getInputValue()
public Ticket getTicket()
public TicketLine getSelectedLine()
public void printTicket(String sresourcename, Boolean sUpdate)
sresourcename
- sUpdate
- public void printTicket(String sresourcename)
public void reprintLabel(Integer slots, Integer slotLength, String sresourcename)
slots
- number of slots rewuired (determine end time)slotLength
- slotlength in minutessresourcename
- print template for reprint. The template can use
the variables $quantity, $res_start, $res_end, and $res_date.public void changePayment()
public void setSeat()
public void setGuests()
public void showLongDescription()
public void modifyLine(int mask, String reason)
mask
- The mask to applyreason
- The reason to be storedpublic void modifyLine(int mask)
mask
- The mask to applypublic void modifyLine(int mask, String action, String reason)
mask
- The modifier mask to applyaction
- One of "SET", "UNSET", and "TOGGLE"reason
- reason will be stored in discount reasons. Set "" for 'no reason'public BufferedImage getResourceAsImage(String sresourcename)
public void showLogin()
public void exitToLogin()
public void getReservations()
public void adminOPI()
public void runSystemCmd(String cmd)
cmd
- public void remoteService()
public boolean getSourceRegisterData()
Copyright © 2021. All rights reserved.