首页 > 代码库 > springmvc中的page

springmvc中的page

1.1在page类上面要打个service的注解,这样page才能传过去
1.2 在page中都是写private String XX;然后source实现传值的set,get的方法,

package com.maicor.page;

import org.springframework.stereotype.Service;

@Service("testservice")
public class AgentRegistered_Page {
private String Account;//账号
private String Password;//密码
private String Phonenumber;//常用手机号码
private String Realname;//真实姓名
private String Idcardnumber;//身份证号码
private String Agentregion;//代理地区
private String Nameofcompany;//公司名称
private String Referees;//推荐人ID
private String Agencyhead;//代理头像
private String Photoagencyasalegalperson;//代理法人照片(手持身份证)
private String Thebusinesslicense;//营业执照
private String Duplicateofbusinesslicense;//营业执照副本
private String Thebankopensanaccountlicence;//银行开户许可证
private String Pid;//父级代理ID
private String Encrypted_problem_one;//密保问题1
private String Encrypted_problem_two;//密保问题2
private String Encrypted_problem_three;//密保问题3
private String Encrypted_answers_one;//密保答案1
private String Encrypted_answers_two;//密保答案2
private String Encrypted_answers_three;//密保答案3
private String Province;//代理地区省份
private String City;//代理地区城市
private String Area;//代理地区县

public String getProvince() {
return Province;
}
public void setProvince(String province) {
Province = province;
}
public String getCity() {
return City;
}
public void setCity(String city) {
City = city;
}
public String getArea() {
return Area;
}
public void setArea(String area) {
Area = area;
}
public String getEncrypted_problem_one() {
return Encrypted_problem_one;
}
public void setEncrypted_problem_one(String encrypted_problem_one) {
Encrypted_problem_one = encrypted_problem_one;
}
public String getEncrypted_problem_two() {
return Encrypted_problem_two;
}
public void setEncrypted_problem_two(String encrypted_problem_two) {
Encrypted_problem_two = encrypted_problem_two;
}
public String getEncrypted_problem_three() {
return Encrypted_problem_three;
}
public void setEncrypted_problem_three(String encrypted_problem_three) {
Encrypted_problem_three = encrypted_problem_three;
}
public String getEncrypted_answers_one() {
return Encrypted_answers_one;
}
public void setEncrypted_answers_one(String encrypted_answers_one) {
Encrypted_answers_one = encrypted_answers_one;
}
public String getEncrypted_answers_two() {
return Encrypted_answers_two;
}
public void setEncrypted_answers_two(String encrypted_answers_two) {
Encrypted_answers_two = encrypted_answers_two;
}
public String getEncrypted_answers_three() {
return Encrypted_answers_three;
}
public void setEncrypted_answers_three(String encrypted_answers_three) {
Encrypted_answers_three = encrypted_answers_three;
}
public String getAccount() {
return Account;
}
public void setAccount(String account) {
Account = account;
}
public String getPassword() {
return Password;
}
public void setPassword(String password) {
Password = password;
}
public String getPhonenumber() {
return Phonenumber;
}
public void setPhonenumber(String phonenumber) {
Phonenumber = phonenumber;
}
public String getRealname() {
return Realname;
}
public void setRealname(String realname) {
Realname = realname;
}
public String getIdcardnumber() {
return Idcardnumber;
}
public void setIdcardnumber(String idcardnumber) {
Idcardnumber = idcardnumber;
}
public String getAgentregion() {
return Agentregion;
}
public void setAgentregion(String agentregion) {
Agentregion = agentregion;
}
public String getNameofcompany() {
return Nameofcompany;
}
public void setNameofcompany(String nameofcompany) {
Nameofcompany = nameofcompany;
}
public String getReferees() {
return Referees;
}
public void setReferees(String referees) {
Referees = referees;
}
public String getAgencyhead() {
return Agencyhead;
}
public void setAgencyhead(String agencyhead) {
Agencyhead = agencyhead;
}
public String getPhotoagencyasalegalperson() {
return Photoagencyasalegalperson;
}
public void setPhotoagencyasalegalperson(String photoagencyasalegalperson) {
Photoagencyasalegalperson = photoagencyasalegalperson;
}
public String getThebusinesslicense() {
return Thebusinesslicense;
}
public void setThebusinesslicense(String thebusinesslicense) {
Thebusinesslicense = thebusinesslicense;
}
public String getDuplicateofbusinesslicense() {
return Duplicateofbusinesslicense;
}
public void setDuplicateofbusinesslicense(String duplicateofbusinesslicense) {
Duplicateofbusinesslicense = duplicateofbusinesslicense;
}
public String getThebankopensanaccountlicence() {
return Thebankopensanaccountlicence;
}
public void setThebankopensanaccountlicence(String thebankopensanaccountlicence) {
Thebankopensanaccountlicence = thebankopensanaccountlicence;
}
public String getPid() {
return Pid;
}
public void setPid(String pid) {
Pid = pid;
}
@Override
public String toString() {
return "AgentRegistered_Page [Account=" + Account + ", Password="
+ Password + ", Phonenumber=" + Phonenumber + ", Realname="
+ Realname + ", Idcardnumber=" + Idcardnumber
+ ", Agentregion=" + Agentregion + ", Nameofcompany="
+ Nameofcompany + ", Referees=" + Referees + ", Agencyhead="
+ Agencyhead + ", Photoagencyasalegalperson="
+ Photoagencyasalegalperson + ", Thebusinesslicense="
+ Thebusinesslicense + ", Duplicateofbusinesslicense="
+ Duplicateofbusinesslicense
+ ", Thebankopensanaccountlicence="
+ Thebankopensanaccountlicence + ", Pid=" + Pid + "]";
}




}

 

springmvc中的page