⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderform.java

📁 网上购物系统
💻 JAVA
字号:
package example.order;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.collections.Factory;
import org.apache.commons.collections.ListUtils;
import org.apache.commons.collections.list.LazyList;
import org.apache.struts.action.ActionMapping;

import example.common.dto.OrderDTO;
import example.common.struts.CommonActionForm;

public class OrderForm extends CommonActionForm implements Factory {

	/**
	 * The serialVersionUID
	 */
	private static final long serialVersionUID = 5903306603739066305L;

	/**
	 * User Id
	 */
	private String userId;

	/**
	 * productId
	 */
	private String orderId;

	private String referDate;

	private String dealDate;
	
	private String orderState;

	private String productId;
	
	private String productName;
	
	private String productCount;
	
	private String price;
	
	private String orderName;
	
	private String beforeOrderId;
	
	public int index;
	/**
	 * products
	 */
	private List<OrderDTO> products;

	

	/**
	 * Condition data
	 */
	private OrderDTO condition;

	/**
	 * List data;
	 */
	private List<OrderDTO> listData;

	/**
	 * 
	 */
	public OrderForm() {
		condition = new OrderDTO();
		pageInfo.setPageSize(5);
	}

	/**
	 * Retrieves the userId.
	 * 
	 * @return Returns the userId.
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * Sets the userId to the given value.
	 * 
	 * @param userId
	 *            The userId to set.
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public List<OrderDTO> getProducts() {
		return products;
	}

	/**
	 * Sets the productId to the given value.
	 * 
	 * @param users
	 *            The productId to set.
	 */
	public void setProducts(List<OrderDTO> products) {
		this.products = products;
	}

	

	/**
	 * Retrieves the condition.
	 * 
	 * @return Returns the condition.
	 */
	public OrderDTO getCondition() {
		return condition;
	}

	/**
	 * Sets the condition to the given value.
	 * 
	 * @param condition
	 *            The condition to set.
	 */
	public void setCondition(OrderDTO condition) {
		this.condition = condition;
	}

	// /**
	// * Retrieves the listData.
	// *
	// * @return Returns the listData.
	// */
	// public List getListData() {
	// return listData;
	// }
	//
	// /**
	// * Sets the listData to the given value.
	// *
	// * @param listData
	// * The listData to set.
	// */
	// public void setListData(List listData) {
	// if (listData instanceof LazyList) {
	// this.listData = listData;
	// } else {
	// listData = (listData == null ? new ArrayList() : listData);
	// this.listData = ListUtils.lazyList(listData, this);
	// }
	// }

	/**
	 * Reset all properties to their default values.
	 * 
	 * @param mapping
	 *            The mapping used to select this instance
	 * @param request
	 *            The servlet request we are processing
	 */
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		super.reset(mapping, request);

	}

	/**
	 * @see org.apache.commons.collections.Factory#create()
	 * @return UserDTO
	 */
	public Object create() {
		return new OrderDTO();
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getReferDate() {
		return referDate;
	}

	public void setReferDate(String referDate) {
		this.referDate = referDate;
	}

	public String getDealDate() {
		return dealDate;
	}

	public void setDealDate(String dealDate) {
		this.dealDate = dealDate;
	}

	

	/**
	 * @return Returns the listData.
	 */
	public List<OrderDTO> getListData() {
		return listData;
	}

	/**
	 * @param listData
	 *            The listData to set.
	 */
	@SuppressWarnings("unchecked")
	public void setListData(List<OrderDTO> listData) {

		if (listData instanceof LazyList) {
			this.listData = listData;
		} else {
			listData = (listData == null ? new ArrayList() : listData);
			this.listData = ListUtils.lazyList(listData, this);
		}

	}

	/**
	 * @return Returns the orderName.
	 */
	public String getOrderName() {
		return orderName;
	}

	/**
	 * @param orderName The orderName to set.
	 */
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	/**
	 * @return Returns the price.
	 */
	public String getPrice() {
		return price;
	}

	/**
	 * @param price The price to set.
	 */
	public void setPrice(String price) {
		this.price = price;
	}

	

	/**
	 * @return Returns the productName.
	 */
	public String getProductName() {
		return productName;
	}

	/**
	 * @param productName The productName to set.
	 */
	public void setProductName(String productName) {
		this.productName = productName;
	}

	/**
	 * @return Returns the productId.
	 */
	public String getProductId() {
		return productId;
	}

	/**
	 * @param productId The productId to set.
	 */
	public void setProductId(String productId) {
		this.productId = productId;
	}

	/**
	 * @return Returns the productCount.
	 */
	public String getProductCount() {
		return productCount;
	}

	/**
	 * @param productCount The productCount to set.
	 */
	public void setProductCount(String productCount) {
		this.productCount = productCount;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	/**
	 * @return Returns the beforeOrderId.
	 */
	public String getBeforeOrderId() {
		return beforeOrderId;
	}

	/**
	 * @param beforeOrderId The beforeOrderId to set.
	 */
	public void setBeforeOrderId(String beforeOrderId) {
		this.beforeOrderId = beforeOrderId;
	}

	/**
	 * @return Returns the orderState.
	 */
	public String getOrderState() {
		return orderState;
	}

	/**
	 * @param orderState The orderState to set.
	 */
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}

	

}

⌨️ 快捷键说明

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