protected void DriverLisenceRegister_bt_Click(object sender, EventArgs e) { if (registerAuthCode_edit.Text != (String)Session["check"]) { registerErrorInfo_label.Text = "验证码输入有误!"; return; } if (registerPsw_edit.Text != registerPswConfirm_edit.Text) { registerErrorInfo_label.Text = "两次输入的密码不一致,请重新输入!"; return; } //判断驾驶证号是否存在 DriverLicense driverLicense = new DriverLicense(); driverLicense.no = registerDriverLisence_edit.Text; driverLicense.name = registerName_edit.Text; if (!driverLicense.LoginCheck()) { registerErrorInfo_label.Text = "注册错误:没有该驾驶证号!"; return; } DriverLisencePayOnline drivreLisencePayOnline=new DriverLisencePayOnline(); drivreLisencePayOnline.DriverLisenceNo = registerDriverLisence_edit.Text; drivreLisencePayOnline.Name = registerName_edit.Text; drivreLisencePayOnline.ID = registerID_edit.Text; drivreLisencePayOnline.psw = registerPsw_edit.Text; if (!drivreLisencePayOnline.InsertFinesInfo()) { registerErrorInfo_label.Text = "注册错误:注册信息有误!"; return; } Response.Write("<script>window.alert('注册成功!');</script>"); }
public List<String[]> QueryFinesInfo(DriverLicense driverLicense) { driverFinesInfoCheck.driverLicense = new DataManager.DriverLicense(); driverFinesInfoCheck.driverLicense.no = driverLicense.no; driverFinesInfoCheck.driverLicense.name = driverLicense.name; return driverFinesInfoCheck.GetCarFinesInfo(); }
protected void driverLicenceCheck_btn_Click(object sender, EventArgs e) { DriverLicense driverLicense = new DriverLicense(); driverLicense.no = checkDriverLicenceNo_edit.Text; driverLicense.name = checkDriverLicenseName_edit.Text; if (driverLicense.LoginCheck()) { //checkDriverLicenceNo_edit.Text = "OK"; } else { // checkDriverLicenceNo_edit.Text = "false"; Response.Redirect("CarFinesWeb.aspx"); } }
private bool SetDriverInfo(DriverLicense driverLicense) { driverName_label.Text = driverLicense.name; driverLicenseNo_label.Text = driverLicense.no; return true; }