📄 invform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.sean.pet.controller.form;
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;
import com.sean.pet.hibernate.dao.PetDao;
import com.sean.pet.hibernate.dao.TreatmentDao;
import com.sean.pet.hibernate.dao.impl.PetDaoImpl;
import com.sean.pet.hibernate.dao.impl.TreatmentDaoImpl;
import com.sean.pet.hibernate.po.Invoice;
import com.sean.pet.hibernate.po.Pet;
import com.sean.pet.hibernate.po.Treatment;
/**
* MyEclipse Struts
* Creation date: 08-08-2008
*
* XDoclet definition:
* @struts.form name="invForm"
*/
public class InvForm extends ActionForm {
/*
* Generated fields
*/
/** zftype property */
private String zftype;
/** tid property */
private String tid;
/** invtime property */
private Date invtime;
/** invmoney property */
private Double invmoney;
/** petid property */
private String petid;
/** id property */
private String id;
/** zftime property */
private Date zftime;
private Pet pet;
private Treatment treatment;
private String time;
private String ztime;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public Invoice valueOfUsers(){
Invoice inv = new Invoice();
inv.setId(this.id);
inv.setInvtime(this.invtime);
inv.setPet(this.pet);
inv.setTreatment(this.treatment);
inv.setZftime(this.zftime);
inv.setZftype(this.zftype);
return inv;
}
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
}
/**
* Returns the zftype.
* @return String
*/
public String getZftype() {
return zftype;
}
/**
* Set the zftype.
* @param zftype The zftype to set
*/
public void setZftype(String zftype) {
this.zftype = zftype;
}
/**
* Returns the tid.
* @return String
*/
public String getTid() {
return tid;
}
/**
* Set the tid.
* @param tid The tid to set
*/
public void setTid(String tid) {
this.tid = tid;
}
/**
* Returns the invtime.
* @return Date
*/
public Date getInvtime() {
return invtime;
}
/**
* Set the invtime.
* @param invtime The invtime to set
*/
public void setInvtime(Date invtime) {
this.invtime = invtime;
}
/**
* Returns the invmoney.
* @return Double
*/
public Double getInvmoney() {
return invmoney;
}
/**
* Set the invmoney.
* @param invmoney The invmoney to set
*/
public void setInvmoney(Double invmoney) {
this.invmoney = invmoney;
}
/**
* Returns the petid.
* @return String
*/
public String getPetid() {
return petid;
}
/**
* Set the petid.
* @param petid The petid to set
*/
public void setPetid(String petid) {
this.petid = petid;
}
/**
* Returns the id.
* @return String
*/
public String getId() {
return id;
}
/**
* Set the id.
* @param id The id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* Returns the zftime.
* @return Date
*/
public Date getZftime() {
return zftime;
}
/**
* Set the zftime.
* @param zftime The zftime to set
*/
public void setZftime(Date zftime) {
this.zftime = zftime;
}
public Pet getPet() {
PetDao petDao = new PetDaoImpl();
this.pet = petDao.findByID(this.petid);
return pet;
}
public void setPet(Pet pet) {
this.pet = pet;
}
public Treatment getTreatment() {
TreatmentDao tDao = new TreatmentDaoImpl();
this.treatment = tDao.findByID(this.tid);
return treatment;
}
public void setTreatment(Treatment treatment) {
this.treatment = treatment;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getZtime() {
return ztime;
}
public void setZtime(String ztime) {
this.ztime = ztime;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -