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

📄 orders.java

📁 J2EE客户关系管理系统!!!!!!!!!!!!!!!!!!!!
💻 JAVA
字号:
package com.accp.po;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import java.text.ParseException;
import java.text.SimpleDateFormat;
/**
 * Orders entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Orders implements java.io.Serializable {

	// Fields

	private Long odrId;
	private CstCustomer cstCustomer;
	private String odrCustName;
	private Date odrDate = new Date();
	private String odrAddr;
	private String odrStatus;
	private Set ordersLines = new HashSet(0);
	private String no;

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(CstCustomer odrCustomer, Date odrDate, String odrStatus) {
		this.cstCustomer = odrCustomer;
		this.odrDate = odrDate;
		this.odrStatus = odrStatus;
	}

	/** full constructor */
	public Orders(CstCustomer odrCustomer,String odrCustName, Date odrDate, String odrAddr,
			String odrStatus, Set ordersLines) {
		this.cstCustomer = odrCustomer;
		this.odrCustName = odrCustName;
		this.odrDate = odrDate;
		this.odrAddr = odrAddr;
		this.odrStatus = odrStatus;
		this.ordersLines = ordersLines;
	}

	// Property accessors

	public Long getOdrId() {
		return this.odrId;
	}

	public void setOdrId(Long odrId) {
		this.odrId = odrId;
	}
	

	public CstCustomer getCstCustomer() {
		return this.cstCustomer;
	}

	public void setCstCustomer(CstCustomer odrCustomer) {
		this.cstCustomer = odrCustomer;
	}
	SimpleDateFormat sf = new SimpleDateFormat("yyyy年MM月dd日");
	public String getOdrStringDate(){
		return this.sf.format(this.odrDate);
	}
	
	public void setOdrStringDate(String da){
		try {
			this.odrDate = sf.parse(da);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public Date getOdrDate() {
		return this.odrDate;
	}

	public void setOdrDate(Date odrDate) {
		this.odrDate = odrDate;
	}

	public String getOdrAddr() {
		return this.odrAddr;
	}

	public void setOdrAddr(String odrAddr) {
		this.odrAddr = odrAddr;
	}

	public String getOdrStatus() {
		return this.odrStatus;
	}

	public void setOdrStatus(String odrStatus) {
		this.odrStatus = odrStatus;
	}

	public Set getOrdersLines() {
		return this.ordersLines;
	}

	public void setOrdersLines(Set ordersLines) {
		this.ordersLines = ordersLines;
	}

	public String getOdrCustName() {
		return odrCustName;
	}

	public void setOdrCustName(String odrCustName) {
		this.odrCustName = odrCustName;
	}

	public String getNo() {
		return this.no;
	}

	public void setNo(String no) {
		this.no = no;
	}

}

⌨️ 快捷键说明

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