curriculum_design/Login.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/********************************************
* Made by MeiZhaoRui *
* 2014年05月01日 更新 *
*******************************************/
using System;
using System.Data;
using System.Data.SqlClient;
using System.Threading;
using System.Windows.Forms;
namespace curriculum_design
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
UserName.Focus();
}
private void Submit_Click(object sender, EventArgs e)
{
string ss = UserPassWd.Text.Length >= 18 ? UserPassWd.Text : Global.MD5EnCrypt(UserPassWd.Text);
int level = cb_admin.Checked ? 1 : 2;
try
{
string select = string.Format("proc_select_Admins_to_Login '{0}','{1}'", UserName.Text.Trim(), level);
string pawd = Program.sqlManage.ExecuteScalar(select).ToString();
if (pawd != "" && pawd == ss)
{
Global.ShowCloseOption = false;
SetPasswdToINI(ss);
if (level == 1)
new Thread(new ThreadStart(() =>
{
MainForm mf = new MainForm();
Application.Run(mf);
})).Start();
else
new Thread(new ThreadStart(() =>
{
Receptionist rt = new Receptionist();
Application.Run(rt);
})).Start();
this.Close();
}
else
{
MsgBox.ShowError("用户名或密码错误,重新输入");
UserName.Focus();
}
}
catch (Exception)
{
return;
}
}
private void SetPasswdToINI(string ss)
{
if (cb_passwd.Checked)
后面还有 86 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。