public class Text {
private String sqxh;
private String dwmc;
public String getSqxh() {
return sqxh;
}
public void setSqxh(String sqxh) {
this.sqxh = sqxh;
}
public String getDwmc() {
return dwmc;
}
public void setDwmc(String dwmc) {
this.dwmc = dwmc;
}
public String validate(){
StringBuffer errMsg = new StringBuffer();
/* 检查非空项 */
if(sqxh == null || sqxh.equals("")){
errMsg.append("申请序号为空!");
}
if(dwmc == null || dwmc.equals("")){
errMsg.append("单位代码为空!");
}
return errMsg.toString();
}
public void saveXksqHzc(Text Text){
String validateMsg = Text.validate();
if(validateMsg != null && !validateMsg.equals("")){
throw new RuntimeException(validateMsg);
}
}
}
private String sqxh;
private String dwmc;
public String getSqxh() {
return sqxh;
}
public void setSqxh(String sqxh) {
this.sqxh = sqxh;
}
public String getDwmc() {
return dwmc;
}
public void setDwmc(String dwmc) {
this.dwmc = dwmc;
}
public String validate(){
StringBuffer errMsg = new StringBuffer();
/* 检查非空项 */
if(sqxh == null || sqxh.equals("")){
errMsg.append("申请序号为空!");
}
if(dwmc == null || dwmc.equals("")){
errMsg.append("单位代码为空!");
}
return errMsg.toString();
}
public void saveXksqHzc(Text Text){
String validateMsg = Text.validate();
if(validateMsg != null && !validateMsg.equals("")){
throw new RuntimeException(validateMsg);
}
}
}