📄 orderevent.java
字号:
package apusic.myshop.control.event;import java.util.Collection;import java.io.Serializable;import apusic.myshop.util.CreditCard;public class OrderEvent extends BaseEvent implements Serializable { public static final int CREATE_ORDER = 0; public static final int DELETE_ORDER = 1; public static final int UPDATE_ORDER = 2; private int actionType; private String userId; private String shipName; private String shipAddr; private String shipProvince; private String shipCity; private String shipZip; private String shipCountry; private String billName; private String billAddr; private String billProvince; private String billCity; private String billZip; private String billCountry; private CreditCard chargeCard; int requestId; public OrderEvent() { } public void setInfo(int requestId, String userId, String shipName, String shipAddr, String shipProvince, String shipCity, String shipZip, String shipCountry, String billName, String billAddr, String billProvince, String billCity, String billZip, String billCountry, CreditCard chargeCard) { this.actionType = CREATE_ORDER; this.requestId = requestId; this.userId = userId; this.shipName = shipName; this.shipAddr = shipAddr; this.shipProvince = shipProvince; this.shipCity = shipCity; this.shipZip = shipZip; this.shipCountry = shipCountry; this.billName = billName; this.billAddr = billAddr; this.billProvince = billProvince; this.billCity = billCity; this.billZip = billZip; this.billCountry = billCountry; this.chargeCard = chargeCard; } public int getActionType() { return actionType; } public int getRequestId() { return requestId; } public String getUserId() { return userId; } public String getShipName() { return shipName; } public String getShipAddr() { return shipAddr; } public String getShipProvince() { return shipProvince; } public String getShipCity() { return shipCity; } public String getShipZip() { return shipZip; } public String getShipCountry() { return shipCountry; } public String getBillName() { return billName; } public String getBillAddr() { return billAddr; } public String getBillProvince() { return billProvince; } public String getBillCity() { return billCity; } public String getBillZip() { return billZip; } public String getBillCountry() { return billCountry; } public CreditCard getCreditCard() { return chargeCard; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -