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

📄 logonform.java

📁 j2ee源码
💻 JAVA
字号:
package com.leeman.wkexs.logon.web;

import com.leeman.wkexs.web.base.BaseForm;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.Collection;

/**
 * Form bean for a Struts application.
 * Users may access 4 fields on this form:
 * <ul>
 * <li>user_id - [your comment here]
 * <li>selComp_id - [your comment here]
 * <li>password - [your comment here]
 * <li>selLang_id - [your comment here]
 * </ul>
 * @version 	1.0
 * @author
 */
public class LogonForm extends BaseForm{

	private String user_id = null;
	private String[] SelComp_id = null;
	private String password = null;
	private String[] SelLang_id = null;
	
	private String optLogonType = null;
	
	private ArrayList langList = null;
	private ArrayList compList = null;
	
	private String comp_name = null;
	private String lang_id = null;
	private String comp_id = null;
	
	private String error_message = null;
	private String js_code = null;

	/**
	 * Get user_id
	 * @return String
	 */
	public String getUser_id() {
		return user_id;
	}

	/**
	 * Set user_id
	 * @param <code>String</code>
	 */
	public void setUser_id(String u) {
		this.user_id = u;
	}

	/**
	 * Get SelComp_id
	 * @return String[]
	 */
	public String[] getSelComp_id() {
		return SelComp_id;
	}

	/**
	 * Set SelComp_id
	 * @param <code>String[]</code>
	 */
	public void setSelComp_id(String[] s) {
		this.SelComp_id = s;
	}

	/**
	 * Get password
	 * @return String
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Set password
	 * @param <code>String</code>
	 */
	public void setPassword(String p) {
		this.password = p;
	}

	/**
	 * Get SelLang_id
	 * @return String[]
	 */
	public String[] getSelLang_id() {
		return SelLang_id;
	}

	/**
	 * Set SelLang_id
	 * @param <code>String[]</code>
	 */
	public void setSelLang_id(String[] s) {
		this.SelLang_id = s;
	}

	public void reset(ActionMapping mapping, HttpServletRequest request) {

		// Reset values are provided as samples only. Change as appropriate.

		user_id = null;
		SelComp_id = null;
		password = null;
		SelLang_id = null;
		langList = null;
		compList = null;
		comp_name = null;
		lang_id = null;
		comp_id = null;
		error_message = null;
		js_code = null;

	}

	public ActionErrors validate(
		ActionMapping mapping,
		HttpServletRequest request) {

		ActionErrors errors = new ActionErrors();
		// Validate the fields in your form, adding
		// adding each error to this.errors as found, e.g.

		// if ((field == null) || (field.length() == 0)) {
		//   errors.add("field", new org.apache.struts.action.ActionError("error.field.required"));
		// }
		return errors;

	}
	/**
	 * @return
	 */
	public String getComp_name() {
		return comp_name;
	}

	/**
	 * @param string
	 */
	public void setComp_name(String string) {
		comp_name = string;
	}

	/**
	 * @return
	 */
	public String getLang_id() {
		return lang_id;
	}

	/**
	 * @param string
	 */
	public void setLang_id(String string) {
		lang_id = string;
	}

	/**
	 * @return
	 */
	public String getError_message() {
		return error_message;
	}

	/**
	 * @param string
	 */
	public void setError_message(String string) {
		error_message = string;
	}

	/**
	 * @return
	 */
	public String getJs_code() {
		return js_code;
	}

	/**
	 * @param string
	 */
	public void setJs_code(String string) {
		js_code = string;
	}

	/**
	 * @return
	 */
	public ArrayList getLangList() {
		return langList;
	}
	
//	public Collection setLangList()
//	{
//		return (Collection)langList;
//	}

	/**
	 * @param list
	 */
	public void setLangList(ArrayList list) {
		langList = list;
	}
	
	/**
	 * @return
	 */
	public ArrayList getCompList() {
		return compList;
	}

	/**
	 * @param list
	 */
	public void setCompList(ArrayList list) {
		compList = list;
	}

	/**
	 * @return
	 */
	public String getComp_id() {
		return comp_id;
	}

	/**
	 * @param string
	 */
	public void setComp_id(String string) {
		comp_id = string;
	}

	/**
	 * @return
	 */
	public String getOptLogonType() {
		return optLogonType;
	}

	/**
	 * @param string
	 */
	public void setOptLogonType(String string) {
		optLogonType = string;
	}

}

⌨️ 快捷键说明

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