groupmenumodel.java

来自「WAP PUSH后台源码,WAP PUSH后台源码」· Java 代码 · 共 92 行

JAVA
92
字号
package com.sxit.wap.groupmenu;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class GroupMenuModel implements java.io.Serializable {  int menuId = 0;  int imgId = 0;  int menuParent = 0;  int menuChannel = 0;  String menuName = "";  int menuTrade = 0;  int orderId = 0;  public GroupMenuModel(int menuId, int imgId, int menuParent, int menuChannel, String menuName, int menuTrade, int orderId){    this.menuId = menuId;    this.imgId = imgId;    this.menuParent = menuParent;    this.menuChannel = menuChannel;    if (menuName == null) menuName = "";    this.menuName = menuName;    this.menuTrade = menuTrade;    this.orderId = orderId;  }  public GroupMenuModel(){  }  public int getMenuId() {     return menuId;  }  public int getImgId() {     return imgId;  }  public int getMenuParent() {     return menuParent;  }  public int getMenuChannel() {     return menuChannel;  }  public String getMenuName() {     if (menuName == null) menuName = "";     return menuName;  }  public int getMenuTrade() {     return menuTrade;  }  public int getOrderId() {     return orderId;  }  public void setMenuId(int menuId) {    this.menuId = menuId;  }  public void setImgId(int imgId) {    this.imgId = imgId;  }  public void setMenuParent(int menuParent) {    this.menuParent = menuParent;  }  public void setMenuChannel(int menuChannel) {    this.menuChannel = menuChannel;  }  public void setMenuName(String menuName) {    this.menuName = menuName;  }  public void setMenuTrade(int menuTrade) {    this.menuTrade = menuTrade;  }  public void setOrderId(int orderId) {    this.orderId = orderId;  }  public String toString() {    String value = "";    value+= "menuId=" + menuId + "\n";    value+= "imgId=" + imgId + "\n";    value+= "menuParent=" + menuParent + "\n";    value+= "menuChannel=" + menuChannel + "\n";    value+= "menuName=" + menuName + "\n";    value+= "menuTrade=" + menuTrade + "\n";    value+= "orderId=" + orderId + "\n";    return value;  }  public void copy(GroupMenuModel other) {    this.setMenuId(other.getMenuId());    this.setImgId(other.getImgId());    this.setMenuParent(other.getMenuParent());    this.setMenuChannel(other.getMenuChannel());    this.setMenuName(other.getMenuName());    this.setMenuTrade(other.getMenuTrade());    this.setOrderId(other.getOrderId());  }}

⌨️ 快捷键说明

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