【文件属性】:
文件名称:Oracle.zip
文件大小:9.17MB
文件格式:ZIP
更新时间:2020-04-20 20:20:15
Oracle数据库 C# 课程设计
C#考试报名管理系统:前端使用C#设计界面,使用Oracle.ManagedDataAccess.Client连接Oracle数据库;
if (radioButton1.Checked == true)
{
String user = textBox1.Text.Trim();
String password = textBox2.Text.Trim();
if (user == "")
{
MessageBox.Show("用户名不能为空,请重新输入!!", "Error");
radioButton1.Checked = false;
}
else if (password == "")
{
MessageBox.Show("密码不能为空,请重新输入!!", "Error");
radioButton1.Checked = false;
}
else
{
conn.Open();
OracleCommand myCommand = conn.CreateCommand();
myCommand.CommandText = "select ad_password from admin_ where ad_user = '" + user + "'";
//myCommand.Parameters.Add(new OracleParameter(":user",user));
//myCommand.Parameters.Add(new OracleParameter(":password", password));
//OracleDataReader reader = myCommand.ExecuteReader();
myCommand.Connection = conn;
if (myCommand.ExecuteScalar() != null && myCommand.ExecuteScalar().Equals(password) == true)
{
this.Hide();
Form5 form = new Form5();
form.Show();
//textBox3.Text = myCommand.ExecuteScalar().ToString();
}
else
{
MessageBox.Show("登录信息错误,请重新填写!!", "Error");
radioButton1.Checked = false;
textBox1.Text = "";
textBox2.Text = "";
}
conn.Close();
}
}
【文件预览】:
Oracle
----.vs()
--------ProjectSettings.json(37B)
--------Oracle_keshe()
--------VSWorkspaceState.json(119B)
--------slnx.sqlite(232KB)
----Oracle_keshe()
--------Form7.cs(4KB)
--------Form6.resx(6KB)
--------Form5.Designer.cs(4KB)
--------bin()
--------Form1.Designer.cs(8KB)
--------Form7.Designer.cs(11KB)
--------Form3.cs(4KB)
--------packages.config(153B)
--------Form2.resx(6KB)
--------Form3.Designer.cs(11KB)
--------Program.cs(524B)
--------Form6.cs(2KB)
--------obj()
--------Form8.cs(5KB)
--------Form4.Designer.cs(13KB)
--------Form3.resx(6KB)
--------Form2.cs(4KB)
--------Form1.cs(5KB)
--------Form9.cs(4KB)
--------Form8.resx(6KB)
--------Form4.cs(4KB)
--------Form4.resx(6KB)
--------Form2.Designer.cs(6KB)
--------Form1.resx(6KB)
--------Form9.Designer.cs(11KB)
--------Form6.Designer.cs(4KB)
--------Form5.resx(6KB)
--------Form9.resx(6KB)
--------Form7.resx(6KB)
--------Form8.Designer.cs(14KB)
--------Form5.cs(1KB)
--------App.config(2KB)
--------Oracle_keshe.csproj(6KB)
--------Properties()
----Oracle_keshe.sln(1KB)
----packages()
--------Oracle.ManagedDataAccess.19.3.0()