ASP.NET客户信息管理系统的开发(12)
时间:2016-11-27 21:00 来源:毕业论文 作者:毕业论文 点击:次
} else if (textBox1.TextLength < 6 || textBox2.TextLength < 6 || textBox3.TextLength < 6) { MessageBox.Show("账号或密码长度过短,请重新输入"); return; } else if(textBox2.Text!=textBox3.Text) { MessageBox.Show("两次输入的密码不一致,请重新输入"); return; } else if (Convert.ToDouble(textBox5.Text) != 1 && Convert.ToDouble(textBox5.Text) != 2 && Convert.ToDouble(textBox5.Text) != 3 && Convert.ToDouble(textBox5.Text) != 4 && Convert.ToDouble(textBox5.Text) != 5 && Convert.ToDouble(textBox5.Text) != 6 && Convert.ToDouble(textBox5.Text) != 7 && Convert.ToDouble(textBox5.Text) != 0) { MessageBox.Show("负责区域填写错误,请重新输入"); return; } if (Convert.ToDouble(textBox4.Text)!=1&&Convert.ToDouble(textBox4.Text)!=0) { MessageBox.Show("权限填写错误,请重新输入"); return; } else { sqlConnect(); string sq4="select userid from usertable where userid='"+textBox1.Text+"'"; SqlCommand cmd1 = new SqlCommand(sq4, conn); if (cmd1.ExecuteScalar() == null) (责任编辑:qin) |