orderview.java

来自「一个完整的网络订餐系统」· Java 代码 · 共 144 行

JAVA
144
字号
package com.order.form;

import com.util.StrUtility;

public class OrderView {
  private String orderID;
  private String foodID;
  private String foodName;
  private float amount;
  private String unit;
  private float price;
  private String sendDate;
  private String foodtype;
  private String status;
  private String memberID;
  private String descript;
  private String sendTo;
  private String realName;
  private String storeID;
  private String storeName;

  public OrderView() {
  }

  public OrderView(String orderID,String foodID,
                   String foodName,float amount,
                   String unit,float price,
                   String sendDate,String foodtype,
                   String status,String memberID,
                   String descript,String sendTo,
                   String realName,String storeID,
                   String storeName)
 {
   setOrderID(orderID);
   setFoodID(foodID);
   setFoodName(foodName);
   setAmount(amount);
   setUnit(unit);
   setPrice(price);
   setSendDate(sendDate);
   setFoodtype(foodtype);
   setStatus(status);
   setMemberID(memberID);
   setDescript(descript);
   setSendTo(sendTo);
   setRealName(realName);
   setStoreID(storeID);
   setStoreName(storeName);
 }


  public float getAmount() {
    return amount;
  }
  public String getFoodID() {
    return StrUtility.replacenull(foodID);
  }
  public String getFoodName() {
    return StrUtility.replacenull(foodName);
  }
  public String getFoodtype() {
    return StrUtility.replacenull(foodtype);
  }
  public String getOrderID() {
    return StrUtility.replacenull(orderID);
  }
  public float getPrice() {
    return price;
  }
  public String getUnit() {
    return StrUtility.replacenull(unit);
  }
  public void setAmount(float amount) {
    this.amount = amount;
  }
  public void setFoodID(String foodID) {
    this.foodID = foodID;
  }
  public void setFoodName(String foodName) {
    this.foodName = foodName;
  }
  public void setFoodtype(String foodtype) {
    this.foodtype = foodtype;
  }
  public void setOrderID(String orderID) {
    this.orderID = orderID;
  }
  public void setPrice(float price) {
    this.price = price;
  }
  public void setUnit(String unit) {
    this.unit = unit;
  }
  public String getSendDate() {
    return StrUtility.replacenull(sendDate);
  }
  public void setSendDate(String sendDate) {
    this.sendDate = sendDate;
  }
  public String getMemberID() {
    return StrUtility.replacenull(memberID);
  }
  public String getSendTo() {
    return StrUtility.replacenull(sendTo);
  }
  public String getStatus() {
    return StrUtility.replacenull(status);
  }
  public void setMemberID(String memberID) {
    this.memberID = memberID;
  }
  public void setSendTo(String sendTo) {
    this.sendTo = sendTo;
  }
  public void setStatus(String status) {
    this.status = status;
  }
  public String getRealName() {
    return StrUtility.replacenull(realName);
  }
  public void setRealName(String realName) {
    this.realName = realName;
  }
  public String getDescript() {
    return StrUtility.replacenull(descript);
  }
  public void setDescript(String descript) {
    this.descript = descript;
  }
  public String getStoreID() {
    return StrUtility.replacenull(storeID);
  }
  public void setStoreID(String storeID) {
    this.storeID = storeID;
  }
  public String getStoreName() {
    return StrUtility.replacenull(storeName);
  }
  public void setStoreName(String storeName) {
    this.storeName = storeName;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?