MeetForm.java
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:5k
源码类别:
Jsp/Servlet
开发平台:
Java
- //Created by MyEclipse Struts
- // XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.1.0/xslt/JavaClass.xsl
- package com.oa.module.meet.struts.form;
- import javax.servlet.http.HttpServletRequest;
- import org.apache.struts.action.ActionErrors;
- import org.apache.struts.action.ActionForm;
- import org.apache.struts.action.ActionMapping;
- public class MeetForm extends ActionForm {
- private long mid;
- private String uno;
- private String mtitle;
- private String mcontent;
- private long rmid;
- private String mstarttime;
- private String mendtime;
- private String munos;
- private String maffixname;
- private String maffixpath;
- private long mstatus;
- private String mmemo;
- private String task;
- private long mpeople;
- private String[] arryusername;// 接收列表框中的数据(所有的用户)
- private String[] addmeet;// 参加会议的人
- private String[] rooms;
- private long addressid;
- private long mcancle;
- private String mreason;
- private long miaffix;
- // --------------------------------------------------------- Methods
- /**
- * Method validate
- *
- * @param mapping
- * @param request
- * @return ActionErrors
- */
- public ActionErrors validate(ActionMapping mapping,
- HttpServletRequest request) {
- // ActionErrors errors = new ActionErrors();
- // if (this.task != null && this.task.equals("add")) {
- // if (this.mtitle == null || this.mtitle.trim().equals("")) {
- // ActionMessage message = new ActionMessage("会议主题不能为空", false);
- // errors.add("mtitle", message);
- // } else if (this.mstarttime == null
- // || this.mstarttime.trim().equals("")
- // || this.mendtime == null || this.mendtime.trim().equals("")) {
- // ActionMessage message = new ActionMessage("会议时间不能为空", false);
- // errors.add("time", message);
- // } else if (this.rmid == 0) {
- // ActionMessage message = new ActionMessage("请选择一个会议地点", false);
- // errors.add("rmid", message);
- // } else if (this.munos == null || this.munos.trim().equals("")) {
- // ActionMessage message = new ActionMessage("请选择要参与的人", false);
- // errors.add("munos", message);
- // }else if(this.mpeople==0){
- // ActionMessage message = new ActionMessage("请选择一个会议主持人", false);
- // errors.add("mpeople", message);
- // }
- // }
- // return errors;
- return null;
- }
- /**
- * Method reset
- *
- * @param mapping
- * @param request
- */
- public void reset(ActionMapping mapping, HttpServletRequest request) {
- this.task = "add";
- this.mstatus=-1;
- }
- public String getMaffixname() {
- return maffixname;
- }
- public void setMaffixname(String maffixname) {
- this.maffixname = maffixname;
- }
- public String getMaffixpath() {
- return maffixpath;
- }
- public void setMaffixpath(String maffixpath) {
- this.maffixpath = maffixpath;
- }
- public String getMcontent() {
- return mcontent;
- }
- public void setMcontent(String mcontent) {
- this.mcontent = mcontent;
- }
- public String getMendtime() {
- return mendtime;
- }
- public void setMendtime(String mendtime) {
- this.mendtime = mendtime;
- }
- public long getMid() {
- return mid;
- }
- public void setMid(long mid) {
- this.mid = mid;
- }
- public String getMmemo() {
- return mmemo;
- }
- public void setMmemo(String mmemo) {
- this.mmemo = mmemo;
- }
- public String getMstarttime() {
- return mstarttime;
- }
- public void setMstarttime(String mstarttime) {
- this.mstarttime = mstarttime;
- }
- public long getMstatus() {
- return mstatus;
- }
- public void setMstatus(long mstatus) {
- this.mstatus = mstatus;
- }
- public String getMtitle() {
- return mtitle;
- }
- public void setMtitle(String mtitle) {
- this.mtitle = mtitle;
- }
- public String getMunos() {
- return munos;
- }
- public void setMunos(String munos) {
- this.munos = munos;
- }
- public long getRmid() {
- return rmid;
- }
- public void setRmid(long rmid) {
- this.rmid = rmid;
- }
- public String getTask() {
- return task;
- }
- public void setTask(String task) {
- this.task = task;
- }
- public long getMpeople() {
- return mpeople;
- }
- public void setMpeople(long mpeople) {
- this.mpeople = mpeople;
- }
- public String[] getAddmeet() {
- return addmeet;
- }
- public void setAddmeet(String[] addmeet) {
- this.addmeet = addmeet;
- }
- public String[] getArryusername() {
- return arryusername;
- }
- public void setArryusername(String[] arryusername) {
- this.arryusername = arryusername;
- }
- public String[] getRooms() {
- return rooms;
- }
- public void setRooms(String[] rooms) {
- this.rooms = rooms;
- }
- public long getAddressid() {
- return addressid;
- }
- public void setAddressid(long addressid) {
- this.addressid = addressid;
- }
- public long getMcancle() {
- return mcancle;
- }
- public void setMcancle(long mcancle) {
- this.mcancle = mcancle;
- }
- public String getMreason() {
- return mreason;
- }
- public void setMreason(String mreason) {
- this.mreason = mreason;
- }
- public long getMiaffix() {
- return miaffix;
- }
- public void setMiaffix(long miaffix) {
- this.miaffix = miaffix;
- }
- public String getUno() {
- return uno;
- }
- public void setUno(String uno) {
- this.uno = uno;
- }
- }