reggrfunc.java~2~

来自「c++通信编程学习1」· JAVA~2~ 代码 · 共 54 行

JAVA~2~
54
字号
package com.j2ee.func.reg;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author赵正涌
 * @version 1.0
 */
private String username;
private String password;
private String tsproblem;
private String tsanswer;
private String realname;
private String identicard;
private String jobnow;
private String sex;
private String workplace;
private String homeaddress;
private String xueli;
private String birthdate;
private String email;
private String conaddress;
private String postalcode;
private String contelephone;
private String province;
private String marrystatus;
    private String income;
public class ReggrFunc {
    public ReggrFunc(ReggrInfo reginfo){
        this.reginfo=reginfo;
    }
    ReggrInfo reginfo=new ReggrInfo();
    public String producegrsql(){
        String str="insert into usergrhy values('"+reginfo.getusername()+"','"+reginfo.getpassword()+
                   "','"+reginfo.gettsproblem()+"','"+reginfo.gettsanswer()+"','"+reginfo.getrealname()
                   +"','"+reginfo.getidenticard()+"','"+reginfo.getjobnow()+"','"+reginfo.getsex()+
                   "','"+reginfo.getworkplace()+"','"+reginfo.gethomeaddress()+"','"+reginfo.getxueli()+
                   "','"+reginfo.getbirthdate()+"','"+reginfo.getemail()+"','"+reginfo.getconaddress()+
                   "','"+reginfo.getpostalcode()+"','"+reginfo.getcontelephone()+"','"+reginfo.getprovince()+
                   "','"+reginfo.getmarrystatus()+"','"+reginfo.getincome()+"'";
        return str;
    }


    }

}

⌨️ 快捷键说明

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