📄 hyform.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 hy form page.
*
* @author cao guangxin - www.relationinfo.com
* @struts.form name="hyForm"
*/
public final class HyForm extends ServiceForm {
private String mode;
private String hykh;
private String hykmm;
private String hyxm;
private String kdjb;
private String dqzt;
private String hyjf;
private String bz;
private String hyxb;
private String csrq;
private String dwzy;
private String yddh;
private String gddh;
private String dzyj;
private String zjlx;
private String lxdz;
private String qtxx;
private HyklxForm hykmmHyklx;
/**
* 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>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>hykmm</code> property.
*
* @return the value of the <code>hykmm</code> property.
*/
public String getHykmm() {
return hykmm;
}
/**
* Sets the value of the <code>hykmm</code> property.
*
* @param hykmm a value for <code>hykmm</code>.
*/
public void setHykmm(String hykmm) {
this.hykmm = hykmm;
}
/**
* Returns the value of the <code>hyxm</code> property.
*
* @return the value of the <code>hyxm</code> property.
*/
public String getHyxm() {
return hyxm;
}
/**
* Sets the value of the <code>hyxm</code> property.
*
* @param hyxm a value for <code>hyxm</code>.
*/
public void setHyxm(String hyxm) {
this.hyxm = hyxm;
}
/**
* Returns the value of the <code>kdjb</code> property.
*
* @return the value of the <code>kdjb</code> property.
*/
public String getKdjb() {
return kdjb;
}
/**
* Sets the value of the <code>kdjb</code> property.
*
* @param kdjb a value for <code>kdjb</code>.
*/
public void setKdjb(String kdjb) {
this.kdjb = kdjb;
}
/**
* Returns the value of the <code>dqzt</code> property.
*
* @return the value of the <code>dqzt</code> property.
*/
public String getDqzt() {
return dqzt;
}
/**
* Sets the value of the <code>dqzt</code> property.
*
* @param dqzt a value for <code>dqzt</code>.
*/
public void setDqzt(String dqzt) {
this.dqzt = dqzt;
}
/**
* Returns the value of the <code>hyjf</code> property.
*
* @return the value of the <code>hyjf</code> property.
*/
public String getHyjf() {
return hyjf;
}
/**
* Sets the value of the <code>hyjf</code> property.
*
* @param hyjf a value for <code>hyjf</code>.
*/
public void setHyjf(String hyjf) {
this.hyjf = hyjf;
}
/**
* Returns the value of the <code>bz</code> property.
*
* @return the value of the <code>bz</code> property.
*/
public String getBz() {
return bz;
}
/**
* Sets the value of the <code>bz</code> property.
*
* @param bz a value for <code>bz</code>.
*/
public void setBz(String bz) {
this.bz = bz;
}
/**
* Returns the value of the <code>hyxb</code> property.
*
* @return the value of the <code>hyxb</code> property.
*/
public String getHyxb() {
return hyxb;
}
/**
* Sets the value of the <code>hyxb</code> property.
*
* @param hyxb a value for <code>hyxb</code>.
*/
public void setHyxb(String hyxb) {
this.hyxb = hyxb;
}
/**
* Returns the value of the <code>csrq</code> property.
*
* @return the value of the <code>csrq</code> property.
*/
public String getCsrq() {
return csrq;
}
/**
* Sets the value of the <code>csrq</code> property.
*
* @param csrq a value for <code>csrq</code>.
*/
public void setCsrq(String csrq) {
this.csrq = csrq;
}
/**
* Returns the value of the <code>dwzy</code> property.
*
* @return the value of the <code>dwzy</code> property.
*/
public String getDwzy() {
return dwzy;
}
/**
* Sets the value of the <code>dwzy</code> property.
*
* @param dwzy a value for <code>dwzy</code>.
*/
public void setDwzy(String dwzy) {
this.dwzy = dwzy;
}
/**
* Returns the value of the <code>yddh</code> property.
*
* @return the value of the <code>yddh</code> property.
*/
public String getYddh() {
return yddh;
}
/**
* Sets the value of the <code>yddh</code> property.
*
* @param yddh a value for <code>yddh</code>.
*/
public void setYddh(String yddh) {
this.yddh = yddh;
}
/**
* Returns the value of the <code>gddh</code> property.
*
* @return the value of the <code>gddh</code> property.
*/
public String getGddh() {
return gddh;
}
/**
* Sets the value of the <code>gddh</code> property.
*
* @param gddh a value for <code>gddh</code>.
*/
public void setGddh(String gddh) {
this.gddh = gddh;
}
/**
* Returns the value of the <code>dzyj</code> property.
*
* @return the value of the <code>dzyj</code> property.
*/
public String getDzyj() {
return dzyj;
}
/**
* Sets the value of the <code>dzyj</code> property.
*
* @param dzyj a value for <code>dzyj</code>.
*/
public void setDzyj(String dzyj) {
this.dzyj = dzyj;
}
/**
* Returns the value of the <code>zjlx</code> property.
*
* @return the value of the <code>zjlx</code> property.
*/
public String getZjlx() {
return zjlx;
}
/**
* Sets the value of the <code>zjlx</code> property.
*
* @param zjlx a value for <code>zjlx</code>.
*/
public void setZjlx(String zjlx) {
this.zjlx = zjlx;
}
/**
* Returns the value of the <code>lxdz</code> property.
*
* @return the value of the <code>lxdz</code> property.
*/
public String getLxdz() {
return lxdz;
}
/**
* Sets the value of the <code>lxdz</code> property.
*
* @param lxdz a value for <code>lxdz</code>.
*/
public void setLxdz(String lxdz) {
this.lxdz = lxdz;
}
/**
* Returns the value of the <code>qtxx</code> property.
*
* @return the value of the <code>qtxx</code> property.
*/
public String getQtxx() {
return qtxx;
}
/**
* Sets the value of the <code>qtxx</code> property.
*
* @param qtxx a value for <code>qtxx</code>.
*/
public void setQtxx(String qtxx) {
this.qtxx = qtxx;
}
/**
* Returns the value of the <code>hykmmHyklx</code> relation property.
*
* @return the value of the <code>hykmmHyklx</code> relation property.
*/
public HyklxForm getHykmmHyklx() {
if (hykmmHyklx == null) {
hykmmHyklx = new HyklxForm();
}
return hykmmHyklx;
}
/**
* Sets the value of the <code>hykmmHyklx</code> relation property.
*
* @param hyklx a value for <code>hykmmHyklx</code>.
*/
public void setHykmmHyklx(HyklxForm hyklx) {
this.hykmmHyklx = hyklx;
}
/**
* Obtains the total number of hy objects.
*
* @throws Exception exception
* @return an integer value.
*/
public int getListSize() throws Exception {
return getAssociatorManageService().getHyListSize();
}
/**
* Obtains a collection of all hy objects.
*
* @throws Exception exception
* @return a collection of HyData objects.
*/
public Collection getList() throws Exception {
Collection result = getAssociatorManageService().getHyList();
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("\nhykh : ").append(hykh);
sb.append("\nhyxm : ").append(hyxm);
sb.append("\nkdjb : ").append(kdjb);
sb.append("\ndqzt : ").append(dqzt);
sb.append("\nhyjf : ").append(hyjf);
sb.append("\nbz : ").append(bz);
sb.append("\nhyxb : ").append(hyxb);
sb.append("\ncsrq : ").append(csrq);
sb.append("\ndwzy : ").append(dwzy);
sb.append("\nyddh : ").append(yddh);
sb.append("\ngddh : ").append(gddh);
sb.append("\ndzyj : ").append(dzyj);
sb.append("\nzjlx : ").append(zjlx);
sb.append("\nlxdz : ").append(lxdz);
sb.append("\nqtxx : ").append(qtxx);
sb.append("\nhykmmHyklx : ").append(hykmmHyklx);
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -