📄 hyxfform.java
字号:
package org.helpsoft.forms;
import java.util.Collection;
import java.util.ArrayList;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.helpsoft.servicelocator.*;
import org.helpsoft.session.AssociatorManageService;
import com.helpsoft.Constants;
import org.helpsoft.session.*;
/**
* Form bean for the hyxf form page.
*
* @author cao guangxin - www.relationinfo.com
* @struts.form name="hyxfForm"
*/
public final class HyxfForm extends ServiceForm {
private String mode;
private String wzkqjg;
private String hykh;
private String dzhsjsq;
private String ccxfjegj;
private String xfbz;
private HyForm hykhHy;
/**
* Returns the value of the <code>mode</code> property.
*
* @return the value of the <code>mode</code> property.
*/
public String getMode() {
return mode;
}
/**
* Sets the value of the <code>mode</code> property.
*
* @param mode the mode
*/
public void setMode(String mode) {
this.mode = mode;
}
/**
* Returns the value of the <code>wzkqjg</code> property.
*
* @return the value of the <code>wzkqjg</code> property.
*/
public String getWzkqjg() {
return wzkqjg;
}
/**
* Sets the value of the <code>wzkqjg</code> property.
*
* @param wzkqjg a value for <code>wzkqjg</code>.
*/
public void setWzkqjg(String wzkqjg) {
this.wzkqjg = wzkqjg;
}
/**
* Returns the value of the <code>hykh</code> property.
*
* @return the value of the <code>hykh</code> property.
*/
public String getHykh() {
return hykh;
}
/**
* Sets the value of the <code>hykh</code> property.
*
* @param hykh a value for <code>hykh</code>.
*/
public void setHykh(String hykh) {
this.hykh = hykh;
}
/**
* Returns the value of the <code>dzhsjsq</code> property.
*
* @return the value of the <code>dzhsjsq</code> property.
*/
public String getDzhsjsq() {
return dzhsjsq;
}
/**
* Sets the value of the <code>dzhsjsq</code> property.
*
* @param dzhsjsq a value for <code>dzhsjsq</code>.
*/
public void setDzhsjsq(String dzhsjsq) {
this.dzhsjsq = dzhsjsq;
}
/**
* Returns the value of the <code>ccxfjegj</code> property.
*
* @return the value of the <code>ccxfjegj</code> property.
*/
public String getCcxfjegj() {
return ccxfjegj;
}
/**
* Sets the value of the <code>ccxfjegj</code> property.
*
* @param ccxfjegj a value for <code>ccxfjegj</code>.
*/
public void setCcxfjegj(String ccxfjegj) {
this.ccxfjegj = ccxfjegj;
}
/**
* Returns the value of the <code>xfbz</code> property.
*
* @return the value of the <code>xfbz</code> property.
*/
public String getXfbz() {
return xfbz;
}
/**
* Sets the value of the <code>xfbz</code> property.
*
* @param xfbz a value for <code>xfbz</code>.
*/
public void setXfbz(String xfbz) {
this.xfbz = xfbz;
}
/**
* Returns the value of the <code>hykhHy</code> relation property.
*
* @return the value of the <code>hykhHy</code> relation property.
*/
public HyForm getHykhHy() {
if (hykhHy == null) {
hykhHy = new HyForm();
}
return hykhHy;
}
/**
* Sets the value of the <code>hykhHy</code> relation property.
*
* @param hy a value for <code>hykhHy</code>.
*/
public void setHykhHy(HyForm hy) {
this.hykhHy = hy;
}
/**
* Obtains the total number of hyxf objects.
*
* @throws Exception exception
* @return an integer value.
*/
public int getListSize() throws Exception {
return getAssociatorManageService().getHyxfListSize();
}
/**
* Obtains a collection of all hyxf objects.
*
* @throws Exception exception
* @return a collection of HyxfData objects.
*/
public Collection getList() throws Exception {
Collection result = getAssociatorManageService().getHyxfList();
if (result.size() > 0) {
return result;
} else {
return new ArrayList();
}
}
/**
* Performs server-side validation on the properties that have been set from this HTTP request,
* and returns an <code>ActionErrors</code> object that encapsulates any
* validation errors that have been found. If no errors are found, returns
* <code>null</code> or an <code>ActionErrors</code> object with no
* recorded error messages.
* <p>
* <b>NOTE:</b> Please override this method and not the ValidatorForm 'validate'
* method - any errors thrown in an overwritten 'validate' method will not be handled
* by the GenericExceptionHandling framework.
*
* @param mapping The mapping used to select this instance
* @param request The servlet request we are processing
* @return a list with errors or <code>null</code> iIf no errors are found
* @throws Exception - all exceptions are handled by the GenericExceptions framework
* (no stack trace dumps shown to the user!)
*/
public ActionErrors doValidate(ActionMapping mapping, HttpServletRequest request) throws Exception {
boolean noValidate = (request.getParameter(Constants.SUBMIT_NO_VALIDATION) != null);
return noValidate ? null : super.doValidate(mapping, request);
}
/**
* Returns the string representation of the form.
*
* @return the string representation of the form
*/
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("\nwzkqjg : ").append(wzkqjg);
sb.append("\ndzhsjsq : ").append(dzhsjsq);
sb.append("\nccxfjegj : ").append(ccxfjegj);
sb.append("\nxfbz : ").append(xfbz);
sb.append("\nhykhHy : ").append(hykhHy);
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -