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

📄 petvisitform.java

📁 爱心”宠物诊所的职员需要使用系统提供的如下功能: 浏览诊所的兽医以及他们的专业特长; 浏览宠物的主人(即诊所的客户)的相关信息; 更新宠物的主人的相关信息; 向系统中增加一个新客户; 浏览宠
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.wzxy.web.struts.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/** 
 * MyEclipse Struts
 * Creation date: 11-11-2007
 * 
 * XDoclet definition:
 * @struts.form name="petVisitForm"
 */
public class PetVisitForm extends ActionForm {
	/*
	 * Generated fields
	 */
	private String strDate;
	/** petVisitDate property */
	private Date petVisitDate;
	

	/** petVisitId property */
	private Integer petVisitId;

	/** petVisitDescription property */
	private String petVisitDescription;

	/** petId property */
	private Integer petId;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}
	public String getStrDate() {
		return strDate;
	}

	public void setStrDate(String strDate) {
		this.strDate = strDate;
		 SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
		 try {
			this.petVisitDate=format.parse(this.strDate);
			
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	/** 
	 * Returns the petVisitDate.
	 * @return Date
	 */
	public Date getPetVisitDate() {
		return petVisitDate;
	}

	/** 
	 * Set the petVisitDate.
	 * @param petVisitDate The petVisitDate to set
	 */
	public void setPetVisitDate(Date petVisitDate) {
		this.petVisitDate = petVisitDate;
		
	}

	/** 
	 * Returns the petVisitId.
	 * @return Integer
	 */
	public Integer getPetVisitId() {
		return petVisitId;
	}

	/** 
	 * Set the petVisitId.
	 * @param petVisitId The petVisitId to set
	 */
	public void setPetVisitId(Integer petVisitId) {
		this.petVisitId = petVisitId;
	}

	/** 
	 * Returns the petVisitDescription.
	 * @return String
	 */
	public String getPetVisitDescription() {
		return petVisitDescription;
	}

	/** 
	 * Set the petVisitDescription.
	 * @param petVisitDescription The petVisitDescription to set
	 */
	public void setPetVisitDescription(String petVisitDescription) {
		this.petVisitDescription = petVisitDescription;
	}

	/** 
	 * Returns the petId.
	 * @return Integer
	 */
	public Integer getPetId() {
		return petId;
	}

	/** 
	 * Set the petId.
	 * @param petId The petId to set
	 */
	public void setPetId(Integer petId) {
		this.petId = petId;
	}

	
}

⌨️ 快捷键说明

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