package com.sanqing.action; 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.sanqing.po.Educate; import com.sanqing.tool.DateUtil; /** * @author BWeiMing * */ public class EducateForm extends ActionForm { /** identifier field */ private Long id; /** nullable persistent field */ private String name; /** nullable persistent field */ private String purpose; /** nullable persistent field */ private String begintime; /** nullable persistent field */ private String endtime; /** nullable persistent field */ private String datum; /** nullable persistent field */ private String teacher; /** nullable persistent field */ private String student; /** nullable persistent field */ private String createtime; /** nullable persistent field */ private String effect; /** nullable persistent field */ private String summarize; private Byte educate; /** full constructor */ public void reset(ActionMapping arg0, HttpServletRequest arg1) { this.name = null; this.purpose = null; this.begintime = null; this.endtime = null; this.datum = null; this.teacher = null; this.student = null; this.createtime = null; this.educate=null; this.effect = null; this.summarize = null; } public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) { return null; } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public String getPurpose() { return this.purpose; } public void setPurpose(String purpose) { this.purpose = purpose; } public String getBegintime() { return this.begintime; } public void setBegintime(String begintime) { this.begintime = begintime; } public String getEndtime() { return this.endtime; } public void setEndtime(String endtime) { this.endtime = endtime; } public String getDatum() { return this.datum; } public void setDatum(String datum) { this.datum = datum; } public String getTeacher() { return this.teacher; } public void setTeacher(String teacher) { this.teacher = teacher; } public String getStudent() { return this.student; } public void setStudent(String student) { this.student = student; } public String getCreatetime() { return this.createtime; } public void setCreatetime(String createtime) { this.createtime = createtime; } public String getEffect() { return this.effect; } public void setEffect(String effect) { this.effect = effect; } public String getSummarize() { return this.summarize; } public void setSummarize(String summarize) { this.summarize = summarize; } public String toString() { StringBuffer toStr = new StringBuffer(); toStr.append("[Educate] = [\n"); toStr.append(" id = " + this.id + ";\n"); toStr.append(" name = " + this.name + ";\n"); toStr.append(" begintime = " + this.begintime+ ";\n"); toStr.append(" endtime = " + this.endtime+ ";\n"); toStr.append(" createtime = " + this.createtime+ ";\n"); toStr.append(" purpose = " + this.purpose + ";\n"); toStr.append(" datum = " + this.datum + ";\n"); toStr.append(" teacher = " + this.teacher + ";\n"); toStr.append(" student = " + this.student + ";\n"); toStr.append(" educate = " + this.educate+ ";\n"); toStr.append(" effect = " + this.effect + ";\n"); toStr.append(" summarize = " + this.summarize + ";\n"); toStr.append(" ];\n"); return toStr.toString(); } public Educate populate(){ Educate e=new Educate(); e.setBegintime(DateUtil.parseToDate(this.getBegintime(),DateUtil.yyyyMMdd)); e.setCreatetime(DateUtil.parseToDate(this.getCreatetime(),DateUtil.yyyyMMddHHmmss)); e.setDatum(this.getDatum()); e.setEffect(this.getEffect()); e.setEndtime(DateUtil.parseToDate(this.getEndtime(),DateUtil.yyyyMMdd)); e.setId(this.getId()); e.setName(this.getName()); e.setPurpose(this.getPurpose()); e.setStudent(this.getStudent()); e.setSummarize(this.getSummarize()); e.setEducate(this.getEducate()); e.setTeacher(this.getTeacher()); return e; } /** * @return Returns the educate. */ public Byte getEducate() { return educate; } /** * @param educate The educate to set. */ public void setEducate(Byte educate) { this.educate = educate; } }

qfch120 LV8
2023年3月29日
wuying8208 LV15
2023年1月1日
yuanjuntao LV5
2022年7月5日
2297542298 LV2
2022年1月11日
1637947149 LV3
2021年11月20日
lucky金 LV3
2021年8月26日
Qolmen LV12
2021年7月20日
吴峰123456 LV4
2021年7月13日
Demo1111 LV30
2021年6月7日
Crush LV3
2021年5月10日

Solowen
4月16日
暂无贡献等级
hawkzl LV2
4月2日
benben2020
3月19日
暂无贡献等级
charies778
1月7日
暂无贡献等级
krispeng LV14
2024年8月12日
嘻嘻哈哈的小洋
2024年4月26日
暂无贡献等级
123456wadff LV3
2024年1月15日
Henew168 LV2
2023年11月19日
2036495585 LV9
2023年9月25日
zhangyanghao
2023年9月21日
暂无贡献等级