orderevent.java
来自「一个优秀的供应商管理系统」· Java 代码 · 共 122 行
JAVA
122 行
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 + =
减小字号Ctrl + -
显示快捷键?